net/sfc: destroy event queue when Tx queue is released
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 29 Mar 2017 08:25:41 +0000 (09:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:58 +0000 (19:02 +0200)
Fixes: b1b7ad933b39 ("net/sfc: set up and release Tx queues")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_tx.c

index d1a064e..79b900b 100644 (file)
@@ -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