DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] eventdev/eth_tx: update service runstate in queue delete
@ 2022-07-26  3:53 Naga Harish K S V
  0 siblings, 0 replies; only message in thread
From: Naga Harish K S V @ 2022-07-26  3:53 UTC (permalink / raw)
  To: jay.jayatheerthan, jerinj; +Cc: dev, stable

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(+)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-26  3:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26  3:53 [PATCH] eventdev/eth_tx: update service runstate in queue delete Naga Harish K S V

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).