DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/i40e: fix mbuf resource leakage problem
@ 2021-08-21  7:22 chenqiming_huawei
  0 siblings, 0 replies; only message in thread
From: chenqiming_huawei @ 2021-08-21  7:22 UTC (permalink / raw)
  To: dev; +Cc: beilei.xing, Qiming Chen, stable

From: Qiming Chen <chenqiming_huawei@163.com>

In the i40evf_dev_rx_queue_start function, when the function
i40evf_switch_queue returns failed, the previously requested mbuf resource
is not released.

Fixes: 74b7496b0cb3 ("net/i40e: remove redundant queue id checks")
Cc: stable@dpdk.org

Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
---
 drivers/net/i40e/i40e_ethdev_vf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
index 0cfe13b7b2..003d41373b 100644
--- a/drivers/net/i40e/i40e_ethdev_vf.c
+++ b/drivers/net/i40e/i40e_ethdev_vf.c
@@ -1822,6 +1822,7 @@ i40evf_dev_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id)
 	/* Ready to switch the queue on */
 	err = i40evf_switch_queue(dev, TRUE, rx_queue_id, TRUE);
 	if (err) {
+		i40e_rx_queue_release_mbufs(rxq);
 		PMD_DRV_LOG(ERR, "Failed to switch RX queue %u on",
 			    rx_queue_id);
 		return err;
-- 
2.30.1.windows.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-21  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21  7:22 [dpdk-dev] [PATCH] net/i40e: fix mbuf resource leakage problem chenqiming_huawei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).