From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 4351B1DBA for ; Mon, 30 Apr 2018 16:54:22 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id j5so14729632wme.5 for ; Mon, 30 Apr 2018 07:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Y0y4afhwwPmcr2q8AW91EcibLwm9S7LLdDg1t0RLMcQ=; b=C9+hrLabFXyzhv5PxLXwMdcJx5gksweS9FG0s1wext++esgBb+PhN5aS4WI8yYJEDF Du5toyhno7oNsKOiPNwalnJwXZAodgYZycJQihyz9zFGfB7LzYSHKN2kYXKnF8G0pHXN EjESiNs/nMgUFpHKzZqB4kPLpo23BXgCRgex6sq265kkn6Ak6x1OnzvZJLHLR4952V3B 4Tlbe2N00XVurSdBjd1A2wuXFEbuUFD/4jSia4DL2i0NcsCyF7Z6WoNMdZDeru5fDtyI SferPkWTTObSGALwa3GYEYtW2RzlgnymTflxv52urjRiyKqgXGVU5ooH1o4IQsfBCgFL gWXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y0y4afhwwPmcr2q8AW91EcibLwm9S7LLdDg1t0RLMcQ=; b=iwx8GxVrUBRTcqZnhk9HDO0wo6yYxHpUmeguj5DQWn75YxPgsM/X6A4Fil9etj3NLL 5gJGXDO+5r91Z0nqlfUCeyJpJGVbWxpBEzArcrLyv00apZ8YFl1jSsNskqi+RiuD6B1u MhTu1fboN6JmLVkaMRiy4PoqBSFv1unYkjMJsvhFF5T4yL+c5xjtBC6tkTGwqqDquphU dwxMF/vzI/AwMgsCnZRU8IGcoTUALJKEo/CtkwFaw9nMiIjvIulVVHi4GDvQYpso2obx QCym7AcOUF8t1ePnWYjQPOYMn/8VRsG3+jT8HOBjy1MqmPurlh80bmE//yvcZaiqGTU8 qo+Q== X-Gm-Message-State: ALQs6tD/NAYOZRjb2mktXxxFUzSidCrRERPdzMBQSed737/YINTmV0H8 hVq0XSFJYxe07BlR00cSFsOcE2h2U3M= X-Google-Smtp-Source: AB8JxZqR4bATUj/vpMvDVyOZpVdJdg0pGmDJNjDhtM9Ep+gsgu8eliqCdLrPjm8reQ8p7e3og3ZDYA== X-Received: by 10.28.146.136 with SMTP id u130mr8261591wmd.125.1525100061889; Mon, 30 Apr 2018 07:54:21 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id o16sm8221533wmi.14.2018.04.30.07.54.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:54:21 -0700 (PDT) From: luca.boccassi@gmail.com To: Ajit Khaparde Cc: dpdk stable Date: Mon, 30 Apr 2018 15:53:30 +0100 Message-Id: <20180430145402.23057-11-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430145402.23057-1-luca.boccassi@gmail.com> References: <20180430144223.18657-85-luca.boccassi@gmail.com> <20180430145402.23057-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: free memory allocated for VF filters' has been queued to stable release 18.02.2 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: Mon, 30 Apr 2018 14:54:22 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 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/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From b3b144d48d4c78cc5d0a89619a8db02257050b38 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 64a23f628..5ede63436 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.14.2