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 CBE24A0C4A; Fri, 16 Jul 2021 12:47:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54F634067B; Fri, 16 Jul 2021 12:47:58 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2051.outbound.protection.outlook.com [40.107.243.51]) by mails.dpdk.org (Postfix) with ESMTP id EF58840151 for ; Fri, 16 Jul 2021 12:47:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=leuH9Kdsc1vMSXL2x8ioWMo50AKUWc/Zp9TWW10I74QSv3Q6dWd3qqYPqfJLD5+euuHY4tqj7M4oUqgJmayAT8y2PVyARXHP1IK+HELLsz0W3Papotewq2Du4akTT7xe1n7L8G6oV42bkPRKWeX5LCvvh/FpBFttedQmrZrp1p6n5MSUu0TlAcHrK3eczf5pczGyLCZzRgklV/1CPXlEF3/GcBEsvrSTOA4PZHD3dzbJdZl4/BZtrPCBAq890sCg1Vvx5qG3z2PTvR0x4XDiPifzPYsMG+EltYo6mmB2twvGHDRfWEpKc1OPcQOS6eLQJiPNjtcM0xdrDJRbAR1aOA== 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-SenderADCheck; bh=aR5SQa9UILyCseZXwmcigqhgz/mjIvvu1Dsa6hwm6sI=; b=ddybR3Kwe8R0IlG2TLR6Pxr3SR5qMyLQXqrc9OMtRlkRrKDlnHEB+Io1Sh+KRbYMnyGEloNDdaasC40qm6SbrPP38YWP6Hl4R3hWxPDkmq2OiR05R43+RZWPyJn1/0Cl26X+yLXRJBbhRJscXzoQMPQYmh7qO363Gl95dZ4K7IEBdZHjm6BHsy9Pp292uJIrRciEeC0G2nz1KeJDxbP98XavLUVWaBXZHg9tabBLbzBQC2tC51MDqXirpUZSasIjj0hJZjvp8sK++H9HtdMs2Q9nlQ+igLbnfcp0CCQVUPNNnH53tm3xC9tx7q1XNZjvaeDsq4TaYH/tzW6Ixu1tRg== 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=aR5SQa9UILyCseZXwmcigqhgz/mjIvvu1Dsa6hwm6sI=; b=ZG/HUDOcaeaqLBgxRvw+R6jRGMa6bA7u6X4iX4StGuIKCBDVHOeVQ/WKF2RzOQNU1LbuhER5x2PmJ1zL08OEE2bqe85BBz0ucPljhnHOQttfwjyIdLIDh4VQdMxIGQbLcwYF109zeyFJf7w4cU/+pcoMSSZ3CFo43I3+xQHFfKkuBrmUjTkDoMJ5Gwv92JbVVd3Gwl2Z6VTYUySMKCX+m4jdEmZZrEf6G+AApTpj891GekYQpqmETUPOlR5sGYFJKr1hn0zD64l+N9UHEKs9NWdILXhvypvL83ZiLk8avd+gQpqe3TfvXzqIW2B3e1O0DGWPUlv6UsYojqLHHtn+xQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB5024.namprd12.prod.outlook.com (2603:10b6:5:20a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.26; Fri, 16 Jul 2021 10:47:55 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::2521:f25e:e8db:6e35]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::2521:f25e:e8db:6e35%6]) with mapi id 15.20.4331.022; Fri, 16 Jul 2021 10:47:55 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: Raslan Darawsheh , Matan Azrad Thread-Topic: [PATCH v2] net/mlx5: do not allow copy to mark via modify field Thread-Index: AQHXeh6n3TJHLQXApky8Nun9+Y0gYqtFa5ig Date: Fri, 16 Jul 2021 10:47:55 +0000 Message-ID: References: <20210616183444.2815030-1-akozyrev@nvidia.com> <20210716084305.646731-1-akozyrev@nvidia.com> In-Reply-To: <20210716084305.646731-1-akozyrev@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 32e96404-4ba5-4bb2-605f-08d948472b49 x-ms-traffictypediagnostic: DM6PR12MB5024: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NoXARSVlsemVS0TVvtEpnAcH0vVDUfJKSp7TNVmGjU/olXdHOcI4wMsWY7BmsK2HLc0uFWYCGPsElrCFRZsIo+kWILrTusike/2MyX/q+W/Yj5KPu9X62CHw0Ila58cilmmfVp7QW54UqXvozV6lHMnJECtOGEUDxcIkJ+mmkPPPI1g1MWEuOOXQf6TJHfk4sZmyePqJhldDsSDejJJDDI8XEs7FC4Jm1hV6hSWlx76+CBXSGaDTAWhKFEazvUSxnxeaDC6+2mxz4iOB04o5OMNk1DmV3o6cCugJChLyv1Mp1xpB3JvYsyjp8bpOuYDJmUuzHIAgLEtTzkFJWVQUTFWw3UVWfOtlcvj10cFHuZYEbs5fJzQUJA5hxCDwZuOmv0lOUxCQUni3wRp3QaoJEeJzvbpkdG088cbmdh0ZPRKV08MfheEr3nQ1/Zx3m8l4qsrtPPwM98u/k4ej4vTefnecOQiY7XFw0FO2DzXqr7Z7sEdi0ngJ1MfouR0rGF/2KenzV1+WAVDGz/unY5KRZ5z7wC5ikyOXeB/h+MWBdL8JQ5GuxsLOwqdJv0QoeAybTt1tlKpfVnwuJSwcxe5sSq2Yrogsjne8h/rJcVHgKvnJ3H54HB2MKw5qq3locfjNiBFxnB7Ps1N0qwotr0A+3qJ/i/QY6LfaLV28XcrLekCAbHGglIcAGE+DBbOPZk0BBz/ctfyq9zf+M8Fge+kdQw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(86362001)(8676002)(4326008)(71200400001)(66446008)(5660300002)(7696005)(66556008)(52536014)(66476007)(66946007)(64756008)(76116006)(4744005)(26005)(33656002)(186003)(110136005)(54906003)(2906002)(8936002)(9686003)(478600001)(38100700002)(55236004)(83380400001)(55016002)(122000001)(6506007)(316002)(107886003)(53546011)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yvhT+YXk7N+G54CGhfd4wGDXL7DV8N/tNu7dlfz36Cqtp7Rm1oQWQ2SWJ85P?= =?us-ascii?Q?PB/DPtn6WlcGKOdqSvwh62fvxoiTP8h0yECL+RcAUSTu4lIo2LxvCkYgJafG?= =?us-ascii?Q?/DvIKSobETAKMVRf806hacJ+uQ6UFexbj1UnHPjm6OzaClSlw5LG8TCRQomg?= =?us-ascii?Q?UVjq0lgwp1wejlBfdW9dv8Re+hyE3ouPVltlp+jXWaBB8EeRPGLpxQlqP4uF?= =?us-ascii?Q?DKIf7rKKxaRNZMZXQGz1Ejn8lQyG/cATJMLZ9U4Cv6jSJNfDlCpuUsoHWhBS?= =?us-ascii?Q?/ZxrZX2hgUpHr8PHS/+A5dFxMatkPyxQncEzVxT7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vYhp3q24Xf2lcjcf7SUpvydxGaX3OFO3LthmkTxRFF/Z3o5veWN5YViV?= =?us-ascii?Q?eBLUec+DjytZh4cZCSFXswRY/1JUQC6iJUvlVRzqdEgxu0cMu4w52OXeJQtN?= =?us-ascii?Q?NmRbYlWUdC0bI19mGgRpgf2h?= 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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32e96404-4ba5-4bb2-605f-08d948472b49 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2021 10:47:55.4533 (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: FPjN3SC8pRI9mLhJjI9IMhBNd/sJRAllISr/jbraBEeCGgTa4saM8iE0ri+DQIxY40YcPCmq7/N7h9TgfOd8mQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5024 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: do not allow copy to mark via modify field 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 Sender: "dev" > -----Original Message----- > From: Alexander Kozyrev > Sent: Friday, July 16, 2021 11:43 > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Slava Ovsiienko > Subject: [PATCH v2] net/mlx5: do not allow copy to mark via modify field >=20 > The Mark action is a two-stage process in the Mellanox driver. > First, a hardware register is filled with the required value, then this v= alue is > registered in the software resource table. >=20 > The MODIFY_FIELD action can instruct a Mellanox NIC to copy some value > from an arbitrary packet header field into the hardware register, associa= ted > with the Mark item. But there is no way NIC can modify the software > resource table as well. >=20 > Due to these driver limitations the copying of arbitrary value to the MAR= K can > not be supported and should be rejected in the MODIFY_FIELD action. >=20 Thank you, Alexander > Signed-off-by: Alexander Kozyrev Acked-by: Viacheslav Ovsiienko