From d52a0478bb3494fa462228e214477b4758490a55 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Mon, 29 Jun 2020 05:01:35 +0530 Subject: [PATCH] net/octeontx2: free CQ ring memzone on queue release Free CQ ring memzone on Rx queue release. This prevents CQ using incorrect memory size when ring size is reconfigured. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- drivers/net/octeontx2/otx2_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c index 1c0fb0020f..33b72bd4db 100644 --- a/drivers/net/octeontx2/otx2_ethdev.c +++ b/drivers/net/octeontx2/otx2_ethdev.c @@ -593,6 +593,7 @@ otx2_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t rq, if (eth_dev->data->rx_queues[rq] != NULL) { otx2_nix_dbg("Freeing memory prior to re-allocation %d", rq); otx2_nix_rx_queue_release(eth_dev->data->rx_queues[rq]); + rte_eth_dma_zone_free(eth_dev, "cq", rq); eth_dev->data->rx_queues[rq] = NULL; } -- 2.20.1