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 6558C428F8 for ; Sun, 9 Apr 2023 17:32:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6039D410EE; Sun, 9 Apr 2023 17:32:28 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2081.outbound.protection.outlook.com [40.107.94.81]) by mails.dpdk.org (Postfix) with ESMTP id C114F40A80 for ; Sun, 9 Apr 2023 17:32:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IHYUHcq5xTa54bRE6vd3mRNVaLU662N0YruvXnAi8bMLEsffcDNQjoOZR+sS9SwswU6dI4mucYHnDwevzBzn+ZpZZLT+ElLoc9Y5vTe85noq7ro3ZDQSeMESmm+6zeBejDQxwURMjm5VUW94R9yvU27xoO1IjJYnfs4Vc1qC3RIDC+kNoLo64phlOUA+tqtqBq5+MAX31T3B/dy8+KcNYNfJdLvrEMNKLmJ4GRzYcI1AJitunRCMd+pS39zul/lR1nRdkdAaqZhQjTDOYHMtUF3v9qV2+q90GT22spiA4gL5mi/Ey+pdyQmIV22axQ7rrrL02CzEiRJr3RPOYn5HBA== 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=wcOVWPheTV3sA/2GtPSSNVzcMloAKAIopof9u0nFIEM=; b=jgTEYQd4npQzs1GkhuSmzi3J4wasPDoxJMY1iFoleZRv5iB+g2Xi8/BDpAGN3W4UonrNoGdPNcJoCOMGb0NH5JOJkdPkEeoDFmFOjeoLYw4QTRlt1UPIstHS8N+RgL/DBWNllRqHnWUtrYy/KHaREIw0cFGF79yuWDRNuWmYdU6E+pbqhD6L7HW+fz/OG1POFiMMDsRZ/IL77WF6+Xx5qb9G1iREyjkSaTuCgbm6DZae+h5F/XxrSbctkQkwhuRvC+V1Nw+3AbBYMqeT9Dwg3bvLjiEXSqBKqoa+y8ZNhAbVjp0Up3odh96KWuBRsMRsgCuWLn0hFNMqS8pTqZ8g0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=huawei.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=wcOVWPheTV3sA/2GtPSSNVzcMloAKAIopof9u0nFIEM=; b=SlyL/2A8WRcPc46UWA2Zbyi9LfeEKO/WuQE2cpAbY0xmhTNllToGph7v3SrYRByZVCxi3Dm2150wEhfo40yYZ4MOx+YUQ8ZZd/bcqHYWqk7zW+IMXvcfgPvXF9vMcfdxkLGLdD4oFLJJcusubzadJ7Qe3vm0ofzyn8HfcRoccVXQX2MQaQynUfwy9YqopnUvxMANjFOIsBk3k61ykxyWfTKYkoSF79QxFFg/2DIKmVQAdqd9svAoPb0kqL+pK+Q9lRX3ebO4eLM2r8qM9qP6AwnXuDsr/k/ZUJ4j86YuTcgoSIbx2sbImxpqpC0XOS64T7sNUyut6fd/JKKN1hAKVg== Received: from MW4PR04CA0280.namprd04.prod.outlook.com (2603:10b6:303:89::15) by DM4PR12MB6350.namprd12.prod.outlook.com (2603:10b6:8:a3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.30; Sun, 9 Apr 2023 15:32:25 +0000 Received: from CO1NAM11FT009.eop-nam11.prod.protection.outlook.com (2603:10b6:303:89:cafe::28) by MW4PR04CA0280.outlook.office365.com (2603:10b6:303:89::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:32:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT009.mail.protection.outlook.com (10.13.175.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:32:24 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:32:13 -0700 Received: from nvidia.com (10.126.230.37) 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.37; Sun, 9 Apr 2023 08:32:12 -0700 From: Xueming Li To: Huisong Li CC: Dongdong Liu , dpdk stable Subject: patch 'net/hns3: separate setting hash key' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:24:26 +0800 Message-ID: <20230409152529.5308-79-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT009:EE_|DM4PR12MB6350:EE_ X-MS-Office365-Filtering-Correlation-Id: a7d502d2-13e7-4eb9-16da-08db390f9e26 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oSft41URgkZdZeWjKPEHLhMco4I6631RL/HTN/yYW7qI6GdhBU6xVOMIHdn8PZvRh9+09LAY7Bb6njn0JL3GL4BLsfBBwUfrXiD76mJztl9ALummXzEe40SFue3uXhHMazwwfBP12RA+sHVBuI5EWzEhJuDkE2mWc3tNg0Le6tZrLYYqiISct0AoNxE3mSiX4lhXW6+8EMRhndsD5HiBGdTc0OSI5KSTEXHEj/GVw8V1TI6SLRBPRArV3Pv8/SCk92WvkxjvW0IV7dbqdZNjiTcNb8NDCxeemdHLgK5qx5YkVhtGRhI5c/TY3BQTpcqOFK1JFB1+h7GWDO6AdFtVPYp74+oDB3Wz1fayrmwJGAx0ZNmmJQPfKil7UC/2fjfE6hzs4fKEnMoFON0ZhLfKqirNrE8RWGF+FIeClGpN8TTp4pmzqK6y8Qt1yYmzhPaONfknJSZqoqpTjVozEaA5qk0jq+hltbdtkm0A47rGcWW2/SBI3wFccUSCxV1K37aT7z7JWiBWgB1u4JbAyVAB9Fw6kv0jbAPklyKUupPFC0nDVJoC7w1OdKYfZC7w+rKlKVNTPu0hX1ayscz9ZmTclJsiffSmhSWqy7PdXDlxSIfm3lfXcNZP+TbdnnlcV2434TD2sUmTJIj8nqpkA9W7R2PTYA8YQalsWaVJLksnEGUmpGvQfHk7dYMp7I/asH7wUS4JTPc9NbDQomoE+mH33odgDhQLzcDmsU72NA+6YmDKmPm410S7TVJ2hz9Ip/EpuOS55S459m6fPwKG9Gh30PqNheNfdJ509KXK9MvOP5YN6E2LoJ/sVAzXPXPA/+ODrFMISBk+F88+fulmodZxtg== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(39860400002)(136003)(376002)(396003)(451199021)(36840700001)(46966006)(40470700004)(7636003)(83380400001)(2616005)(36860700001)(426003)(966005)(336012)(47076005)(478600001)(7696005)(54906003)(53546011)(16526019)(316002)(6666004)(1076003)(186003)(26005)(6286002)(4326008)(2906002)(5660300002)(40480700001)(36756003)(40460700003)(8676002)(70586007)(86362001)(82740400003)(6916009)(41300700001)(70206006)(55016003)(82310400005)(8936002)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:32:24.2708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a7d502d2-13e7-4eb9-16da-08db390f9e26 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT009.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6350 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 22.11.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 04/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/99c75dbbfe517b7f729aeb98789c7f0987da7fc3 Thanks. Xueming Li --- >From 99c75dbbfe517b7f729aeb98789c7f0987da7fc3 Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Fri, 10 Mar 2023 17:35:09 +0800 Subject: [PATCH] net/hns3: separate setting hash key Cc: Xueming Li [ upstream commit fe9cc8b88babd0911d91dc194b35c7c352e2bf7b ] The settings of hash key comes from the ethdev ops (like, dev_configure and rss_hash_update) and rte_flow API. For the ethdev ops, driver has to save it to rss_info::key in hns3_hw structure so as to it can be restored when reset is triggered. While rte_flow API no need to use this field to save, they has a global flow_rss_list to maintain all rules which save hash key. And hash key can be restored by this rule information during the reset phase. Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_rss.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c index dcd42b554a..401e3adfdf 100644 --- a/drivers/net/hns3/hns3_rss.c +++ b/drivers/net/hns3/hns3_rss.c @@ -376,8 +376,7 @@ hns3_rss_set_algo_key(struct hns3_hw *hw, uint8_t hash_algo, return ret; } } - /* Update the shadow RSS key with user specified */ - memcpy(hw->rss_info.key, key, hw->rss_key_size); + return 0; } @@ -672,6 +671,8 @@ hns3_dev_rss_hash_update(struct rte_eth_dev *dev, key, hw->rss_key_size); if (ret) goto set_algo_key_fail; + /* Update the shadow RSS key with user specified */ + memcpy(hw->rss_info.key, key, hw->rss_key_size); } rte_spinlock_unlock(&hw->lock); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:40.779875200 +0800 +++ 0078-net-hns3-separate-setting-hash-key.patch 2023-04-09 21:45:38.689042200 +0800 @@ -1 +1 @@ -From fe9cc8b88babd0911d91dc194b35c7c352e2bf7b Mon Sep 17 00:00:00 2001 +From 99c75dbbfe517b7f729aeb98789c7f0987da7fc3 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit fe9cc8b88babd0911d91dc194b35c7c352e2bf7b ] @@ -13,2 +15,0 @@ - -Cc: stable@dpdk.org