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 2DAEC433D8 for ; Mon, 11 Dec 2023 11:22:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26E3A40ED2; Mon, 11 Dec 2023 11:22:04 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2050.outbound.protection.outlook.com [40.107.102.50]) by mails.dpdk.org (Postfix) with ESMTP id 332AE42DA6 for ; Mon, 11 Dec 2023 11:22:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U3Ydu50H3afv+RAMXkWKe4mEQpuXQiRH+Oaf5fqeeUP36iGJO6g3F8DQArhjGuzrzbZKZ7b7cVsCeNzoW5kwm2+JVibP3udgCO+VxqEWCERyD+38HBnyLfHCeJ4tajgA2iIUjqKqyga2h69aPjLLjGjQ64KawjZejio4k6Eo5ntcduYU1RMBmpdGULgqq7eTykk34S0vDNjrYXVdIfTYM9Gna726OR5nGRG3Yj0b5JHPibLiXy0HrIcRb4xwo8E61syqCapBJNet6Uab1iKvWf9IXp4q6/u6ABpT8eSDDk5M6wUpTkw1BcE2qzMwEMrWRjOMPbXFKcuSFtK1eri3TA== 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=SI6NTZXmylPJbiNhSMlSAMADPjB7FEEJj/c9WQKKCvo=; b=aopFJHDNCNyCMSV7NTr7MfinjYNfcLMomzsTmdQ3T03/YpOoFDWia8zKL56vN7r8pcDlWPjBMQP/y6bMX2TUpba4jScfHvsamdhvYtyHKqOl7OQxfV9fqS5ufTciZPgcKrKA9tX3AIJsc72k4SOAzAk934fGfo9pauK6Z6Pd9sCTNNRrZTZGNfwyVx5Fs3CLeJNardElJLTsGc6ylfSTBx+o8olXJ8JcQOuaZ1fxkQePmzj2ACveybDzfBu+Jm9ZaxYBKsZNvFEhyBpmzBoU3ea5n+h7W/EJwO23j3azoIWPUu3ZLx0y0Q45JGLNHbqNhERsm14O8Z/n3zh3Aj8kqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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 (0) 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=SI6NTZXmylPJbiNhSMlSAMADPjB7FEEJj/c9WQKKCvo=; b=P14AyuZMGWu8D+Rb7ogeAA73pHqO1i1qPe+h9YE4FGa0JGIA8niBsrKMgXmRPWcWxnhaCbcrRhg52YGAXJszBHzLwvl7dNVSazXfv1YxainIF1UyPU4DeB7JkojImVE894+LaVqpmG1vCRq3hJzGvx0M0Nr/v9W7lWTcd7k62/r3V1z79MtjdD9u3IoPmOqYxPktv2qonHtf+KGC6FKUGtvLopkiRKLDS/yxxwLiJlelWyWlQrboQXKzQl6I0nVyEPSh8+fJlT9kv2JnRBKpfAwHPWmllNbBgPN4aF0Sde9742wRWmTHFEc8UgGhHDyXFvYlmZGEMtPJEbf1HOFoWw== Received: from PH8PR07CA0039.namprd07.prod.outlook.com (2603:10b6:510:2cf::7) by MN2PR12MB4255.namprd12.prod.outlook.com (2603:10b6:208:198::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 10:21:58 +0000 Received: from SN1PEPF000252A4.namprd05.prod.outlook.com (2603:10b6:510:2cf:cafe::8e) by PH8PR07CA0039.outlook.office365.com (2603:10b6:510:2cf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33 via Frontend Transport; Mon, 11 Dec 2023 10:21:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SN1PEPF000252A4.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 10:21:56 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 11 Dec 2023 02:21:40 -0800 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.41; Mon, 11 Dec 2023 02:21:38 -0800 From: Xueming Li To: Huisong Li CC: Jie Hai , dpdk stable Subject: patch 'doc: fix RSS flow description in hns3 guide' has been queued to stable release 22.11.4 Date: Mon, 11 Dec 2023 18:12:05 +0800 Message-ID: <20231211101226.2122-101-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211101226.2122-1-xuemingl@nvidia.com> References: <20231022142250.10324-1-xuemingl@nvidia.com> <20231211101226.2122-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A4:EE_|MN2PR12MB4255:EE_ X-MS-Office365-Filtering-Correlation-Id: f3c0fbfc-dc00-4fd1-2900-08dbfa3300c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C/Zsq+CarJ/ql3OGvqGKONLp3pXu5chvRVsVWZRojbqwH5X/ymezgTWrQaHZnKRKDS2jlqZ+eS23Q4wRWEt/VJNgABH/S4+OssweCCeQisPjr53zJkdbnd+qIgo8TS+4BDVfLKefW12kknuNagP6GpR8AYIRKOefmyr6hbq2LR/ptHbyv89cuoGLAsy0uEPlg/vjAsqWOHTnyUdHGWwzbwbAcLbAL7Uxg4xW6XxPMjK6/9Jr0LjN47v3t90xuTN1fUxnxpepvI1/th4RXtpHWn+Skm2dgtxVh4WYM3iPjR+R0yNTQb4UJlm79kJjbLU5esxrWOTXWkuhgrI/dLar8aDeDDHIkEI1a+mNRrbIIr8Ey/qROWIx4ghR4fpj3BnhwLuRMIH6/PuurBZrf8vObK2VCVVS1Bv4wcxpb7kwbjlYTynxZsnZJ4B8lzOmkcgRyG98ZkOts6O/P6QmzMYFBqOAi8uAV0+GHeTzb2c28Ujp12hDRPT+6qOgpBKEoSSQfz/zrRZpatq4s63qbbbwd2JfukmUepha7jaXEYji/mp9zgtsVVjG/etDyODgNZjE1KIOy/S9zAga8RwnhLR9wV6NIx9lxE0pPcIwCByiZmFeyenBoaur66pP/HDngjDiCA1j7QJPVIkT0Nhxi6XSlQeyU+6YdPdzVlMg53o+Ocasw3/C+ijF1abTi8goKEjl9k2mtZvjMwXXTyuEgs6b7EphAVmkruYV0redWgUQmGsJWimCKRljOInRzKMI9+SLn2OHi40sSUs1z1ZqvpWV0xxuUVpGCmQXrKFMVuQJZ5o= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(396003)(39860400002)(346002)(376002)(230922051799003)(1800799012)(186009)(82310400011)(451199024)(64100799003)(40470700004)(46966006)(36840700001)(40480700001)(55016003)(40460700003)(1076003)(6286002)(26005)(16526019)(2616005)(47076005)(7696005)(478600001)(53546011)(6666004)(7636003)(82740400003)(86362001)(36756003)(356005)(41300700001)(4001150100001)(70206006)(70586007)(5660300002)(2906002)(426003)(336012)(36860700001)(83380400001)(4326008)(316002)(966005)(6916009)(8936002)(8676002)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 10:21:56.4848 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3c0fbfc-dc00-4fd1-2900-08dbfa3300c5 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4255 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.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/13/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/commit/?h=22.11-staging&id=ce75c85b4a25cd2888c441c40fcc0d9cb67a87fd Thanks. Xueming Li --- >From ce75c85b4a25cd2888c441c40fcc0d9cb67a87fd Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Mon, 20 Nov 2023 19:14:04 +0800 Subject: [PATCH] doc: fix RSS flow description in hns3 guide Cc: Xueming Li [ upstream commit 9036f9fef8ed7002ba45d78ef1e5c604dfc9948a ] The hns3 driver supports for creating rule base on input tuple, hash key, queues and hash algorithm. But hash key, queues and hash algorithm are the global configuration for hardware which will affect other rules. The rule just setting input tuple is completely independent. Fixes: 63a0f65c9572 ("doc: add more description in hns3 guide") Signed-off-by: Huisong Li Acked-by: Jie Hai --- doc/guides/nics/hns3.rst | 42 ++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/doc/guides/nics/hns3.rst b/doc/guides/nics/hns3.rst index d4ca2b718c..380024600b 100644 --- a/doc/guides/nics/hns3.rst +++ b/doc/guides/nics/hns3.rst @@ -212,36 +212,50 @@ Generic flow API - ``RSS Flow`` - RSS Flow supports to set hash input set, hash function, enable hash - and configure queues. - For example: - Configure queues as queue 0, 1, 2, 3. + RSS Flow supports for creating rule base on input tuple, hash key, queues + and hash algorithm. But hash key, queues and hash algorithm are the global + configuration for hardware which will affect other rules. + The rule just setting input tuple is completely independent. + + Run ``testpmd``: .. code-block:: console - testpmd> flow create 0 ingress pattern end actions rss types end \ - queues 0 1 2 3 end / end + dpdk-testpmd -a 0000:7d:00.0 -l 10-18 -- -i --rxq=8 --txq=8 + + All IP packets can be distributed to 8 queues. - Enable hash and set input set for IPv4-TCP. + Set IPv4-TCP packet is distributed to 8 queues based on L3/L4 SRC only. .. code-block:: console - testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \ - actions rss types ipv4-tcp l3-src-only end queues end / end + testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end actions \ + rss types ipv4-tcp l4-src-only l3-src-only end queues end / end - Set symmetric hash enable for flow type IPv4-TCP. + Disable IPv4 packet RSS hash. .. code-block:: console - testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \ - actions rss types ipv4-tcp end queues end func symmetric_toeplitz / end + testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss \ + types none end queues end / end - Set hash function as simple xor. + Set hash function as symmetric Toeplitz. .. code-block:: console testpmd> flow create 0 ingress pattern end actions rss types end \ - queues end func simple_xor / end + queues end func symmetric_toeplitz / end + + In this case, all packets that enabled RSS are hashed using symmetric + Toeplitz algorithm. + + Flush all RSS rules + + .. code-block:: console + + testpmd> flow flush 0 + + The RSS configurations of hardwre is back to the one ethdev ops set. Statistics ---------- -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-12-11 17:56:26.337371900 +0800 +++ 0100-doc-fix-RSS-flow-description-in-hns3-guide.patch 2023-12-11 17:56:23.217652300 +0800 @@ -1 +1 @@ -From 9036f9fef8ed7002ba45d78ef1e5c604dfc9948a Mon Sep 17 00:00:00 2001 +From ce75c85b4a25cd2888c441c40fcc0d9cb67a87fd Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 9036f9fef8ed7002ba45d78ef1e5c604dfc9948a ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 3703987309..3b0613fc1b 100644 +index d4ca2b718c..380024600b 100644 @@ -24 +26 @@ -@@ -239,36 +239,50 @@ Generic flow API +@@ -212,36 +212,50 @@ Generic flow API