From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F04DEA0546; Thu, 16 Jul 2020 17:04:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D3C8B1BFB3; Thu, 16 Jul 2020 17:04:34 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10059.outbound.protection.outlook.com [40.107.1.59]) by dpdk.org (Postfix) with ESMTP id C92AA1BFA6 for ; Thu, 16 Jul 2020 17:04:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lqE7/jtGlMJMJMKUxGAhed+pWCS4sSqs4TrhqmLhr8lbWw9OWaHXbaB3a5uw1xGWFWNNQL7jT44Pwc/E/QKTpkFJJQdLbdwhrgxMvUjJBEAqaryTPHFPBICIKt6ZaNvXNbRys3/jw2IvM5g3pZybMONlbwD6xL8E9jcEBa31PyyTul01b7EcBVdQkMIib+CJqfpuPHYtIzjjZVoEHeQ6WV51G2jLcs6IeYcKgBkYq4Zcip3D2V5qhXw2uwIrPVvG8OrSObSDlG0oq4FKAZ08JQ9EpVeFJX7r1ioJgtg4by5AiY8blq1UofVoBgW6fmjUN7rzxobnqCIzIVS6OxTvJw== 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=oah4yZuqLF75Px3nOwkYs7ik+il5/NDDTrbtkgkTzro=; b=QbKwzOxVJ6yYQ15EGHv5pWwxBhJowg1CqEf/d7VmQmM/X7RPzbdQTF/M8F24p/4iE8r4wRSMYXoZ0aUv6boa1A0h7JO7znyAvXsfnU5ZpELihG6rFW1QFtOVNd/x8oCk11EzTS35zHzclYbYXzUJsx8aNBotNPXroSEvdgNMElVIyJuc6Govs7NY9SDAvG5HVqufqxaJ9NiVYi1p7i3oEwPx0AtgUyjrCRG5xtv79oUae773h9xNxLFVuYSgAen/oKTg0KQmI0Pm/ijkZsSO6aKbxsvnu/p1oMgg+RLL2gCEfEcBjBJJBS/XMzI80+f7W2+BoSnmQRYtZi/Wp/A7rQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oah4yZuqLF75Px3nOwkYs7ik+il5/NDDTrbtkgkTzro=; b=TXE5JkhbV7X0EzMQD8/g8R8Vrv14qEPO51dp6bjfCDBljjzezGKqaxHbiifkvEH31KxZLZUoOKW+C8AAvvQli3DZL+ZZQaIvIe2eh3ZMj3bTXsqCEzYNVBraL8IbQAuOlQVbP/RMidjeeu/vsCkHInH6pD6Kl667NQZ4+aPPnXY= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:8::26) by AM0PR05MB6737.eurprd05.prod.outlook.com (2603:10a6:20b:159::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Thu, 16 Jul 2020 15:04:32 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed%2]) with mapi id 15.20.3195.018; Thu, 16 Jul 2020 15:04:32 +0000 From: Slava Ovsiienko To: Bing Zhao , Ori Kam CC: Raslan Darawsheh , Matan Azrad , "dev@dpdk.org" , Netanel Gonen Thread-Topic: [PATCH v3 2/7] net/mlx5: add flow translation of eCPRI header Thread-Index: AQHWW3zHU7z3XuqSckW54Fq/M2fxx6kKTcrw Date: Thu, 16 Jul 2020 15:04:32 +0000 Message-ID: References: <1594907399-63329-1-git-send-email-bingz@mellanox.com> <1594909426-64843-1-git-send-email-bingz@mellanox.com> <1594909426-64843-3-git-send-email-bingz@mellanox.com> In-Reply-To: <1594909426-64843-3-git-send-email-bingz@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e8106452-6a63-4559-cd2e-08d829998c01 x-ms-traffictypediagnostic: AM0PR05MB6737: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OI2VYwutLfZQ0QFpKXI2Xy8GirQjaYD+xSzK2hyGJchgc13qD7jgHx3j48vm6rQkeEpO+rrTLkFMFn01PmGnr/8MeOqHCUbhKVDkaNbhNXVhqVqXhY+4qc79qEqwVO6v4vUZB3tnxMuNyREfSkcEGj/xEXh8VjG8OY6Nw6MBJKsZClgHc72RYLlixCLOezC2Zmjd1wmLtLqMc6oYevPwGMSB4AlAU5EYMCbvp2IlcLBc/PSgoyWnm6MdhyYujf3ELEiSweoJm/3V1b8P0EN7gc+ozkxgiI3uGZgQwXT1eEPXXgdzsRHH281xYIoQYKKH x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR05MB3265.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(346002)(366004)(376002)(39860400002)(396003)(54906003)(9686003)(52536014)(71200400001)(110136005)(33656002)(4326008)(53546011)(2906002)(316002)(83380400001)(66946007)(6636002)(7696005)(55016002)(26005)(107886003)(478600001)(86362001)(76116006)(186003)(8936002)(8676002)(6506007)(66556008)(66476007)(5660300002)(64756008)(66446008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: EoxlrX7S251rKDQRAzy6nfZ4xv8B1HqwLZy+ru2SUlDPeyLTEzFn+vdfRC2nR5wFuPYmnFBby4RoHWfCWm1k0plNc7cPnPnNFb3X9e0Y2+tXF2/h9lE3PGjUcp3VwNXySSzZswHCDcgo6PqHYwMRdTvbJs1sBeXlpl7fn+68xBE3Mp1al22+VreqL2jIK+Pf1WpR7gOKgyM9n8wtb1nytzJ5a6D7WBHN4afbkyax5aaJeiIiX9hDa0nZQY0k0PIFFRm5o9n65TbOUK12tNHaBQ40HiQlitjkrrANphoPZQkImhqZBChNkVHeS/3POZAURGldo+l/XHhM9Hl9ChMmWPs9VO7jMKTcedm9U/umf+aQdcS8N8Kg7RSPCYIaJP82p14Fu1SbUTcGExwXR5pTRm7EyhlYz6YGl1GK+UiYRxSLEbZRQ/kMTFw1f8vbryp/oaV8QCT6iYNxp88mwiuNtT//ALxrUUnPtEWUsrVUdb8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM4PR05MB3265.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8106452-6a63-4559-cd2e-08d829998c01 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2020 15:04:32.6739 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jN0aCbaswOuMivg5GdTXdCGLjLf1N3xToj1TYsA3Tx6hLX192RuZWkdiUKQ5zPHoqBAOdGlZVfU7FrX96i00xs30Tw7iK1bD4jzUxMIHeks= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6737 Subject: Re: [dpdk-dev] [PATCH v3 2/7] net/mlx5: add flow translation of eCPRI header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Bing Zhao > Sent: Thursday, July 16, 2020 17:24 > To: Ori Kam ; Slava Ovsiienko > > Cc: Raslan Darawsheh ; Matan Azrad > ; dev@dpdk.org; Netanel Gonen > > Subject: [PATCH v3 2/7] net/mlx5: add flow translation of eCPRI header >=20 > In the translation stage, the eCPRI item should be translated into the fo= rmat > that lower layer driver could use. All the fields that need to match must= be in > network byte order after translation, as well as the mask. Since the head= er in > the item belongs to the network layers stack, and the input parameter of = the > header is considered to be in big-endian format already. >=20 > Base on the definition in the PRM, the DW samples will be used for matchi= ng > in the FTE/STE. Now, the type field and only the PC ID, RTC ID, and DLY M= SR > ID of the payload will be supported. The masks should be 00 ff 00 00 ff f= f(00) > 00 00 in the network order. Two DWs are needed to support such matching. > The mask fields could be zeros to support some wildcard rules. But it mak= es > no sense to support the rule matching only on the payload but without > matching type field. >=20 > The DW samples should be stored after the flex parser creation for eCPRI. > There is no need to query the sample IDs each time when creating a flow r= ule > with eCPRI item. It will not introduce insertion rate degradation signifi= cantly. >=20 > Signed-off-by: Bing Zhao Acked-by: Viacheslav Ovsiienko