eventdev: fix Rx SW adapter stop
authorNikhil Rao <nikhil.rao@intel.com>
Mon, 4 Jun 2018 12:55:17 +0000 (18:25 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 18 Jun 2018 22:09:36 +0000 (00:09 +0200)
commita66a83744667f31ee97e18eefa90105c462ed81b
treeb04edcbfe89c9b87a5ed6c03c298e60a64c6e1b1
parentd411c4074fe6d90b695f9d9c4982b8c45f2a675d
eventdev: fix Rx SW adapter stop

The Rx adapter stop call does not guarantee that the
SW service function will not execute after the
rte_event_eth_rx_adapter_stop() call.

Add a "started" flag to prevent the adapter from executing
if stop has been called.

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