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 E1E72A0A0C for ; Tue, 3 Aug 2021 14:23:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC38440E3C; Tue, 3 Aug 2021 14:23:05 +0200 (CEST) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 374D240E3C for ; Tue, 3 Aug 2021 14:23:05 +0200 (CEST) Received: by mail-wm1-f50.google.com with SMTP id l11-20020a7bcf0b0000b0290253545c2997so2006362wmg.4 for ; Tue, 03 Aug 2021 05:23:05 -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 :mime-version:content-transfer-encoding; bh=lX/KficFAPjPodaPgInWtbFlr9YSRuqXBhEV9W1cPL0=; b=bzv3Lliy3QmaavGT/DdkJTpWsYjurhv/tkOUuiZ6Lav9HFmnbhT5leHWW4KyqSCLPK FhT+KxHvUJoY9zpChAq+KgTbQwXxv+PgVaQDuBH2xxkNHP2pJuyjH/ZK+kh+Mz6pm51y dC7ZdNQf0Bo8H+4cbDgNkHJuueJvXG3frD+puCyu8J33rosV5NUlc8m8jdoBMTcG2xmL TYD6/m7i67CYsFeATzhjkXYiNF84LSthnZ5YrO9m9bFjiDiR8/gF85c1JdFzOe0oMgbd P62cPzcIFa/i1WD2g3OSVj2fN6idye8yCys1Awy/hZjSp5PB2s66cOkLTPYkOG6Z3Dgt F4ag== 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:mime-version:content-transfer-encoding; bh=lX/KficFAPjPodaPgInWtbFlr9YSRuqXBhEV9W1cPL0=; b=bTMiUKl252HhFdRGC+1wp8gXES0aAl+rsldQthKa7qhj1+Bg04Fg8DDkQOVwUA8Wf9 dEV/HQtgxcH4RL8zuQffH1RCYPevMDmiG++HsqGRqz5B6tWMpAV2DUaBdXQ/tg0sdxXS uzqPsg1Su1t4tpHZSofWUFgd/zJ49JllOCJVlXJsD8TVXykjjb6IkT6qGEJ2GIEGRXVD +gQXWKvEcNV4gIaTCU9VEMv0RZt1Ih30W/ci9wrzoBH3y7N28ToJOJgzyCuBuuKnB2CN c4UU6lSeh/F7VeiSneZpHzGb8Cm6cWbSjYZcopPBYr9tINt5IdLqASLTnYgShBvFlfOa Iv9w== X-Gm-Message-State: AOAM531QL5qBByGeovN5I20zHz0rL/OLtk6lDht1Us8gKEtcQ1QT0aFz X2fXWB8GmiQ9v56QR4nbPe0= X-Google-Smtp-Source: ABdhPJx79guIQPktt6QmuNb1Xw6j0Oy1VXK+0JTib49I7FuZ3YD9jamaVh9BfTlzny6EYROMaWfkoQ== X-Received: by 2002:a1c:7203:: with SMTP id n3mr4026231wmc.104.1627993385010; Tue, 03 Aug 2021 05:23:05 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id y24sm12458681wmo.12.2021.08.03.05.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 05:23:04 -0700 (PDT) From: luca.boccassi@gmail.com To: Dapeng Yu Cc: Jasvinder Singh , dpdk stable Date: Tue, 3 Aug 2021 13:22:05 +0100 Message-Id: <20210803122214.1094992-16-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210803122214.1094992-1-luca.boccassi@gmail.com> References: <20210726135322.149850-59-luca.boccassi@gmail.com> <20210803122214.1094992-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/softnic: fix memory leak as profile is freed' has been queued to stable release 20.11.3 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" Hi, FYI, your patch has been queued to stable release 20.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 08/05/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/3a0ced629fd2dd17a34b5225c427f44bd158e176 Thanks. Luca Boccassi --- >From 3a0ced629fd2dd17a34b5225c427f44bd158e176 Mon Sep 17 00:00:00 2001 From: Dapeng Yu Date: Wed, 28 Jul 2021 14:05:39 +0800 Subject: [PATCH] net/softnic: fix memory leak as profile is freed [ upstream commit b3bc560bd6bdf3c9851d25bc0a66cb24aa1fd48c ] In function softnic_table_action_profile_free(), the memory referenced by pointer "ap" in the instance of "struct softnic_table_action_profile" is not freed. This patch fixes it. Fixes: a737dd4e5863 ("net/softnic: add table action profile") Signed-off-by: Dapeng Yu Acked-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/softnic/rte_eth_softnic_action.c b/drivers/net/softnic/rte_eth_softnic_action.c index 92c744dc9a..33be9552a6 100644 --- a/drivers/net/softnic/rte_eth_softnic_action.c +++ b/drivers/net/softnic/rte_eth_softnic_action.c @@ -183,6 +183,7 @@ softnic_table_action_profile_free(struct pmd_internals *p) break; TAILQ_REMOVE(&p->table_action_profile_list, profile, node); + rte_table_action_profile_free(profile->ap); free(profile); } } -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-08-03 12:35:08.873297042 +0100 +++ 0016-net-softnic-fix-memory-leak-as-profile-is-freed.patch 2021-08-03 12:35:08.238819208 +0100 @@ -1 +1 @@ -From b3bc560bd6bdf3c9851d25bc0a66cb24aa1fd48c Mon Sep 17 00:00:00 2001 +From 3a0ced629fd2dd17a34b5225c427f44bd158e176 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit b3bc560bd6bdf3c9851d25bc0a66cb24aa1fd48c ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org