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 47CB0A0546; Thu, 16 Jul 2020 17:05:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 238621BF9E; Thu, 16 Jul 2020 17:05:22 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10046.outbound.protection.outlook.com [40.107.1.46]) by dpdk.org (Postfix) with ESMTP id 723AE1BEB4 for ; Thu, 16 Jul 2020 17:05:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qp3ChDGvJ5ODmr08k2eIVfcl0B66FCa7iDImcv+0RvprhXZcMy17w1viMErAaHSoTbShXUYwzqFfJa23ZyBzDtAB3xNRixkPrI7w8ZdO1XoDE+G08wtDAgfNPsAe3dK5H1jw5CD9o39t3D26q3/+epnrexVO0HWaOIx30ILE1fJ7qAsm+dVAp9s19Y2vNBX4+pvc4JnNw14IduUiUAMg+SY18YK4xU5JyigEYPa0neTJ1FZsmExGMjxgbFN2/+dId+hiPDx63LkX1XFy1NL0qZzQ6XQ9Nn370cm0tXVkUwHChqK4SSpQwY6nxKPv2I7P7a9KTiezVi0xlpA9/10pQw== 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=l0DohkxsR+nUoF3+CCcjU9wK+bxKp0myIxFIywkDQQs=; b=ie0gj1cq6PmnG2Zpr9hCCMiaHE6SeEdbDCHzzCeBgO0KoQZtCCegnQueHsIhblxBsx8E4pmJTu78VyY5MFGkBnNonVA/QY5YbSMQsmuWU/4p1sO/2ONe2REOvPGftYeQlJOaZCiHSYLQbENQTGvd7WExhrUb90JDx2Dwg/EXYuXX7es9Gd3GxE5+FoSBy1DrGAEsG9EmqXQy7IAKGgD2FSYprfvl5sq+JW6v47MQscaiekhqnc+EF1z1FqTQ3MhO76ib6bcNgyZVwx6TTkV3akLTbsN9o058b9Pq1Djd3LRgZri4OjS5kTD0yyUf4GyIqZnZByvPcGX/AaslNxcUqg== 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=l0DohkxsR+nUoF3+CCcjU9wK+bxKp0myIxFIywkDQQs=; b=ZDuek2ekn7CA9QvSSRfpLzsFG86eD/azBYyz7CdoYYLsyuV33RJtJ7ePQtoNmvS2nYG5SbbiBF2O5zqdw9913r46R3W4jPBaYb8xiTw9khqxKBTpmS2GQLQEJTFDek4zjRPzWYXxGRWnspYP9uGS1TqBjpOFDnD3kuKw2rUTz3U= 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:05:20 +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:05:20 +0000 From: Slava Ovsiienko To: Bing Zhao , Ori Kam CC: Raslan Darawsheh , Matan Azrad , "dev@dpdk.org" , Netanel Gonen Thread-Topic: [PATCH v3 5/7] net/mlx5: create and destroy eCPRI flex parser Thread-Index: AQHWW3zKwb1rIim2/06yiwI7tN6OTakKTgGg Date: Thu, 16 Jul 2020 15:05:20 +0000 Message-ID: References: <1594907399-63329-1-git-send-email-bingz@mellanox.com> <1594909426-64843-1-git-send-email-bingz@mellanox.com> <1594909426-64843-6-git-send-email-bingz@mellanox.com> In-Reply-To: <1594909426-64843-6-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: 0d017683-7985-48eb-ded1-08d82999a891 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:4303; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C/UlqolZruZ7UAtz/Ntkal4nsHT5HMgK8MCHlIIRkoxM3/52kQRfH0Vkky9wRtDUa9sTzza+lzq868kmATJ4lXnaN21z6QuHm8Yv2jPaKA5NU3VpqK+/CVL2V4cEeBlfnZAIBXY9Rl1+ZtntqFDlLMQkC85o2oE7PfSpDldo5RVi8ZPC2/ehFtEGRtNm0b+AztjdjV7XGkECtEHKkx980Ou46cJv31rli8TUcFHHn9+ftC7ycbDwTH8d2LjsYu77DzwuFiKVJ6/YbV7ghZzeIPysHub5DrbnlyEdDW2SOsZmwTILCh2II4kUGCUOxYHxsYiKI9oTA/lfwRsZ7dRqBg== 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: KRtm3kF+eaFJVixCL1YNkeCvQUvIbKjUabYESaDGjG3zs/4+TqNpQljmnK3Pb4dOPZOG6u5XTKzK/tEFmQna9xH0b+QHqfXy2nzR8F6vHGBRyRvT5kKuqL2vzp14o1nyq0kVKEv2ESzR+7fkLpxRnxICmnzcMMsOnmkdnlAIvoAre1tp5JEsjqJJMM3stAB8usIY4VBBFhnn9Nk/rz+qr18P7iZPh6kfgz2MteMnVL6T/KnKidUQmdArlzu+wFg+87OsUCB1rEjKVs2Xr8RgqUHvpYTcz4N2DQE00ogK4PNeNJ2zKztrB4gpjRFKmKDJOS/MujtjIFZLjSr7wpdie4gWRi1g2P84GUHuCHLkWOTEv3g2UJLhWC7au747CIEWJUee837W8wRtCql7ZKbfZL3RFcIr2qG9lxm9EOLz+iUa3MZ9ufikLITyfRX/4cuBvIAX9xty42tAwGsgPE+ze/969wqHLLXEpGIehWqQp78= 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: 0d017683-7985-48eb-ded1-08d82999a891 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2020 15:05:20.6163 (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: q8iNJ+aqD1BxFQLt9hz8XZkkXeTs9KZoqedLXVqGblgjLzQgLAHRt5+XQvK+JQIq9Llg6r0kX3LWqTUQsHxr5jjoiQ1psVDaQ3sGNsOGDxY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6737 Subject: Re: [dpdk-dev] [PATCH v3 5/7] net/mlx5: create and destroy eCPRI flex parser 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 5/7] net/mlx5: create and destroy eCPRI flex parser >=20 > eCPRI protocol has unified format layout for the variants, over ETH layer > (including .1Q) and UDP layer. >=20 > The common header of the message has 4 bytes fixed length, and the > message payload layers are different based on the type field. Now only ty= pe > #0, #2 and #5 will be supported, and 2 bytes are needed. >=20 > When creating the flex parser, the header will be extended to 8 bytes and= 2 > DW samples are needed. The 1st DW starts from offset 0 and will be used f= or > the type field of the common header. The 2nd DW starts from offset 4 and > will be used for the physical channel ID, real-time control ID or measure= ment > ID fields. >=20 > The parser will be created once a flow with eCPRI item is observed for th= e > first time. After creating, it will remain in the system and HW until the= device > is stopped. Right now, there is no need to destroy the eCPRI flex parser = after > the last flow with eCPRI item is destroyed. This is to get rid of the alt= ernate > states of creating and destroying eCPRI flex parser with a single eCPRI f= low. >=20 > Signed-off-by: Bing Zhao Acked-by: Viacheslav Ovsiienko