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 53E19A0543 for ; Tue, 21 Jun 2022 10:07:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F67140151; Tue, 21 Jun 2022 10:07:44 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2077.outbound.protection.outlook.com [40.107.237.77]) by mails.dpdk.org (Postfix) with ESMTP id D70FD40151 for ; Tue, 21 Jun 2022 10:07:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e5oAz6/uDiZHMaMakgT3nI1fSJ8pfilMr2kULyI68KE63lxEUv3BnOm69Bie7MY5r9BXC+8UpzepTyyB0xPrxgpJClH0mqgzHyOFpkZ6S77Tvtzyh1+qLHZavHvXZDRs6RGG2Dz8jNPTt1F1rRwCKVbBNA9ikMr91eud1KI2iq1toT+NMRZbHCwVaDmxGv02M0m8LKv3kewTl4GT3x+S/Wt0/Dl2JkajhLagY27E4r8oND7fA0/HHvyka7BgP1+KJZFAiDip4qwGNTxO974aLnMSSaUtQ7oqVX0GfLJi7OAhUnuyvLnZWdrbXJW838obZegK3hrdhRnXRhD8Xm2RsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Mk8kqRUwX+vzpZWMm6c4R0ZlJKUZTnaZa8hrBcPjUN4=; b=YYWsaRxebWxMGpaMz7wn8kKgFDpjPx+Jzq5BFoWfn3wcOiRdhbREyuy6Jkz0/j7oDw3O9JZ2ZfgY0Pq9Kgase2x58djYB346lRiQCEMv7xu1Rt4KGVvBd/gFY2F7Kpj64Si7ba/hzgIrCQXC54hVRrrrjKE3RhIhzfv+PqltieU3w4fam7dNUyNA/xxSnQj0Z0qRRwNAYh2WyeLDGnef1zxsGcU3e1qbZLjtuhXefKGXyiWpKqSBlxW/FFkCkQcGmIqM17BdDitTor6zmgmek34p+2OilxVyyDm6UEldUaMGlOgWpvGdCWoiOzdE5H3srWbFnXA7pp93R8TpwPAZ3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=broadcom.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Mk8kqRUwX+vzpZWMm6c4R0ZlJKUZTnaZa8hrBcPjUN4=; b=obU7JZg68wipPQtYzr5aY1LCOvMdkxb+YlZbCnfj5V5YCcn5HhqDi+OxSL2Unff45DXM2j4n1u/+NL68kWJfRuVuLVv2Uod/SOi0Ex80z+gS2IK/EvPPWpbH6xJtYhn771uPf8mRBwov1opwvu6yLPU9tvblD7KczeTOGvl4Ey4CgFM1AHEhO/1sMEwG7K9/0bWhrZ9nfdwpH1cTQLq8/i3QM95unGdEzLGA+i26D6uJEk8ywZ3PhV7otxorr8yBCkTH0OH7dizHmv9Krx5w9/gKl8k8tfgwBU4/EtZCdLHUJV8RMrvNqK9B1Bg7F8uFcsFaosxfGVNH2tUtWC1BUg== Received: from BN0PR04CA0063.namprd04.prod.outlook.com (2603:10b6:408:ea::8) by CH0PR12MB5249.namprd12.prod.outlook.com (2603:10b6:610:d0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Tue, 21 Jun 2022 08:07:41 +0000 Received: from BN8NAM11FT010.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ea:cafe::16) by BN0PR04CA0063.outlook.office365.com (2603:10b6:408:ea::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:07:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.234) by BN8NAM11FT010.mail.protection.outlook.com (10.13.177.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:07:41 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 21 Jun 2022 08:07:40 +0000 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 21 Jun 2022 01:07:38 -0700 From: Xueming Li To: Somnath Kotur CC: Kalesh AP , Ajit Khaparde , dpdk stable Subject: patch 'net/bnxt: fix freeing VNIC filters' has been queued to stable release 20.11.6 Date: Tue, 21 Jun 2022 11:01:58 +0300 Message-ID: <20220621080301.2315720-53-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220621080301.2315720-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 55945162-ce7b-410d-ab57-08da535d1d40 X-MS-TrafficTypeDiagnostic: CH0PR12MB5249:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6KHrJDwarTkvfjfij1+sfSv08Ps318TyrUFlKrAHadiAkVGCXPgk7Nsxh6Ub4zpwodwvzBeDnLcov7hGW7E/nc6wL6dsbLqY4KofNa7fvRP/u50xpUIT6Bq0grN5OFZhBIouXkDXEHo7dhMAo8qQ03KVrkUthsx24BcmKJLlE2FaU9mDgvwAfNqFJCk/hpQm8/LR/gIqWNOlp5ZHfqlU5tTPUlaPDjFaTxq7ejS2xG/Es+CcQJXHjrtqwT/pVY7xK8IaxS5tSJ/N5fIoFOhf0WX1b3fY3WcvqoIkSy6rLzpjuudS3sO46yaq7JccaPVcb5bMqXQffEGzErBATJJZCou80LY5Nmh6+wiPOZFB+iku2gPBGJEwgUxcgXmWk3S++XOoojlBPOgKbUiSaXVQe6NuBr9rQPfaXOYe4lsaldYqt8Zh88AHQKkIHzL0G5RYTvBiPTNLc+cJCIZ2Kgu/DBs7H97QaLmcGbm16kWnlepKlE+ZzNO64Rb2+oeTnzyjd+q92XaQVK7yA5NloOjkz6OKb1wv2qdt9ccrc4o70ai7oHUu8KV5lBiXziiuWq/y5mtSKuYn+/9Rsis3qOZg5IgnqgK7YE0ex2tIeS+Gkk161NilJzXunyETf9M503LuHwxZzjd4C0OZF12P2q0KU05IwhTJMXeWpWOjOfLT2/KByR3AgK6gbyaAvxhXo5GwTrDurSmcOHrhRVDTeXYYmxuAOYB9AFBlndA4wAi8mrdOO1wfSs0+Pc4tfdzicGAnbD+/dbvvzM6XuA9IlwciYutDwxFlt2LZKDP2sLsmQNMCItN4nlUYKeGrypv/qSXATeWa9pODbukXKJ3+gp+OLHYziaGSK/QnlR2Rc7OWADI= X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(136003)(346002)(396003)(39860400002)(376002)(40470700004)(36840700001)(46966006)(82740400003)(7696005)(36756003)(82310400005)(53546011)(36860700001)(356005)(81166007)(55016003)(40480700001)(316002)(6916009)(54906003)(70586007)(336012)(6286002)(8676002)(966005)(426003)(16526019)(186003)(2906002)(1076003)(47076005)(26005)(83380400001)(70206006)(8936002)(478600001)(2616005)(5660300002)(86362001)(40460700003)(4326008)(41300700001)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 08:07:41.2312 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55945162-ce7b-410d-ab57-08da535d1d40 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT010.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5249 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.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/23/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/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/ca4a019b457c6ef40b5edb28461f919934f03c30 Thanks. Xueming Li --- >From ca4a019b457c6ef40b5edb28461f919934f03c30 Mon Sep 17 00:00:00 2001 From: Somnath Kotur Date: Wed, 27 Apr 2022 20:28:20 +0530 Subject: [PATCH] net/bnxt: fix freeing VNIC filters Cc: Xueming Li [ upstream commit 2df7dfffe3dc5d6b65c77a7fbe155e38a9e3dc24 ] In bnxt_free_all_filters(), all the filters attached to a vnic are removed. But each of these filters hold a backreference ptr to the vnic and they need to be reset to NULL now. Otherwise, during a normal testpmd quit, as part of dev_close_op(), first bnxt_free_all_filters() is invoked in dev_stop, followed by bnxt_free_filter_mem() from bnxt_uninit_resources(), which finds a filter with a vnic back reference ptr and now bnxt_hwrm_clean_up_l2_filter() also tries to remove the filter from the vnic's filter list which was already done as part of bnxt_free_all_filters(). Fixes: f0f6b5e6cf94 ("net/bnxt: fix reusing L2 filter") Signed-off-by: Somnath Kotur Reviewed-by: Kalesh AP Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_filter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c index 6d85983242..5e3e5b8034 100644 --- a/drivers/net/bnxt/bnxt_filter.c +++ b/drivers/net/bnxt/bnxt_filter.c @@ -99,6 +99,8 @@ void bnxt_free_all_filters(struct bnxt *bp) bnxt_filter_info, next); STAILQ_INSERT_TAIL(&bp->free_filter_list, filter, next); + if (filter->vnic) + filter->vnic = NULL; filter = temp_filter; } STAILQ_INIT(&vnic->filter); -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-21 15:37:51.687453159 +0800 +++ 0052-net-bnxt-fix-freeing-VNIC-filters.patch 2022-06-21 15:37:49.074451382 +0800 @@ -1 +1 @@ -From 2df7dfffe3dc5d6b65c77a7fbe155e38a9e3dc24 Mon Sep 17 00:00:00 2001 +From ca4a019b457c6ef40b5edb28461f919934f03c30 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 2df7dfffe3dc5d6b65c77a7fbe155e38a9e3dc24 ] @@ -17 +19,0 @@ -Cc: stable@dpdk.org @@ -27 +29 @@ -index 1d08e03b2f..b0c3bbd1b2 100644 +index 6d85983242..5e3e5b8034 100644