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 C44C5A00C2 for ; Thu, 3 Nov 2022 10:31:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C081E41156; Thu, 3 Nov 2022 10:31:21 +0100 (CET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mails.dpdk.org (Postfix) with ESMTP id DD2B4427ED for ; Thu, 3 Nov 2022 10:31:20 +0100 (CET) Received: by mail-wr1-f47.google.com with SMTP id l14so1747135wrw.2 for ; Thu, 03 Nov 2022 02:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xNjM4BitcqgsNZ5Arv14GG1guZxTA1YpRuFKr9kDyeE=; b=nQZvJteiM59jmmnPJsXkvCoL9LyneJlbAzh30+6mt6HsGBC8I5XJStnx2Q80CVV5o+ Oh/ZgPyb0jpRlQ1Rx0BajC1lxk9sGIoapXxUmS3EPB+sLrm8JSAIr1esfUgE0Aerc0z8 xVnBUUaS2OLR35yDXOH5FjW/6WnZgKp2/7v75wecVhWaZ/Kmm5HpgfdVJ0n/mPai15Ni gT8iscMpcSz/r3vk/rzrFtvvWbqEzEkQExkBhV1tWB8ZNGmgSzOD/WTFM9m4KcJet94e +qOWR4JWH2MNDmoVaPca/X4D4mfBFvXu8sw+YFkvUcejB8lD8YfIpSKO03ZbgZJnP7Tx 0X0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xNjM4BitcqgsNZ5Arv14GG1guZxTA1YpRuFKr9kDyeE=; b=RR5ZPR9ONdudLK7pCACWDOizKvOxAB7wtmW5MBbCJZ+T4Ag3Y6/y7fXv8BmA5/E3mb FGSHpTusPuch/BiEpE0rrmZltyb3NfpLp6x0rLYid+fNTz07/tPQSOItvRL49ap9VHo9 inmmYR9/WrKAebiPB8xtNTjCBVF8BWVTpFQjhyma/Syq/fM2wzJGFuCaDP93ZpxSEeA9 EIfCPouWfqOIjpdP7dk9SNcDmSRiGgrRor58XOzLyjr0y+cjExSaWZqzhnd1PCtqoPMa W/a81CNeyTOwfXhanlKhPnCgyDgun0D6FRp7o/Ery0K+Y4/K/G8chGSjnouxBfkLhwUJ 5XOg== X-Gm-Message-State: ACrzQf0clICEQvL0IDiVEV2juqFR4dDLiXgvRRdtKj/kZQhVU9Jp+3Wt W618BWOmqgwO1bBRI+yMEpE= X-Google-Smtp-Source: AMsMyM7juuvCe8hC8ifnaF6gD8RZHUMulBddt/Jax2GVUdo06oY3uInDI9muN+kS/4N3iGMQGj9kxA== X-Received: by 2002:adf:f9cf:0:b0:236:6a26:c055 with SMTP id w15-20020adff9cf000000b002366a26c055mr18102139wrr.195.1667467880573; Thu, 03 Nov 2022 02:31:20 -0700 (PDT) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id t6-20020adfe106000000b00231ed902a4esm379764wrz.5.2022.11.03.02.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 02:31:19 -0700 (PDT) From: luca.boccassi@gmail.com To: Kalesh AP Cc: Ajit Khaparde , Somnath Kotur , dpdk stable Subject: patch 'net/bnxt: remove unnecessary check' has been queued to stable release 20.11.7 Date: Thu, 3 Nov 2022 09:27:17 +0000 Message-Id: <20221103092758.1099402-59-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221103092758.1099402-1-luca.boccassi@gmail.com> References: <20221103092758.1099402-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 20.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/05/22. 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/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/f115c8ba75be98cb280c27d09569aeea5edb33ba Thanks. Luca Boccassi --- >From f115c8ba75be98cb280c27d09569aeea5edb33ba Mon Sep 17 00:00:00 2001 From: Kalesh AP Date: Tue, 27 Sep 2022 21:29:01 +0530 Subject: [PATCH] net/bnxt: remove unnecessary check [ upstream commit aaa44cb125ba43e543955831b6eba19c41c4fa87 ] We are not invoking rte_eth_switch_domain_free currently owing to an unnecessary check. This patch fixes that. Fixes: e2895305a5b5 ("net/bnxt: fix resource cleanup") Signed-off-by: Kalesh AP Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 0ca79229e6..22b52188b8 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -5902,8 +5902,7 @@ bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev) bnxt_uninit_ctx_mem(bp); bnxt_free_flow_stats_info(bp); - if (bp->rep_info != NULL) - bnxt_free_switch_domain(bp); + bnxt_free_switch_domain(bp); bnxt_free_rep_info(bp); rte_free(bp->ptp_cfg); bp->ptp_cfg = NULL; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-11-03 09:27:28.972337561 +0000 +++ 0059-net-bnxt-remove-unnecessary-check.patch 2022-11-03 09:27:25.473424377 +0000 @@ -1 +1 @@ -From aaa44cb125ba43e543955831b6eba19c41c4fa87 Mon Sep 17 00:00:00 2001 +From f115c8ba75be98cb280c27d09569aeea5edb33ba Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit aaa44cb125ba43e543955831b6eba19c41c4fa87 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index c4d863e3fe..2b5279f32c 100644 +index 0ca79229e6..22b52188b8 100644 @@ -23 +24 @@ -@@ -5977,8 +5977,7 @@ bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev) +@@ -5902,8 +5902,7 @@ bnxt_uninit_resources(struct bnxt *bp, bool reconfig_dev)