git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
750ff30
)
net/octeontx2: free CQ ring memzone on queue release
author
Pavan Nikhilesh
<pbhagavatula@marvell.com>
Sun, 28 Jun 2020 23:31:35 +0000
(
05:01
+0530)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 21 Jul 2020 14:04:06 +0000
(16:04 +0200)
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 <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/octeontx2/otx2_ethdev.c
b/drivers/net/octeontx2/otx2_ethdev.c
index
1c0fb00
..
33b72bd
100644
(file)
--- 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;
}