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 D00D8A00C5 for ; Wed, 20 Jul 2022 10:23:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB8A640697; Wed, 20 Jul 2022 10:23:30 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2074.outbound.protection.outlook.com [40.107.100.74]) by mails.dpdk.org (Postfix) with ESMTP id DCC554003C for ; Wed, 20 Jul 2022 10:23:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jKHna3CvIjZhLa2HnVjA11wV4g6t/92ZERtrzerxcBfTQmaJdJ1PJKg19f5TO2YuiT4X8VkNNs0KPVJsUm7pPzt/5/4L50gut7JxvG6Tpcud5SnoA2rBaXDs5Wllke0C/PBW+nMHIpuI/ufla0tNh3HZKr8QBOgigukpMjbT9zIJqL007KEKZ4OUz5UhwDpje6EqMnkZsIcDx8t15pGg/KOk1nWhaQuWRiKLABHLskwqaVvWZkHl3KjljiIJe3PFtkD6zh5vH8DHimfhs35BTIHm+S3TkqNFr9FAsleAEdWupiYu11dKnXgq8LxCWXR92Zsd63TujlNzNLmcDC37xQ== 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=eCqe4KFgLAKRlwEihXugButVQORVyQBOUcsyRDWXL0A=; b=bTCY8vUFge7YSYu0AXr+OiMzdshN2MQ1aG3cCqxZgh6eLev6Dtq2Snpd11bP4FlIc0psWsY7dOyYy9MunBy74O3HkG1y6OQYwlpXsvXdJWpgPlwHbWymCzA6FyzBpMtQpUyJPc0/HGhFrgLJo/nV5Z/PUuxm9+KHIclJIn1U/kz8ibdIqAToI6NzFUPQDZKjRt2Fhry0fMcXFcSMb3D880jBw9WALmuUk572RehGk6Vtb3smI0yMgYiXUm4No1eg5qQXeht6hYxdzeDEunDAu5HFWKtnAN+fPwwigWroG+ePi+84RqPy8SwRSDG+3TFTNN/1vmroQ3yeaVqwyt6/HQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=dpdk.org 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=eCqe4KFgLAKRlwEihXugButVQORVyQBOUcsyRDWXL0A=; b=OZfPwJzlXqZx+uDnPZskl05DWxihiSDNM7n7V+N4FfGuHofm9IiglGKcUnaJOPK0dxqCmDh5DGBobND8G4yt69kwf43JadScEeGhcfuUIoCMWGihtCMC5oyxhdqNF7VSmqSUtUOZmZ1H6KsnWC5IioqHXOvB1UOUZk4qasC/Z4wXVPFfcIcDZT9lmCnF9DBDYHxRvr3IfnftaUIU0qKqdWSyh3w8Fo3YwXcMWvbpN7ds4PvUHpGkcWocmHi7YXSsrXPNjAJ4FIDHPNRR0Ghoi33gfezQhcSxkZYlCDWo6ARO4SqxEL4DWNwbQlluBmdasK8QhDwgIJYtjBnoaj5ivg== Received: from DS7PR05CA0054.namprd05.prod.outlook.com (2603:10b6:8:2f::28) by BY5PR12MB4003.namprd12.prod.outlook.com (2603:10b6:a03:196::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18; Wed, 20 Jul 2022 08:23:27 +0000 Received: from DM6NAM11FT008.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2f:cafe::f6) by DS7PR05CA0054.outlook.office365.com (2603:10b6:8:2f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.9 via Frontend Transport; Wed, 20 Jul 2022 08:23:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT008.mail.protection.outlook.com (10.13.172.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5458.17 via Frontend Transport; Wed, 20 Jul 2022 08:23:27 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:23:26 +0000 Received: from nvidia.com (10.126.231.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.26; Wed, 20 Jul 2022 01:23:24 -0700 From: Xueming Li To: Huisong Li CC: , Min Hu , dpdk stable Subject: patch 'net/hns3: fix return value for unsupported tuple' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:20:47 +0300 Message-ID: <20220720082132.3954126-18-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220720082132.3954126-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> <20220720082132.3954126-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: 8e6116fd-e7b8-40b2-5f2f-08da6a291ef5 X-MS-TrafficTypeDiagnostic: BY5PR12MB4003:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?kIVs6FjCOiTjPZDhDCWp/+o3YPCjvy0c+l+kNCVWE+pPt5kondX/jzSqN8w8?= =?us-ascii?Q?bR6uyzo1hBbPPw8uRiFzpq8eBpFzjpU+UEAqm1LNFvOx55e9AqKfUiX5Q6j7?= =?us-ascii?Q?qQSUcvQQOsKAUsWRD0kSBd/A+CLHCvdR70fjdh5HvdM2zphVhJ/7kpUGWaer?= =?us-ascii?Q?6ZTpyh2840g2s/qsbroLNDvaiApfGBqbqV+748qFrHrIJ1o56xL2nJGVzBF6?= =?us-ascii?Q?/XL3YWVxwPtGW+P5O5D+f7kgsdaS1bdd343TU/X05Dg+XMgRflWDWeveKZYV?= =?us-ascii?Q?957Z0S+GlTZGl0ixpBuumrhlTbBEBohFzy8UmXs227S2CpcKBE7E1BRu1xt7?= =?us-ascii?Q?cNF0AxZG9UiPRzp2ND6cfzi+AIn+3ftlatYx/Vm0j4IYedGmhwj01QKHxD4m?= =?us-ascii?Q?iR/t7y1t+Rd0Bh67t/rSawAAXi4YHRiswpxazu1Nilp21+0uA73oTMzBd2Ri?= =?us-ascii?Q?8cAdhdsJ1OcJd3xxI335MuOIt3Nb0NHULYgmJYd6Q3PbCeEpzSC+6h6CRTZo?= =?us-ascii?Q?GNCC/h94prvdLFkooR1bkD/8IHRB8fVfG25CcqEyc9/0OrQjwfuDknNDCrik?= =?us-ascii?Q?aDTQNUvd1W2qC0Rz78cQOgfrLpWzs605RarODEDpsSDxriXdo4V93hWCJ5LR?= =?us-ascii?Q?tTd4elxpcw/vdDpVY40YjGx2ZNkOMiqv929FPybGfFlScc5aNaF6eMhR1eCC?= =?us-ascii?Q?0jA6KFTzWKjlZ5Gq0dUbNm6lXisSnR3eWMzXiQuldJoMhHSObM6WIRZixmsG?= =?us-ascii?Q?8yF+48YzdibKWf4XpWP7mQXl3YHGTk+Hg+dMeBcOtwEBqpd+L3FErBh6BGCP?= =?us-ascii?Q?miE64V6qBz/V2hzCRuFEaxqQh7+iFxUeTEbcT5qcFKkKrK6qlUz6+/mOVNtC?= =?us-ascii?Q?uKBUchqJbDK1z1ur6lQjUjlvAB4zsIvfKb8uO3208m/fOE4D8x4BfIg7dg2G?= =?us-ascii?Q?Xiw56nJbexHfrZUlP5Ywsg=3D=3D?= X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(136003)(376002)(39860400002)(396003)(346002)(46966006)(40470700004)(36840700001)(6916009)(81166007)(316002)(82740400003)(7696005)(83380400001)(82310400005)(4326008)(36860700001)(70586007)(70206006)(8676002)(54906003)(36756003)(356005)(53546011)(5660300002)(966005)(55016003)(40480700001)(16526019)(6286002)(26005)(8936002)(478600001)(336012)(41300700001)(6666004)(2906002)(426003)(40460700003)(86362001)(47076005)(186003)(2616005)(1076003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:23:27.0697 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e6116fd-e7b8-40b2-5f2f-08da6a291ef5 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.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT008.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4003 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 07/22/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/35768b682bc30151315f919a9a7b62b857bf3c7c Thanks. Xueming Li --- >From 35768b682bc30151315f919a9a7b62b857bf3c7c Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Wed, 1 Jun 2022 11:52:47 +0800 Subject: [PATCH] net/hns3: fix return value for unsupported tuple Cc: Xueming Li [ upstream commit 66689dc09f0cf92af03abcba58b7474fa8ac847e ] Driver should return false for unsupported tuple. Fixes: 18a4b4c3fa80 ("net/hns3: add default to switch when parsing fd tuple") Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_fdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c index 693d9c731a..4e1667d2f8 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -618,7 +618,7 @@ static bool hns3_fd_convert_tuple(struct hns3_hw *hw, break; default: hns3_warn(hw, "not support tuple of (%u)", tuple); - break; + return false; } return true; } -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:00:59.599142119 +0800 +++ 0018-net-hns3-fix-return-value-for-unsupported-tuple.patch 2022-07-20 15:00:58.684333873 +0800 @@ -1 +1 @@ -From 66689dc09f0cf92af03abcba58b7474fa8ac847e Mon Sep 17 00:00:00 2001 +From 35768b682bc30151315f919a9a7b62b857bf3c7c Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 66689dc09f0cf92af03abcba58b7474fa8ac847e ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ -index 2a7978ac07..a0d6598e57 100644 +index 693d9c731a..4e1667d2f8 100644 @@ -21 +23 @@ -@@ -631,7 +631,7 @@ static bool hns3_fd_convert_tuple(struct hns3_hw *hw, +@@ -618,7 +618,7 @@ static bool hns3_fd_convert_tuple(struct hns3_hw *hw,