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 A552A459CC for ; Wed, 18 Sep 2024 15:57:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E53843262; Wed, 18 Sep 2024 15:57:55 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2051.outbound.protection.outlook.com [40.107.94.51]) by mails.dpdk.org (Postfix) with ESMTP id 7484F42F8D; Wed, 18 Sep 2024 15:57:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yltPu6NCZQdqPY/16epy/CF/UA5LCKpNwbuwPLqk/Tja5jgW35zb9sRe4AysoHGuwnYX6LnJlN8VYHL/I7tzuULbIBgF/B3yCSNgcYgw6W1gMi70FRzeaOk6mW7Cw/bFYXTHLeDu9BQAfgfKGpC2OaVXEkwdCD9oIiegEQIv6Txrt9sIYofmiEZtDOLWBMHGd+u9JgVd/JrlzqB9DedkjPtnwAaDb8L9ontjENGLnoZ7YdN45JhMWiz1K0FUWWUGwf+6zTAac8s0Oc6cXFiK/3k3aczR85nRkpR2w23yHhs3i8szHPFTOWLxUUmMbqjW0gl1/NqKKVY5c8r37f+GMA== 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=VxQC16K8+gTXFlDUOX1RFmTOllDp8Va9MlEOe7lZ3JM=; b=Xqr1CCN9DfoTaLlH5iwzrEp+K4PjqAAXumPvlycPlpSB+h7QRj7E8Z2nRwoylfMshmPOwjySKnRrz6wpWKHEhAvecT/NgGODpGjbwfhaIAv+ldYIeW8vz2VY3TzsRt3ejs+vjKum0yaWlah0eNTDrLO+Jg0GHoW6uw0WXnnbq5tVV870PMhZrRG2U/HQoMgUcC5+GHxSiHhhV9s+CBm0BrShBupWPeqoir8rkWPCio07JEIUvvz+yORgjPu28DplPwta15ZOo3128Git/BrndCpgPS396ekGzBishYLRqAzWnyhcHDSJyW61XFFDDE4QVlrlgdBeOHOfz3z2iRoLAA== 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=VxQC16K8+gTXFlDUOX1RFmTOllDp8Va9MlEOe7lZ3JM=; b=VIsmpdlYX7nec2dYqV1rIMswbqFsWiFZFAifJW0xMFVUMKV06Bc8IDhq3fX7QFaQrfF17/sto9smKyIs/nXhihU66kwcN+EWmqAiD1axWUX5ArMNf3GG+RxEDOnf9odqcQmPveTL5ouW5hrUD1oRtCpZYKx5QRhBEs+rG7t8Fo3O2rjVbT5Pj3rQpPtwCLenSEOlNnAKl6Zal1dL+4lntBjdj6O+jjKtppCZMdKEOTQicFTyK+FHY5Feo3+aGC4WhmquqTZyvOyYon4h3YJqsdJmtffeDinJYUkwijOKp/cQ6VkQSnFpVAOfHqUfqaiGH+qBhRfM8Q+DXE9jdpNNGQ== Received: from CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) by SA1PR12MB6919.namprd12.prod.outlook.com (2603:10b6:806:24e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Wed, 18 Sep 2024 13:57:49 +0000 Received: from CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5]) by CH3PR12MB8460.namprd12.prod.outlook.com ([fe80::2e9d:7265:3b84:59b5%4]) with mapi id 15.20.7962.022; Wed, 18 Sep 2024 13:57:49 +0000 From: Dariusz Sosnowski To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , Raslan Darawsheh , Ori Kam , "stable@dpdk.org" Subject: RE: [PATCH v2 4/9] net/mlx5: fix flex item tunnel mode handling Thread-Topic: [PATCH v2 4/9] net/mlx5: fix flex item tunnel mode handling Thread-Index: AQHbCdFE4D9JEFKxz0+YYuYfBhgae7JdkdCA Date: Wed, 18 Sep 2024 13:57:49 +0000 Message-ID: References: <20240911160458.524732-1-viacheslavo@nvidia.com> <20240918134623.8441-1-viacheslavo@nvidia.com> <20240918134623.8441-5-viacheslavo@nvidia.com> In-Reply-To: <20240918134623.8441-5-viacheslavo@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: CH3PR12MB8460:EE_|SA1PR12MB6919:EE_ x-ms-office365-filtering-correlation-id: c4742c2a-8fe2-421d-287e-08dcd7e9e1cf 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: =?us-ascii?Q?xiY2BHsOwJQaQSDRFYzYRWCQ9swEgcPB+0dwNaJpVWRJ371TB5++ufjwLXlw?= =?us-ascii?Q?fQ5dNVMtW+COKybtXCUNbm8Ntp5YutmK+oztTPTX9vB1oTZohGApg3gVD5qa?= =?us-ascii?Q?rJXcT/RGXpGi7dPwIKo/uvYkg+k0+XKxEt2RljWD3IoLdWBejXMEzNk1lo36?= =?us-ascii?Q?j0Y649gPW9F7xqk+HUusPT2YEkRGzUoUjSJ7JB0RmdCU0snbEZ2Tj0ECnD2C?= =?us-ascii?Q?+A4Y+L5LAgzodbApZPM0WA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9?= =?us-ascii?Q?/hamR4emY0vcHtPUtFkrxI+ZHN1nrZ646qrLg2kTHJoQV3TXhjhkcZeN+C5/?= =?us-ascii?Q?OZ3IDIMjrZ+BLuvxz44HPmS72OrNwMEeqH6JAUp+FDu4Jz2ve+x95UzZqhmP?= =?us-ascii?Q?1aHesaEMgEr4eTP9g4RlPe6P5BMG5D0a2xNDAxuHAqlELeOcqFnBVzuXW9eh?= =?us-ascii?Q?wLJzZNFSb+TNCKYsXvwl8IcBkuQ6ZFYfB5nS7KO3rVsbGbQjNg6zYzHIfq3S?= =?us-ascii?Q?cC21z8GTGm6ozb8UBdPyyZRtZPsQy6+7LjmKaAbW+Emy0zs4zw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8460.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: =?us-ascii?Q?7yxa8MR3vebtWYuz2YNNhJhZ3CH41WicUG6jhc9QHAs+5PwlSPujKCKnEPy0?= =?us-ascii?Q?KNZ3BGnuRDgSTL5LFkWTjC2CAP9KVS9EuXwE9LCC8fyF/yoYTAOMvMpJ7Qn9?= =?us-ascii?Q?nO9nRBJsYRdQwjkM5xCk/cwZ2OCj1qCS22n3GTaWOaRwJ1ToiPnSW2FX5eTM?= =?us-ascii?Q?se/X39sCFeT1a3XthfqCKPOxODaNmQeK3+B3drcGU2UOa/b7bGc5CHQSzqAv?= =?us-ascii?Q?LqBx+GJh64BXhMGUg2tZ60c8IbDnVnY38gbpYANrC6iS+pAbavNVnvYMZhOy?= =?us-ascii?Q?jxCclIfeX+UjthMvz5QboKlSIm1TtQSPIUc/FW6R32GvT3ihWXfPqPUXcqfp?= =?us-ascii?Q?z0XNAZhljWHodq6gab4Q9MyFvtsX/errMQ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YOtqWi1mlKl50Wq+5pt0uqjJWJ1YA6r4oCFlWeETG6SCZCNkwQNxlI6j1N?= =?us-ascii?Q?cQr5lMSU3hNPhALjAxSZZeSDejca0C6HStbKMStODPcoZNqKxA6dM1dqnk43?= =?us-ascii?Q?wOmDrJqVfH7Dw5isDnLlHcjiQYFTlvdH8ATIizo1ZWbQgelW+zc79QXtDtKp?= =?us-ascii?Q?7QdLVyQTeq2JSuImInek3H6F8JrtdDaYDBPbrXKNNe4Z0m4TOMt4AoHWKe0S?= =?us-ascii?Q?IkKWfAUG2nDWKcwT3fYaaozyUYILZ7S8EE+fgkAmJ8pS4HEK8JX5Ivk0RiLC?= =?us-ascii?Q?77mdm2oea1RdV3Goiz3azdKwgNsIz9dYODt3cid/?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4742c2a-8fe2-421d-287e-08dcd7e9e1cf X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2024 13:57:49.5450 (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: oTJ6u5a6rLPhW+uXtTyV6MFVTy0QSxeYSff8fwhXvGTqNroXL1BHq7WB8slY4QmLILwHzLFCPSr9oGEukZ3LcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6919 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 > -----Original Message----- > From: Slava Ovsiienko > Sent: Wednesday, September 18, 2024 15:46 > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Ori Kam ; Dariusz Sosnowski > ; stable@dpdk.org > Subject: [PATCH v2 4/9] net/mlx5: fix flex item tunnel mode handling >=20 > The RTE flex item can represent tunnel header itself, and split inner and= outer > items, it should be reflected in the item flags while PMD is processing t= he item > array. >=20 > Fixes: 8c0ca7527bc8 ("net/mlx5/hws: support flex item matching") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow_hw.c | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow= _hw.c > index 50888944a5..a275154d4b 100644 > --- a/drivers/net/mlx5/mlx5_flow_hw.c > +++ b/drivers/net/mlx5/mlx5_flow_hw.c > @@ -558,6 +558,7 @@ flow_hw_matching_item_flags_get(const struct > rte_flow_item items[]) > uint64_t last_item =3D 0; >=20 > for (; items->type !=3D RTE_FLOW_ITEM_TYPE_END; items++) { > + enum rte_flow_item_flex_tunnel_mode tunnel_mode =3D > +FLEX_TUNNEL_MODE_SINGLE; > int tunnel =3D !!(item_flags & MLX5_FLOW_LAYER_TUNNEL); > int item_type =3D items->type; >=20 > @@ -606,6 +607,13 @@ flow_hw_matching_item_flags_get(const struct > rte_flow_item items[]) > case RTE_FLOW_ITEM_TYPE_COMPARE: > last_item =3D MLX5_FLOW_ITEM_COMPARE; > break; > + case RTE_FLOW_ITEM_TYPE_FLEX: > + mlx5_flex_get_tunnel_mode(items, &tunnel_mode); > + last_item =3D tunnel_mode =3D=3D > FLEX_TUNNEL_MODE_TUNNEL ? > + MLX5_FLOW_ITEM_FLEX_TUNNEL : > + tunnel ? > MLX5_FLOW_ITEM_INNER_FLEX : > + > MLX5_FLOW_ITEM_OUTER_FLEX; > + break; > default: > break; > } > -- > 2.34.1 Acked-by: Dariusz Sosnowski Resending the Ack for each patch separately, because patchwork assigned my = Ack for the series to v1, not v2. Best regards, Dariusz Sosnowski