[PATCH] eventdev/eth_tx: update service runstate in queue delete

Naga Harish K S V s.v.naga.harish.k at intel.com
Tue Jul 26 05:53:57 CEST 2022


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 at dpdk.org

Signed-off-by: Naga Harish K S V <s.v.naga.harish.k at intel.com>
---
 lib/eventdev/rte_event_eth_tx_adapter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c
index b4b37f1cae..a237e8edba 100644
--- a/lib/eventdev/rte_event_eth_tx_adapter.c
+++ b/lib/eventdev/rte_event_eth_tx_adapter.c
@@ -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;
-- 
2.23.0



More information about the stable mailing list