From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id A05D12C6A for ; Sun, 6 May 2018 08:37:55 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 508AA2244B; Sun, 6 May 2018 02:37:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 06 May 2018 02:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=pkp0RNg+ekiUDp0U0 rS+RSDEXsWpzaqiam46q0z3W+Q=; b=HxTvOA6u9EmyHL+Zb6+sXD1Ko7YyZoXHT 45gBpCJlsL3eV5+Rh2f9D6iARJMwtKK1UNJcXDGOBzDgkiEhHcz3x2EbVngsN99B 9t/TrMsWbKAH9izvZ1uH0oN9+FLuoPhMK+FE+YnZVW2CsUTD9turx0jvgXDne/4K KKuUDlWeE3/CP+KLEflqoB/lsCDxogpNAMA/gYVqdH0PzT5I6s9/vIERhjKxB0e4 vfHJ22RV9rNwEY3On92JyF6YOupKaiRuCC/UhTGQa8IDCifDPnEk2WSSmO53jvfd lBdg+VIS70wCj0HiwsAXV6cj/CpcjHfepDtOSu1QhsweYj1Q7CYxA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=pkp0RNg+ekiUDp0U0rS+RSDEXsWpzaqiam46q0z3W+Q=; b=moFzQrx8 ZMJBu2r4d25zmwul1mc0Sz4YmgDD/fQz5Gzytru0uPdIQ/lQUbngjv/YZ08/aHnS roEdKDcPaDHkynIf+DVWY3KbpbEenBgaBV7LUI5qcOScHTNJo4uan0uDdbYblIEJ vZNt7PSUfnSWbgkXgfKjtsY/ahzvLd7oLpdEA8YWgzQRO2QlMWEcysUetSY6PLSo hm/dBHXMLPWFQR4BeiK2vT9gJA6u6t9HGztj3B/Px3M3PtkzhDEIGdXdi89lIL0S LjVaf0bfNcMea+LPlB+o4MNgSDabjXrfSutF+JWe9/7H/qdjTaVzn9rTbu7DedFJ MqgxT111U/Eyzg== X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.102]) by mail.messagingengine.com (Postfix) with ESMTPA id D68E810253; Sun, 6 May 2018 02:37:53 -0400 (EDT) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable Date: Sun, 6 May 2018 14:36:30 +0800 Message-Id: <20180506063639.23196-17-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180506063639.23196-1-yliu@fridaylinux.org> References: <20180506063639.23196-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: free memory allocated for VF filters' has been queued to LTS release 17.11.3 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: Sun, 06 May 2018 06:37:55 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/09/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 45d2281f87735421a083b4fee4cde1ceb7d653b5 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Mon, 16 Apr 2018 18:11:23 -0700 Subject: [PATCH] net/bnxt: free memory allocated for VF filters [ upstream commit f11fd694a84a3108b93aaf807f1d1f12cb112ac4 ] Memory allocated to hold VF filter info is not being freed currently. This can cause potential memory leak. Fixes: 7a5b0874440e ("net/bnxt: support to add a VF MAC address") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_filter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c index 32af60612..8d3ddf1d2 100644 --- a/drivers/net/bnxt/bnxt_filter.c +++ b/drivers/net/bnxt/bnxt_filter.c @@ -159,6 +159,14 @@ void bnxt_free_filter_mem(struct bnxt *bp) rte_free(bp->filter_info); bp->filter_info = NULL; + + for (i = 0; i < bp->pf.max_vfs; i++) { + STAILQ_FOREACH(filter, &bp->pf.vf_info[i].filter, next) { + rte_free(filter); + STAILQ_REMOVE(&bp->pf.vf_info[i].filter, filter, + bnxt_filter_info, next); + } + } } int bnxt_alloc_filter_mem(struct bnxt *bp) -- 2.11.0