[dpdk-dev] [PATCH 2/2] net/sfc: destroy event queue when Tx queue is released

Andrew Rybchenko arybchenko at solarflare.com
Wed Mar 29 10:25:41 CEST 2017


Fixes: b1b7ad933b39 ("net/sfc: set up and release Tx queues")
Cc: stable at dpdk.org

Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 drivers/net/sfc/sfc_tx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/sfc/sfc_tx.c b/drivers/net/sfc/sfc_tx.c
index d1a064e..79b900b 100644
--- a/drivers/net/sfc/sfc_tx.c
+++ b/drivers/net/sfc/sfc_tx.c
@@ -241,6 +241,8 @@ sfc_tx_qfini(struct sfc_adapter *sa, unsigned int sw_index)
 
 	sfc_dma_free(sa, &txq->mem);
 	rte_free(txq);
+
+	sfc_ev_qfini(sa, sfc_evq_index_by_txq_sw_index(sa, sw_index));
 }
 
 static int
-- 
2.9.3



More information about the dev mailing list