eventdev/eth_tx: fix queue add error code
authorNaga Harish K S V <s.v.naga.harish.k@intel.com>
Wed, 9 Feb 2022 05:31:51 +0000 (23:31 -0600)
committerJerin Jacob <jerinj@marvell.com>
Mon, 14 Feb 2022 15:23:49 +0000 (16:23 +0100)
commitbd0a32d14b87661c39130d73ab4323247b80f864
tree2af5e5f4f00629293da54dd7b162ed3fcaf51ce3
parent6b946657e7cce2ea7dfe06687fd53497a14550f0
eventdev/eth_tx: fix queue add error code

The internal function txa_service_queue_add() is returning 0
in case of error, correct this logic to return a negative value
to indicate failure.

Fixes: a3bbf2e09756 ("eventdev: add eth Tx adapter implementation")
Cc: stable@dpdk.org
Signed-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>
Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com>
lib/eventdev/rte_event_eth_tx_adapter.c