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 0964245E41 for ; Sat, 7 Dec 2024 09:08:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0240E40281; Sat, 7 Dec 2024 09:08:15 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2062.outbound.protection.outlook.com [40.107.243.62]) by mails.dpdk.org (Postfix) with ESMTP id 00EE440E50 for ; Sat, 7 Dec 2024 09:08:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CGUtsscU1BSeVAUdxdPu/NvSDQRq+H3Ti6Aa1IuuyHqN5pJSnBDf3tk9Hg4Dpjsp2TO/YDPsW43pTgt8m0r6alASdcfhdiiQAg5AoJWi6qckqbgUjIHu6L6esvaSvPJXzuwDCeMP/cNM7+qmpD/f+6HT2ekZGYVZ9ldWTTo3CfklsjWwP5SePx9BV12smiv/pbR1wyCcaqwViBAfemKnYtL7Kmr63eZCpwpWABIcC33mUEEXgPH43PDWrtV+Njs4H6JrSIUo97LDC7efw5ho2y4uLcSwKbLX5TlOlJuBSENcOlze6LbMmadQQr4kpuI2pt/3KglLLBAMCeO9v6F2Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=g8WdFucQjOXjOCMWuK0h8I9D5n3oPkT7UwEGOKhBrXA=; b=KiQO+O2kJ20ahQSTF/HWveysmNzxECz/xN6fDqzXonEDIV0BzO/b8ojsciUABjFHqFtJKXpF6aZlxfvEDLxJBnLuCdwuamqyGNClAht0IFp0mR4ye495+UdFxs5heOnpOQpDSinmZmxpGwH9aIQVvLhXuqgtXCzQGUNBov9i1/9Y3BdkDroI2L3Hw63ekahd0etBeiaYaVq67ufQ3Ex1/PZmxUtLtMN2PO8u3/2GtReqxEyoKQ1czri7IjLyNNjhpU5zH8mW8ppYc3L21YyCU3mlbQYth/fust4O82QUpYV7YjT/FsjoMPJXkkk6fUdoxVslStoPCqfdyktQkuSF+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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 (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=g8WdFucQjOXjOCMWuK0h8I9D5n3oPkT7UwEGOKhBrXA=; b=diDPDPeB8oov9KNrYcA54it1id2JIAqWUg/h6uZFo5dEJ/bwoGtLHLZFqE0bLGragz5QM1CsfmeXb7Gn2SPrLjI7XvTGsMgyrTz/Vf8vEZ9ersszptCbScow1obN0H3w1TQJqyOP59dL6zJcQHZj4iA1RbGuE0G1zoFACXm4/nv3TQdt8uDVBxs1NMNlOdwMmmeNzDpnHLp/mCgfgTR03eZG1pGrNIkKh6LdG3i6j5QVdXc6ybbog+wAJttltrOaW+eykAhdz77SSpdOKLvlUFavxrA6kN7/7Qf94YMvERRIWQfgPqCN5WQ6VCLUBuIdCDvMa/peMmSjAeu+nau7hA== Received: from BN0PR04CA0083.namprd04.prod.outlook.com (2603:10b6:408:ea::28) by SN7PR12MB7106.namprd12.prod.outlook.com (2603:10b6:806:2a1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.18; Sat, 7 Dec 2024 08:08:09 +0000 Received: from BL02EPF00021F6D.namprd02.prod.outlook.com (2603:10b6:408:ea:cafe::9b) by BN0PR04CA0083.outlook.office365.com (2603:10b6:408:ea::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.12 via Frontend Transport; Sat, 7 Dec 2024 08:08:09 +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 BL02EPF00021F6D.mail.protection.outlook.com (10.167.249.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:08:09 +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.1544.4; Sat, 7 Dec 2024 00:07:57 -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.1544.4; Sat, 7 Dec 2024 00:07:56 -0800 From: Xueming Li To: Bing Zhao CC: Xueming Li , Dariusz Sosnowski , dpdk stable Subject: patch 'net/mlx5: fix default RSS flows creation order' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:31 +0800 Message-ID: <20241207080055.488538-74-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-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: BL02EPF00021F6D:EE_|SN7PR12MB7106:EE_ X-MS-Office365-Filtering-Correlation-Id: 5af034d0-3657-4987-7e3f-08dd169649ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?abMqIdjF5klGkzYAggN2DXOKlqgmYeG0uysEwJhis0YVVBI8XUj7saHyADje?= =?us-ascii?Q?As6HSQmv36KaOz9tfXu0+YdhFKjFwK48hDJNzYvUvhaUYPPzLbebqi2RueGd?= =?us-ascii?Q?nj5WY+D60s4Fa8R7GmsUQsGz10TAT6ZQw6Ruz32RjdJmrg6MU7XBaerkZc+A?= =?us-ascii?Q?AkbR4HXB1bJHyMQqg7uD8UP/2e/53Bo4Y8j7kGpUgZuO8ZhD5FVSmoxe0UkD?= =?us-ascii?Q?tOr5atGJwoINDzrua5LAXX+5Wp8yuAkAagif/+quXSrQebJtU8YVbzYAOagP?= =?us-ascii?Q?VQh02ERiw/cC9KnOFGSTYi1FbayXorBfzmCuFPbXlNE3GhaR1LpBkKR9yFrH?= =?us-ascii?Q?lEit5SyCPcPHvMEkIfTaHrHsP4YRR/1TAq8TKH23RO/HQ5TdbkxH7LnjSVVv?= =?us-ascii?Q?P6VAoE6VyXQFNgQ6DQn/odNdX/aiQUnv629gWPRQ4tV0OTg+xV3GrqjVQ0f6?= =?us-ascii?Q?gq5iuABwcFPtMe3bnlr1vEBw2UnMODGxZn/eAPGgkaWcTex4VPBwhpfLFwEq?= =?us-ascii?Q?9dk6a5wepYhXjoiHJ245dBJrple/e85vX3xjQHkEv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Pk7PCoxnyzKSvU8IHcAQWy?= 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:(13230040)(36860700013)(82310400026)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:08:09.5457 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5af034d0-3657-4987-7e3f-08dd169649ea 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: BL02EPF00021F6D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7106 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 23.11.3 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/10/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=8db2e5cda6bfbea1ff3c75d4855c4488c2d0dc74 Thanks. Xueming Li --- >From 8db2e5cda6bfbea1ff3c75d4855c4488c2d0dc74 Mon Sep 17 00:00:00 2001 From: Bing Zhao Date: Wed, 13 Nov 2024 09:19:52 +0200 Subject: [PATCH] net/mlx5: fix default RSS flows creation order Cc: Xueming Li [ upstream commit 9a66bb734e1311bcc2bf3b286f7ab6d28975c5c7 ] In both SWS and HWS mode, default ingress RSS flows are always created via the driver on the root table. In the current driver, the first created flow rules will be matched firstly when: 1. >= 2 rules can be matched on the root table. 2. the rules have the same priority. All MC / BC flow rules would have the same priority and discard the input priority from the user space in the driver. All rules have a fixed priority 32 when the Ethernet destination MAC is a MC or BC address. In SWS non-template API, all the device rules are added into the list and applied in a reverse order. This patch syncs default flow rule creation order between SWS and HWS. The order should be: 1. IPv4(6) + TCP/UDP, if required. 2. IPv4(6) only, if required. 3. None IP traffic. Fixes: 9fa7c1cddb85 ("net/mlx5: create control flow rules with HWS") Signed-off-by: Bing Zhao Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow.h | 8 ++++---- drivers/net/mlx5/mlx5_flow_hw.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h index afb3c3b72f..01f0eab1fa 100644 --- a/drivers/net/mlx5/mlx5_flow.h +++ b/drivers/net/mlx5/mlx5_flow.h @@ -2443,13 +2443,13 @@ enum mlx5_flow_ctrl_rx_eth_pattern_type { /* All types of RSS actions used in control flow rules. */ enum mlx5_flow_ctrl_rx_expanded_rss_type { - MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_NON_IP = 0, - MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV4, + MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV6_UDP = 0, + MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV6_TCP, MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV4_UDP, MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV4_TCP, MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV6, - MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV6_UDP, - MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV6_TCP, + MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_IPV4, + MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_NON_IP, MLX5_FLOW_HW_CTRL_RX_EXPANDED_RSS_MAX, }; diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 31e11763db..3dc26d5a0b 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -12812,7 +12812,7 @@ mlx5_flow_hw_ctrl_flows(struct rte_eth_dev *dev, uint32_t flags) struct mlx5_priv *priv = dev->data->dev_private; struct mlx5_flow_hw_ctrl_rx *hw_ctrl_rx; unsigned int i; - unsigned int j; + int j; int ret = 0; RTE_SET_USED(priv); -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:46.539518101 +0800 +++ 0073-net-mlx5-fix-default-RSS-flows-creation-order.patch 2024-12-06 23:26:44.063044827 +0800 @@ -1 +1 @@ -From 9a66bb734e1311bcc2bf3b286f7ab6d28975c5c7 Mon Sep 17 00:00:00 2001 +From 8db2e5cda6bfbea1ff3c75d4855c4488c2d0dc74 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 9a66bb734e1311bcc2bf3b286f7ab6d28975c5c7 ] @@ -27 +29,0 @@ -Cc: stable@dpdk.org @@ -37 +39 @@ -index a56e8be97e..bcc2782460 100644 +index afb3c3b72f..01f0eab1fa 100644 @@ -40 +42 @@ -@@ -2916,13 +2916,13 @@ enum mlx5_flow_ctrl_rx_eth_pattern_type { +@@ -2443,13 +2443,13 @@ enum mlx5_flow_ctrl_rx_eth_pattern_type { @@ -59 +61 @@ -index 6ad98d40f7..50dbaa27ab 100644 +index 31e11763db..3dc26d5a0b 100644 @@ -62 +64 @@ -@@ -16164,7 +16164,7 @@ mlx5_flow_hw_ctrl_flows(struct rte_eth_dev *dev, uint32_t flags) +@@ -12812,7 +12812,7 @@ mlx5_flow_hw_ctrl_flows(struct rte_eth_dev *dev, uint32_t flags)