From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A15FA0C52 for ; Sat, 21 Aug 2021 09:23:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 71E604111F; Sat, 21 Aug 2021 09:23:16 +0200 (CEST) Received: from mail-m974.mail.163.com (mail-m974.mail.163.com [123.126.97.4]) by mails.dpdk.org (Postfix) with ESMTP id DCE604003E; Sat, 21 Aug 2021 09:23:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=jYMLD 3caeNv5xpckXm8VHjPmavHh1rZM6cpY1y8vkfI=; b=mbAP/ZlglHjfdNTaxaQAF eFAQ7mxhm4PgjhPkZbfoA2i9Yyxo9fFQIcArWgal3sweikfYFtHHaUlAV8OwV9zK rL0oLJn3Mgx29mZK1XeEFC0WWM4L+PRrveSLaKYKz3DP3ZJroDONbjG2s/L4E63Z uao7R55OkY7QIMYs7hsVWs= Received: from localhost.localdomain (unknown [124.160.213.137]) by smtp4 (Coremail) with SMTP id HNxpCgBHNT7cqSBhDRrTAg--.2181S2; Sat, 21 Aug 2021 15:23:10 +0800 (CST) From: chenqiming_huawei@163.com To: dev@dpdk.org Cc: beilei.xing@intel.com, Qiming Chen , stable@dpdk.org Date: Sat, 21 Aug 2021 15:22:20 +0800 Message-Id: <20210821072220.5107-1-chenqiming_huawei@163.com> X-Mailer: git-send-email 2.30.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: HNxpCgBHNT7cqSBhDRrTAg--.2181S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKr4kWF47Ar4UCF4kXw4DCFg_yoWDAwc_G3 WDZF13trs8K3WFgr1xCFWfXF4FkrykWFn5CFWjv393W393Zw45Zr10yrnaywsrJw47Ka45 CwnxGa1jgryUZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0iF4tUUUUU== X-Originating-IP: [124.160.213.137] X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiNhL1oFWBn4-6LwABsh Subject: [dpdk-stable] [PATCH] net/i40e: fix mbuf resource leakage problem X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Qiming Chen 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 --- 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