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 0B70545C15; Wed, 30 Oct 2024 15:21:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EAFEA433DA; Wed, 30 Oct 2024 15:21:45 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2049.outbound.protection.outlook.com [40.107.237.49]) by mails.dpdk.org (Postfix) with ESMTP id 9D654402EE for ; Wed, 30 Oct 2024 15:21:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GSut0/FFaBOpnuZysz5++xe530EQ+JiNYyboJQCXFZ850v0jSFaqMGmb1Cr+NTcnZm+M0sB28qnQ6s+ZlzdBq8/BHrahxyZ/pvCRS4Ol0AyzvV/rXiupQumXy8kCN3sng196ZW1J15k9GIEcDg8r2Lf0Fqgn/nkuQ+Pu/N7ko0hBuxi1vbyyv3+cxkgCNOBueVE7lIWNAbSNNO9wLoqFlPp+3O3g3BhDqTkFBNzl1quPzCa2QALzRUWOU53LAT53ldAv/hsjlW2djCoCAxOVjc4NZsR/Xhr63NfwTp7hF7liy5W3JTWOTTgzeZ7LG2PmMt1/kGZ86FoccahSXQSoQw== 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=0uHq5/FPS95smbQ1Yq26aSdWz2mtTwfWpiG7yFFi1Dc=; b=A2kogN/3+yfRSeEitMsjtTA2YooC9TK2oZDvFQ78+fj/gz9cmd6YfmYmvykWV5sCJlXpKDunROQ5BnguVKk4TsDekDXFR8aFsieqJxrl1Ko41v/xnOjm/e/NJowjRMo1XE14AWEvXF9NZXkazj7pSG9xpcDmsZbBIbWOG7if15qOxNgJSz+pyM+ev0nD7/rxUvepSY9yja7GfUksCZUKjvMnqjB0urug2iGWB8jCnz2aUKNgq6R5rviZro7jETLPnrXaqfAY6AsMDmlaanJFWKcsWi2SQ8bpO6Mc3amq/A6IV3csBNKQwpA/MpTWz8tTNZ+2ARHCd2jOwFNHPumJdQ== 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=0uHq5/FPS95smbQ1Yq26aSdWz2mtTwfWpiG7yFFi1Dc=; b=Pl3kzUXzXltVn3PjpcE20Ga4T33qLSVcH/jpgyjhTayw2ZfAqrgpvRgMcGAoEaY/MNarSNZwtADaV3uhGMVf2txKtRXCtnXDur2ySQYXuV6lTqxz21UyWNOndb+lVta/h/6v79P7xiN4dccKVctbsyRAkDoNTyhN+p+haHFqmy/ua7/QIipaMFGTg649dcSeBn7srTDOIfgkQ3pldRa9wv9DO7XTDk+UG/pG8JSRBLhSA1/FG0ZqcxlmckM058jFT+omEpH0QgWT8eFBnPD6kmgHuE1shJB9+ONMrGwNcRvRfhMNzxjKoKnCrHkQUJhOSoxE1ZHjkuRB1qaUcUfAMA== Received: from CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) by SJ1PR12MB6195.namprd12.prod.outlook.com (2603:10b6:a03:457::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.28; Wed, 30 Oct 2024 14:21:41 +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.8114.015; Wed, 30 Oct 2024 14:21:41 +0000 From: Raslan Darawsheh To: Gregory Etelson , "dev@dpdk.org" CC: Maayan Kashani , Dariusz Sosnowski , Slava Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad Subject: Re: [PATCH] net/mlx5: fix raw encap validation Thread-Topic: [PATCH] net/mlx5: fix raw encap validation Thread-Index: AQHbKDDXLg2Ag2iP3U6M7hfm4HrR8LKfXVuR Date: Wed, 30 Oct 2024 14:21:41 +0000 Message-ID: References: <20241027052625.208681-1-getelson@nvidia.com> In-Reply-To: <20241027052625.208681-1-getelson@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: CH3PR12MB8460:EE_|SJ1PR12MB6195:EE_ x-ms-office365-filtering-correlation-id: 33e29079-3b14-47b6-068f-08dcf8ee2cc8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?zDeQvU5s4QX4GVaLMgdSTZD/HOtV/x3rB7n8cBGplbrmUhetUKXZwdDrsT?= =?iso-8859-1?Q?Va3+tK3JyNk59fAPC2AJs5FpLpOIfDZ0gA+MsdpxDqmXFDaE5Ne8BqBkaE?= =?iso-8859-1?Q?YkVvZqhnBE0nMJWXzLmxpSjMNoqd84oTHWy1VcD6xPGKivc4KnMh6gNYiA?= =?iso-8859-1?Q?F/7loiXh+IxSulVm+DpIoTwTn/7ESgKvw2KjiAouL+clfn9o6WIRdT1xWa?= =?iso-8859-1?Q?Cbv7RHYHlJUcms1DeKoGbjLUCalIZm2nYVRIQie5wSBtis1gJ68rnwq390?= =?iso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mU63IKiwKYGFAhQedRy9L7hIX611kKS2YXCTi2m40?= =?iso-8859-1?Q?F3EtUkXVdu3DUpcOSmZr1W9nQ8FsnSFku01t2K0/KgNmWlbhK8ejtOajPP?= =?iso-8859-1?Q?deKWAbVAEKjN0kmv4Um6pemqbzsnukJKx2FDtGfj6PTTkGcNVCjkBJtb2Z?= =?iso-8859-1?Q?6hYGWK+0XyTc3APpVlcJ0iX5aKHPsrGbDZszAf1N0VFp5l/XZSpibinP4W?= =?iso-8859-1?Q?5u/Fd5ajzP8MTRlZPHgRHCntNfr8N/YCYSoh9zWMw/4UPKlVD9ZZQ=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)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?6fE0JuTzMWYKkcUFgWoLVE4iklGLTGlWxIEnST22IwMrYKaCrDAgk12BsD?= =?iso-8859-1?Q?tV/rpsFljMQ+4kURz1jndcB5icni4qGOejHncXwjcUU0mCloJQh7uErHkZ?= =?iso-8859-1?Q?fTY1pDy5fwWa8ibWBEVsdPpCYwvWLFZlYDsXCBCtvh/mn3Mgkjxp9OKLKY?= =?iso-8859-1?Q?Zmdlp32QZXaiUEhiaPPlB8JBBV+D1ybLrsN2Ezow2Fgz70cRLzuWbT60Ze?= =?iso-8859-1?Q?F4m8Jdf2T4x+o9HFS5TiGlCsMytqaMWibwIOKFTaPMo4e7S5GCiCIaAnBD?= =?iso-8859-1?Q?BooINsIE0LdwfsWDiJelQjKvJDFxWCbinPh6TPVfUhdr+fptejYV2KqJ1n?= =?iso-8859-1?Q?zGlDYoOogViV25X+atVVhW3hO60j1SzWv9PTK1GvBTqJY1dUk/sfkLW5BG?= =?iso-8859-1?Q?JTv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qK6GbxgBIZw8gr?= =?iso-8859-1?Q?WbkH0nxn8Po8kzXFWiwx8gmJlZr3dLn0VjCGiJH9dLoDyFh/I2i/dCXHYb?= =?iso-8859-1?Q?1eQnw0ibe1RmMnR/Oi0NOH7uk9VD8OsvDrjcmoOQ4bRmsDsKWsb7CFfuDE?= =?iso-8859-1?Q?5W3q18kI7eZlVq8tF3fc5RVLDCsaSiyj/+spuzckI+Pq11OpAZcp/8Vy9u?= =?iso-8859-1?Q?4rkXtsrhYrTgmr5w3U9veMOXH4ZJTfwYUMDS++5q7iId3ZMHukTqWo+VN3?= =?iso-8859-1?Q?TbneaNlSsqSXYbpEQ14zdZ3tHEgNVey2QFOOxI24RahbnXs+ETD7DFCwkh?= =?iso-8859-1?Q?Zp97Fs/xh6EgQ=3D?= 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: CH3PR12MB8460.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33e29079-3b14-47b6-068f-08dcf8ee2cc8 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Oct 2024 14:21:41.6448 (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: wxNjjo0XZMoovrXM0KFeaOk5Vkw7v+yTCt3CBFWGS5w6d88INTDLSLF2V3mwONZxLwJlGuyKFjehCQLCirBR3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6195 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: Gregory Etelson =0A= Sent: Sunday, October 27, 2024 7:26 AM=0A= To: dev@dpdk.org=0A= Cc: Gregory Etelson; Maayan Kashani; Raslan Darawsheh; Dariusz Sosnowski; S= lava Ovsiienko; Bing Zhao; Ori Kam; Suanming Mou; Matan Azrad=0A= Subject: [PATCH] net/mlx5: fix raw encap validation=0A= =0A= In SWS, `mlx5_flow_dv_validate_action_raw_encap_decap` is called for=0A= flow action. The action validation checks for both size and data=0A= parameters.=0A= =0A= In HWS, `mlx5_flow_dv_validate_action_raw_encap_decap` is called for=0A= the action template and validates the action mask.=0A= =0A= The patch separates encap validation in=0A= `mlx5_flow_dv_validate_action_raw_encap_decap` for SWS and HWS cases.=0A= =0A= Fixes: cbfa4ed03913 ("net/mlx5: update flow actions validation before templ= ate creation")=0A= Signed-off-by: Gregory Etelson =0A= =0A= Patch applied to next-net-mlx,=0A= =0A= Kindest regards,=0A= Raslan Darawsheh=0A=