From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id 1631E2BA8 for ; Fri, 10 Aug 2018 03:11:47 +0200 (CEST) Received: from nis-sj1-27.broadcom.com (nis-sj1-27.lvn.broadcom.net [10.75.144.136]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 382B930C031; Thu, 9 Aug 2018 18:11:43 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 382B930C031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1533863503; bh=aL9sqwd7ArJP80wZExNrpd/FfYwDoImqnlZvvgcgFZQ=; h=From:To:Cc:Subject:Date:From; b=H6U6ucBh9Q3sJh3CWRbzR7Lb3nS4LOxSBxf1Yc6KKza9Cb6Yxse9zQWg/6VIKsT8j 9P8/ScUUSv3anQ2NOeCFi63NeOkFDp+50csSlo+ZWeHtEuEYA9JB8VXb8Smiz6JK3m YiKAoqbPStBVhpqkzCInTESUoDPLR7hhxgyNFnsM= Received: from C02VPB22HTD6.vpn.broadcom.net (unknown [10.10.117.63]) by nis-sj1-27.broadcom.com (Postfix) with ESMTP id 801C0AC0732; Thu, 9 Aug 2018 18:11:42 -0700 (PDT) From: Ajit Khaparde To: stable@dpdk.org Cc: luca.boccassi@gmail.com Date: Thu, 9 Aug 2018 18:11:39 -0700 Message-Id: <20180810011139.99348-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.15.2 (Apple Git-101.1) Subject: [dpdk-stable] [PATCH 16.11] net/bnxt: fix close operation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 01:11:47 -0000 [backported from commit 3c2e87c10b6f2c249a26e419b565bff5589b4637] We are not cleaning up all the memory and also not unregistering the driver during device close operation. This patch fixes the issue. Fixes: 893074951314 ("net/bnxt: free memory in close operation") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 86c2a8108..44bf6ba98 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -137,6 +137,7 @@ static struct rte_pci_id bnxt_pci_id_map[] = { ETH_RSS_NONFRAG_IPV6_UDP) static void bnxt_print_link_info(struct rte_eth_dev *eth_dev); +static int bnxt_dev_uninit(struct rte_eth_dev *eth_dev); /***********************/ @@ -586,6 +587,8 @@ static void bnxt_dev_close_op(struct rte_eth_dev *eth_dev) rte_free(bp->grp_info); bp->grp_info = NULL; } + + bnxt_dev_uninit(eth_dev); } static void bnxt_mac_addr_remove_op(struct rte_eth_dev *eth_dev, -- 2.15.2 (Apple Git-101.1)