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 523AAA0548; Wed, 21 Apr 2021 09:49:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36D4B419B7; Wed, 21 Apr 2021 09:49:43 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2055.outbound.protection.outlook.com [40.107.93.55]) by mails.dpdk.org (Postfix) with ESMTP id 2D66C4195D for ; Wed, 21 Apr 2021 09:49:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jBSQjVWBpQIJZ/MZZyClJ+MbIfAJWiQiTo5aDtQFgZMbAwtCcgiglU1u6cj/VfhI6kDhTxsI3mw/QqZh3md+wnxPsbip6tjDtkeDufTzc2OSvJ4I9H++NYCng1Hb5yIf1qiDYVaVFS9cbQ72gZ02wwZTXovvmptC5BjFOhJvdpLfWEQXCyU1azvsdB6nwQAOPQH8qvEL5mX4eyO9uCrUvRXLKswAaulkH9UlegCIHpy5kDMUn23pxXteSf4pki0lN7pKejVlTq82CXWfxQ6uVMZ5iMgrWL5mBDT4i2Sp2PRd2w7f+Spgg04Q0wM5K1Zf1uP+pfRiJwn5Ybu8O18YBQ== 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=MYQtAYXgPXyXjreSuxk0r/tIAyoYW6hmS1ZO4VXLeGA=; b=F+I3XqUkBifBMb+L5q+9835pKwl+PrK3UcvRpu7CBCL+6tvz3+RWQDUp3pe1/8tOoGbDHBdAfa/UhtX8NluyJwtWcuLGDGwyvmkbkTwsexAvUEKPnf9t7W75ZMtJVyBCIRXnnqTIBqkv4zbhr/rrNPUhGu6tOAcQ7shp2ZiOoSW9qFzAC8ALbC3olySpJA7nlTDxhgUNTnWNRkqf9jHqelx5Gb78Tu6RGfNIPFHTOgD1zD8Wc9cLnU5tedPu+Nw9UyOdjGhuY56piibB/gaUIfZMrL53ZZsyGCKeWXup6VyehVQT0ifQgJAAED8ZeVd3v2YnusPNp6OaXVGULvnbJw== 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=MYQtAYXgPXyXjreSuxk0r/tIAyoYW6hmS1ZO4VXLeGA=; b=neeboL58UySqz1eYm2Cd7Hw1TJUEfGbo+08Tqk82mH58dO8Rp+OcrC8F04zcegtElXeZ3AsTbkAE6Li7FvYUhk5ydQRa/h+NUlbTY+Ww9no5qf3yNnwgqtF243g8GfqZb0Y/2R7HsSOnaDpcbk2ADxshJ/oJ3hc5LgfdTaGDqA+ylzZuYWxfUg4EuDKJGmDHlPfXvC0d5MaC6PWzam3LAX1JIut+qfopD2arWube0/7cKoZxFrDx8+9+HDBUP4GrtcMsW8bScwRZSWbSKzZhb6mGmeKI9f54MO8sYCKbIjqjYTxIuJlZhsd/dh0x46c3+eRihihEQTYANRxaRMLRyQ== Received: from MWHPR12MB1472.namprd12.prod.outlook.com (2603:10b6:301:11::19) by MWHPR12MB1917.namprd12.prod.outlook.com (2603:10b6:300:113::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Wed, 21 Apr 2021 07:49:39 +0000 Received: from MWHPR12MB1472.namprd12.prod.outlook.com ([fe80::9ce1:aa3f:9f8d:f692]) by MWHPR12MB1472.namprd12.prod.outlook.com ([fe80::9ce1:aa3f:9f8d:f692%10]) with mapi id 15.20.4042.024; Wed, 21 Apr 2021 07:49:39 +0000 From: Ali Alnubani To: NBU-Contact-Thomas Monjalon , Cristian Dumitrescu , Aaron Conole CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/2] pipeline: autodetect endianness of action args Thread-Index: AQHXLym+aq0Z5K09nE+uPLkjVSohy6q94I+AgADGVRA= Date: Wed, 21 Apr 2021 07:49:39 +0000 Message-ID: References: <20210411232338.4005-1-cristian.dumitrescu@intel.com> <20210411232338.4005-2-cristian.dumitrescu@intel.com> <2003889.D9zfWNbQnx@thomas> In-Reply-To: <2003889.D9zfWNbQnx@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [37.8.35.210] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2cf8bbc7-b3c8-4d5a-743f-08d9049a0471 x-ms-traffictypediagnostic: MWHPR12MB1917: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:1284; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KtcqzYo/+gyk7T3TRjY4dTXSvsgVOTAcEie06ADAikcnnDi3Q+0Xk6LM6IXQKLjZp4jreMJA06uVURO0AmEoglmdUt+UZra+05EFC4vG6UHDzI+iUSqTPBgEwHYZVGiPax4ubQR3wFab+abVwAj4WyDOs448pCHZLMKCIQYO2pk0LMtSAfXNSYz5a0SlbtmRdRZZKoBYBHJ0TezONHukHIwzos6BZd1VNUjmOL9QX80CmKcOK7X2vDg7p3g9M+pzPnWDkoM2hKr+utcGYadAgOAif+40gV5xHcAyu601qSSDjBOkDbCYkXWLaekGwq1p3JQx5bxEcm+SBMA6j9PiQXjgIz6fiqrfGtIyK0BqidZyV8SW+m4d36quCg83Q0NtTTycj+H2XBkGIXX85AwX2DFFRlYzRwAJ9xD2c2EGWxqX08S9AeUTG9VQYv85HQq1wYmBIklXGRRCWgW7Zk5kVnRIvNMuE/hUOu56Ao3uiIywv4uxE5JpBUmwhHM7wv1RrWZrba31uX8aYSpP2KxWuFN9n0CnwM/grLt8w0Eacsw80wNbbjqZvYHohMU1ZzwGDKagPL9mlQNxcBUKLnm9EqHjUFvwOzOH2l9XallYVu7hC/Imz6QrOjCZazuJlapWICMOhFB45hgAMZ6dfJ3bKLwR6DFav+u1aThE5W5ecL9kc3AMgWNpbxdGHSG4EVZs x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR12MB1472.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(39860400002)(366004)(346002)(136003)(8936002)(53546011)(9686003)(8676002)(316002)(6506007)(83380400001)(86362001)(55016002)(52536014)(26005)(186003)(110136005)(38100700002)(7696005)(66946007)(966005)(5660300002)(76116006)(66556008)(66476007)(478600001)(64756008)(33656002)(4326008)(122000001)(2906002)(71200400001)(66446008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?CwPx2QJwbIwkBX7CVq7LanCb7Uy0Q31cPH+krGDZOakJMNJivUqwfW4bduMb?= =?us-ascii?Q?cuEo2ImStfJfhc4BeeOwzvz5KlkjafaCFt9emFXdmgPQJf4h18SSSY0nl1hd?= =?us-ascii?Q?lwHVrdS4+R5+YGj2BvAdAGj914fLXkvNKUpb1YNH51BZ55wrfdHu6pH15+X0?= =?us-ascii?Q?BFEblhiX/l72tcECvCH7o9NgqtAb8OlMOzKrqJIAZ7BEb/7oVubRsMIh+y95?= =?us-ascii?Q?2WtoYwTY9Gxmsgib7eW8g4dq2ykVsndrFdqj2+jCNLmya5+R2rQyLRVhtiLR?= =?us-ascii?Q?jvzD5WbcqNYILXCIf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KJw?= =?us-ascii?Q?kRFpqXzUv0pybn/t6LkaWJJeau75R5BsOB/lyzTqoa82GUFZU70/PfjBCm26?= =?us-ascii?Q?U0F8BYK6uqGjmMknHRwggEASQq4/Fmbb311yNLJcWBTPZyK5cftWaieSHxjc?= =?us-ascii?Q?s3s=3D?= 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: MWHPR12MB1472.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cf8bbc7-b3c8-4d5a-743f-08d9049a0471 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2021 07:49:39.4115 (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: oNbAY3gPe64VHVALBlvz4FG2aQuuseqyWpAXeAekfv7KdNKaXiHD061g4aJbwMZHUkt/10gBfUxpdD9Rs2hYzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1917 Subject: Re: [dpdk-dev] [PATCH 2/2] pipeline: autodetect endianness of action args 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" Hi, > -----Original Message----- > From: dev On Behalf Of Thomas Monjalon > Sent: Tuesday, April 20, 2021 10:58 PM > To: Cristian Dumitrescu > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 2/2] pipeline: autodetect endianness of > action args >=20 > 12/04/2021 01:23, Cristian Dumitrescu: > > Each table entry is made up of match fields and action data, with the > > latter made up of the action ID and the action arguments. The approach > > of having the user specify explicitly the endianness of the action > > arguments is difficult to be picked up by P4 compilers, as the P4 > > compiler is generally unaware about this aspect. > > > > This commit introduces the auto-detection of the endianness of the > > action arguments by examining the endianness of the their destination: > > network byte order (NBO) when they get copied to headers and host byte > > order (HBO) when they get copied to packet meta-data or mailboxes. > > > > The endianness specification of each action argument as part of the > > rule specification, e.g. H(...) and N(...) is removed from the rule > > file and auto-detected based on their destination. The DMA instruction > > scope is made internal, so mov instructions need to be used. The > > pattern of transferring complete headers from table entry action args > > to headers is detected, and the associated set of mov instructions > > plus header validate is internally detected and replaced with the > > internal-only DMA instruction to preserve performance. > > > > Signed-off-by: Cristian Dumitrescu >=20 > Series applied, thanks >=20 >=20 I believe this patchset is causing the build failures in https://bugs.dpdk.= org/show_bug.cgi?id=3D683. Regards, Ali