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 D0E4345CF7; Wed, 13 Nov 2024 14:40:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD11A40A6F; Wed, 13 Nov 2024 14:40:09 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2079.outbound.protection.outlook.com [40.107.93.79]) by mails.dpdk.org (Postfix) with ESMTP id 0B70B406BC; Wed, 13 Nov 2024 14:40:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yaD8B1avW6y7ZtXw5QxoBD8wR4r2QZujOGERKx041Whict32Iy2bOYIyIGjq2kYS1u20TdzzIIdjHl/hj0j1xn6HnoxMRcLCgYRjCFCkRxrByaVjUgR6tZ5Fd8pXkz4AHkfPnIhOWApvvL7xXmrF+SJ9sjKVkeOPhjx/S8DWu3GDzXY839CVtY9VfQ8cN3gC1fI2AAnGKzVJ32tdJFtmZI4uGkgGMRc3NwcWH2Sanp/p2eahbz6fdWRUorPBoYzC++0qK3GA6oA0A2TySfWHlSmEQbLDtgXlVDMinFcI63XOZJ9sDVhO2i4LQXgfWoPNNoWYwtfFA2E5jlIAOO5f9A== 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=hBvnh2LCclmxiHMG/rGUIcSDIm8z823cHtut+lc5uWg=; b=x7QUPoPNQDWosi66Z4YFs4HWG4y/5oz/hnSHy33QiJ4XxiaT5+2DutKCOr6W488OPpTf/IhWejfDPCH9W5ktUu9p5bxvoFZWbvkGQWd7Y5TOk/1XnVNw9CdbHSPAIsAC8Gxbe6/H1kAf82heJSGtQfvy5q8JE/V1eBbtc/NjNu+nnn16E8qwIVNB0Shp5pCQMccDBQkFnQ38FmNYQKPWE5Eo7oamiZJeFAjSjFMUyZjNTKGV1IVQLad6nV0lxag98jhy3Pq/cAY+NEIYGZvLBIYCh1VqrYTU+tBykfNOtYV0ctcHB8TzUqp6Jp4Qk8pUSrTYgx+2yEDNMoQg2X4t+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=hBvnh2LCclmxiHMG/rGUIcSDIm8z823cHtut+lc5uWg=; b=YeePCYubICqJNPdafxgNi0CftidutQXmx7CyjfCkeCyoUnK0GX1LhQjV4gz08sJYehdo1Xf7AvvjNbll72O0UN4j3hfDPnq+ObnooyZIAsERnzaIVLYUpCXhwVMJaAj0TcPUJXLqP/1VqoRaTppWR+hn7CzOt3wfmYYHZB57NMieyAglq0SNWeaBiaw70uXuyNhJ63a6NMKj1uM5TlFhz9r/dLnXGRlZaPpYy1lPn4wnJvM+YPusF3A+v6RiozWkPjHa5iiXbhYMNp8puOHhMas/xBppkRad5IYt7cQttApv/Ao0vKgv7iYySKyaFlM8a+j35BsCm/ZHveVXscHaGg== Received: from DM4PR12MB8452.namprd12.prod.outlook.com (2603:10b6:8:184::18) by MW6PR12MB8662.namprd12.prod.outlook.com (2603:10b6:303:243::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.26; Wed, 13 Nov 2024 13:40:05 +0000 Received: from DM4PR12MB8452.namprd12.prod.outlook.com ([fe80::b341:6309:cb1f:5b6a]) by DM4PR12MB8452.namprd12.prod.outlook.com ([fe80::b341:6309:cb1f:5b6a%4]) with mapi id 15.20.8137.027; Wed, 13 Nov 2024 13:40:05 +0000 From: Raslan Darawsheh To: Bing Zhao , Dariusz Sosnowski , Slava Ovsiienko , "dev@dpdk.org" CC: Ori Kam , Suanming Mou , Matan Azrad , "stable@dpdk.org" Subject: Re: [PATCH] net/mlx5: fix the default RSS flows creation order Thread-Topic: [PATCH] net/mlx5: fix the default RSS flows creation order Thread-Index: AQHbNZyHZPXAJbh1DEuMpt8VHNS6h7K1N8MI Date: Wed, 13 Nov 2024 13:40:04 +0000 Message-ID: References: <20241113071952.7581-1-bingz@nvidia.com> In-Reply-To: <20241113071952.7581-1-bingz@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR12MB8452:EE_|MW6PR12MB8662:EE_ x-ms-office365-filtering-correlation-id: 685b28cc-44fe-47ab-0677-08dd03e8ae6a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?VsI7VxiZ+IAhinyotPQzVqiTLiY8XbypwSL8/nrKZM4/Uw0fdWWgD3YJOC?= =?iso-8859-1?Q?gRWD8f2X+KK0gUscMkSA1AbFEvtO8VeIMYB3fq6YzfXMyW4W6JfPizpvJT?= =?iso-8859-1?Q?xHa4kfdo2dmN28EN4+8OyGUbWMFQKQvkAxOqIG9h+SDkKQCLhe65MdUd0J?= =?iso-8859-1?Q?PDmyhxeqC6UIdcRXHkqlHocwM7noXdkiU3+3hIRlBkIYw/4eE+XxgvwgBP?= =?iso-8859-1?Q?2Jhn3QRIhgO9QLAVGHU5z2OjPM19qhVZc5hm43GvFv2c5e2+lftywtpEfu?= =?iso-8859-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P5FXfAYMdoM+D3yi?= =?iso-8859-1?Q?wPd/E/BpnnHc1ReIRKZ6R3zqmmR+8rxVyxmx4s7h4kYFrDlpIiP1+88Q0c?= =?iso-8859-1?Q?peTfSUNFoKQNLulRVMJHfY9Ni23Z6Px/ZSrq6buP73Jr2RFtB/J78EhVvu?= =?iso-8859-1?Q?d6irlrS0AnOtLSjREwiUIH4D3WArmKdQ6qMhdjlNgkx36t6ry+9coJ9Nkt?= =?iso-8859-1?Q?DHA7bw9LiO4r9CgYJ3GiK381+Jo8w2Z9fZZLyPWBkY7xrVykj+jDY=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB8452.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?2UtIUgndsQyyvUMFPeUruCVLqsx6Gr19+ZBiO3y3fD5APlnolTTFvWqeJv?= =?iso-8859-1?Q?VvV+HG9O+ONRoawARGxQqhWM5/rs/BjJDmfkRirmWMslfW2xrPT+sJCuK9?= =?iso-8859-1?Q?P/EScFBvjU33YoFyHsb+HST8v2LHTKSm3Jvaj9yDyAeXbr5bKUaa66UYYM?= =?iso-8859-1?Q?cFMafXe+vzvSaO/QqcbdzweCboKyCB4qKzZTvgROPIDPIbvyYhmv9GK09N?= =?iso-8859-1?Q?YGNOBvcOp0N4AIADcJzcnCPiIx7hw3oWlD1mERXOPayZ8aX764PdwI5QB3?= =?iso-8859-1?Q?je1ry1TQR3NaNw0jphqGbiVIfTN/p9RvXNDTVEWFmIdyuCb5wRADaxreSf?= =?iso-8859-1?Q?Z3cUrYDRc/IEw6p5fsMNpac3W7cbrg+Yic6fwdOaa0HrZaQ5Z5os7qOEz0?= =?iso-8859-1?Q?oBsZXDutZ5pdIRdaU8sjBU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859-1?Q?uEU7KhE6swLH0Nxae5ZNeoC0Q8cNN+1OVyn1gWEeAQQqjQRKmuPGNX2cme?= =?iso-8859-1?Q?P8St5DnL1olmgkxC5Avf5HFuvS0fAFRLEIEr23jYHVrOc8yu04nDIDaRpD?= =?iso-8859-1?Q?08sz9wcLQfqCIEQ8v/7F6TrCe1cmrQsFXrKu0LFTj6ShaAB08aJmnB20kJ?= =?iso-8859-1?Q?8Mj9qhqrKQpmPnPTwt0Gj3GVb39aRAtT1b9yuj/LIU4J751whFM4/dPn3J?= =?iso-8859-1?Q?eRhq25Ur5Dx+8lutaEC+jnbGwbmU08FYF4rufOK/EbFg7TiwzaIjgvZOFq?= =?iso-8859-1?Q?HyPjIQxUKFJ7H3sGf5GdnPWc0Ewk+eM8qj?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB8452.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 685b28cc-44fe-47ab-0677-08dd03e8ae6a X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2024 13:40:04.9649 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uPcPS1atQ/XOzy9apVL1cIcm6DMGbJdr8bjF/XaIUF25B2VH9jrn4T4v/qR1crfYkKU516rfn0pKr6RXrNVIbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8662 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi,=0A= =0A= From: Bing Zhao =0A= Sent: Wednesday, November 13, 2024 9:19 AM=0A= To: Dariusz Sosnowski; Slava Ovsiienko; dev@dpdk.org; Raslan Darawsheh=0A= Cc: Ori Kam; Suanming Mou; Matan Azrad; stable@dpdk.org=0A= Subject: [PATCH] net/mlx5: fix the default RSS flows creation order=0A= =0A= In both SWS and HWS mode, default ingress RSS flows are always=0A= created via the driver on the root table. In the current driver,=0A= the first created flow rules will be matched firstly when:=0A= 1. >=3D 2 rules can be matched on the root table.=0A= 2. the rules have the same priority.=0A= =0A= All MC / BC flow rules would have the same priority and discard=0A= the input priority from the user space in the driver. All rules have=0A= a fixed priority 32 when the Ethernet destination MAC is a MC or BC=0A= address.=0A= =0A= In SWS non-template API, all the device rules are added into the list=0A= and applied in a reverse order.=0A= =0A= This patch syncs default flow rule creation order between SWS and HWS.=0A= The order should be:=0A= 1. IPv4(6) + TCP/UDP, if required.=0A= 2. IPv4(6) only, if required.=0A= 3. None IP traffic.=0A= =0A= Fixes: 9fa7c1cddb85 ("net/mlx5: create control flow rules with HWS")=0A= Cc: dsosnowski@nvidia.com=0A= Cc: stable@dpdk.org=0A= =0A= Signed-off-by: Bing Zhao =0A= Acked-by: Dariusz Sosnowski =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A= =0A=