eventdev/eth_tx: update service runstate in queue delete
Checks
Commit Message
During the queue add, service component runstate is set to 1,
when there is minimum one queue associated with the adapter
instance. The same is not updated during queue delete operation.
This patch update service component runstate to 0 when there
are no more queues associated with the adapter instance
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>
---
lib/eventdev/rte_event_eth_tx_adapter.c | 1 +
1 file changed, 1 insertion(+)
@@ -905,6 +905,7 @@ txa_service_queue_del(uint8_t id,
txa_service_queue_array_free(txa, port_id);
+ rte_service_component_runstate_set(txa->service_id, txa->nb_queues);
ret_unlock:
rte_spinlock_unlock(&txa->tx_lock);
return 0;