eventdev: fix eth Tx adapter queue count checks
authorNikhil Rao <nikhil.rao@intel.com>
Mon, 17 Dec 2018 04:39:41 +0000 (10:09 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 17 Dec 2018 19:25:10 +0000 (20:25 +0100)
commit5bd4ae2d774b5988a1b5ec084f27f859e91c655e
tree5df846441184eb4c407541bee99cd5dff32793f8
parent1f7a11026988955b865a2b9f570f5cff087bd9b1
eventdev: fix eth Tx adapter queue count checks

rte_event_eth_tx_adapter_queue_add() - add a check
that returns an error if the ethdev has zero Tx queues
configured.

rte_event_eth_tx_adapter_queue_del() - remove the
checks for ethdev queue count, instead check for
queues added to the adapter which maybe different
from the current ethdev queue count.

Fixes: a3bbf2e09756 ("eventdev: add eth Tx adapter implementation")
Cc: stable@dpdk.org
Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
lib/librte_eventdev/rte_event_eth_tx_adapter.c