net/sfc: destroy event queue when Rx queue is released
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 29 Mar 2017 08:25:40 +0000 (09:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:58 +0000 (19:02 +0200)
Fixes: ce35b05c635e ("net/sfc: implement Rx queue setup release operations")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_rx.c

index eef4ce0..403e991 100644 (file)
@@ -999,6 +999,8 @@ sfc_rx_qfini(struct sfc_adapter *sa, unsigned int sw_index)
 
        sfc_dma_free(sa, &rxq->mem);
        rte_free(rxq);
+
+       sfc_ev_qfini(sa, sfc_evq_index_by_rxq_sw_index(sa, sw_index));
 }
 
 #if EFSYS_OPT_RX_SCALE