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 AACADA0C51; Tue, 13 Jul 2021 14:11:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C1C8410E8; Tue, 13 Jul 2021 14:11:54 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2057.outbound.protection.outlook.com [40.107.244.57]) by mails.dpdk.org (Postfix) with ESMTP id 14942410E6 for ; Tue, 13 Jul 2021 14:11:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MnGs7803VcI+x7AoD8g+avBXGoMIY+DVnURFb0WRoqmNdmWgQTGUuDcPy/utxq4h+j1BYIk59Grmkmu+7MtNR83wMr0f4fOmCjB5wbIw39Zjl1+ZJ3rFV9ayg1bPZJA92WmLA3oNW7k4EAr3ZWnoB4IGH2W4AVr3pTPw5KRhxVx9lDvnQjhtBBfsMffn+ANvQ+xdEs5VmTO34v4ILLnqarOM3ad0L9F4cjbkPIEiWgIXpyc+wGOAkUS3QiOWcZ3jnkRCQl8JIVWYn3RYuSHU46baCrNJks2Prz2A1ON3CN1UjAZOj2b2epKVXmVBGQWOL9Q4cWbuenoIM4Od39MLvw== 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=Ll/ejMli8BTEBYBS33rQES6pOS21kZCv6yXaQ/JHvVA=; b=cjVUpzTyY6P0CDyNI3m3s0BPZDZfab5stuKKEG71EhesVD/YKfEEGNlHsLWdGrfKEjZTUheGOL5oWKOwFjdmU69MxEYoHDtm9ia3FvkIkgpssqgwXppqUKa0DYrw/k3M9eXUMvPNtYo82Vv+DAiOb1FWfruaDjup5xTvVKWjga5SV2OWbyKDcZsDls6MLb7o+4WXZ2qwhoZtvi+jReJGMOV83GsDK5DmUvcnEZQt9uXtXNRBR2azJ4TisAChI+D4q9T+Pa/ApZ3hUB4UCfzdNysSeGhFw9Ykip5OQl5/MAbaEECcI83pfTiP4Ru844E7AFN/zlU50f+NQ6yoKe2wUQ== 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=Ll/ejMli8BTEBYBS33rQES6pOS21kZCv6yXaQ/JHvVA=; b=ls1bBUEgJVt/H8uvCSkw+gT1/quvsxoBwFv+Aec/2QjlnLoH04XPBTerEXG4s3LIg710kNrioWrn1o1q+svt6C1E114Au/Hx57C7m72Qu2ft8v2TUfvoa/4ZPw3zmHyxI7CJPlkGVAA7BqoDX369SzbGAQEwpY5TQ/A4LGSIBz4ey6ygK6eLHB+8mVdNEKsxcw0jZfmD3B6yGW6/MQC3TJv2tbZWWj6eg74rXfOVVfT7zwH/vtLMogaM35o36RLzuw3qxm6mcrYSAjlR/8+pqRJxx1+AWmvQIOnTMXPmenUxvQg5Ot9MNmKtsMtodXv46k60xUUmbPAY/WLDGvmv+w== Received: from DM6PR12MB5520.namprd12.prod.outlook.com (2603:10b6:5:208::9) by DM6PR12MB5520.namprd12.prod.outlook.com (2603:10b6:5:208::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Tue, 13 Jul 2021 12:11:51 +0000 Received: from DM6PR12MB5520.namprd12.prod.outlook.com ([fe80::81bc:3e01:d9e0:6c52]) by DM6PR12MB5520.namprd12.prod.outlook.com ([fe80::81bc:3e01:d9e0:6c52%9]) with mapi id 15.20.4331.021; Tue, 13 Jul 2021 12:11:51 +0000 From: Rongwei Liu To: Raslan Darawsheh , Matan Azrad , Slava Ovsiienko , Ori Kam , NBU-Contact-Thomas Monjalon , Shahaf Shuler CC: "dev@dpdk.org" Thread-Topic: [PATCH v6 1/2] net/mlx5: support matching on the reserved field of VXLAN Thread-Index: AQHXd9vm9lI8iEnprUmxlUFQSvhGmqtA0DBg Date: Tue, 13 Jul 2021 12:11:51 +0000 Message-ID: References: <20210713105024.69340-1-rongweil@nvidia.com> <20210713105024.69340-2-rongweil@nvidia.com> In-Reply-To: Accept-Language: zh-CN, 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: 7f60d0c3-92c9-4e73-6004-08d945f765db x-ms-traffictypediagnostic: DM6PR12MB5520: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: EYiGCSHQQnrNT1ad8BJMqZwIZAybDO7U02nDokNtCuitvUCYHYOMdH+pwoqTvuREqzpU5nrxhkEgEAml8m+2291LKB3MsDoO9M3V11vWL8SxH2kPXevlLEcc+iw3cvMaVmfaDSmwpyjMqZbBkBd+AqNihY260GgGC3rrPobFDeJKl2E1kwZnF07fXTSHhi7+GZ71dWtkKPGeLlQXWE313HyafDgI5ifqlc2vNoAPK70p9g2CaKQAkETCKEC5IYG02Lf0jto/E31AQacB+en38YZar/rN42LEcgDLjrNR+OtJgzvTfF79SDkGdDGlRycqpYzwGcKkuCZYlk9iFHcpyCEgUPb4Z6PRoRkKw2Gm17skVJf2OtiQn4JjAhY4lEnIgumG8x47oqtu0enGWa4r4b8Ys5YuLEVwsil6c38edfnpnIJqNQiYgziN0O9bEFm+NJN+2gD9BNB8Tb69VWPz3L5R5ztWMZvPnLoOi/q0Jvb4slXI1AmwxdWAjpwfVM0yeI9711zCLgq4AmFF1Aa70AiO4E0quRd93eIyd9CqZIHIGUXDYaW9LwBv9mAzQGgxhPG7IeFQPA++boHkOLiuQW5oB2STOuGDOXlFZFSZc1OaE+D9mHmfK8C0txk6WVFoY5dku8gKMMdaw4FAHURlRg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB5520.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(366004)(376002)(346002)(136003)(53546011)(71200400001)(6506007)(2906002)(86362001)(478600001)(55016002)(66946007)(66446008)(7696005)(8676002)(66556008)(6636002)(122000001)(316002)(33656002)(26005)(5660300002)(8936002)(66476007)(83380400001)(4326008)(38100700002)(110136005)(76116006)(64756008)(186003)(52536014)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LD5H2WDz7KWlsuUZ8J8uhxgx/WhFvR9/HnCJnWni59pGu41J7Uzy33FXtChY?= =?us-ascii?Q?DoTcK/WkwBToROaP5vH9CHd8luXzjTRiifM7AkktA5UN/l8ujKncbhxN1obY?= =?us-ascii?Q?NGhu+jEg5Z+3SmdHA1PA5+AhvUYDugY/lL+nIy8Po/NEgSnhMMmvsBTzO1Mf?= =?us-ascii?Q?gk8VuLKn8ifm5pQXW3FXjCvNq/gYur809CvcPqGyMjCyqZeBYzOT8YVKalhV?= =?us-ascii?Q?ekHSWzkI4sYMYjGxkVnPaR0igbpfFo1IVkl3HggkdA4KLRPwEPmCw/9tIsOH?= =?us-ascii?Q?7zlrxKu2kTRIN9RaPvkpgDyY2RcfzhbSih5YaTByg4QX3kB5WWVLmHo3fEd7?= =?us-ascii?Q?GzUU1BZhfdl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M68I5wRlbePt/VYTKsG?= =?us-ascii?Q?+yriGuRD6E8EFMncp+I/3JC9sOwwfoH4yJ6DzE4lEBVnsdEjzoea7kRuw2YF?= =?us-ascii?Q?Yo7MWh3O9WmhXcB6lck5+dkA?= 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: DM6PR12MB5520.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f60d0c3-92c9-4e73-6004-08d945f765db X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2021 12:11:51.6565 (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: 2jW+9+bnlVhLfnod2bwldbwaloG6CA010NNfAkb542Rul7EuS3caV1W6JT9P+H6znjC0Q+8bXJHSRcRN8cQ8hQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5520 Subject: Re: [dpdk-dev] [PATCH v6 1/2] net/mlx5: support matching on the reserved field of VXLAN 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 Raslan: V7 was sent: 1. app/testpmd title changed per your comments. 2. UNSIGNED to newest COMMON_UNSIGNED to fix compilation error. Thanks BR Rongwei > -----Original Message----- > From: Raslan Darawsheh > Sent: Tuesday, July 13, 2021 7:41 PM > To: Rongwei Liu ; Matan Azrad ; > Slava Ovsiienko ; Ori Kam ; > NBU-Contact-Thomas Monjalon ; Shahaf Shuler > > Cc: dev@dpdk.org > Subject: RE: [PATCH v6 1/2] net/mlx5: support matching on the reserved fi= eld > of VXLAN >=20 > Hi, >=20 > > -----Original Message----- > > From: Rongwei Liu > > Sent: Tuesday, July 13, 2021 1:50 PM > > To: Matan Azrad ; Slava Ovsiienko > > ; Ori Kam ; NBU-Contact- > > Thomas Monjalon ; Shahaf Shuler > > > > Cc: dev@dpdk.org; Raslan Darawsheh > > Subject: [PATCH v6 1/2] net/mlx5: support matching on the reserved > > field of VXLAN > > > > This adds matching on the reserved field of VXLAN header (the last > > 8-bits). The capability from rdma-core is detected by creating a dummy > > matcher using misc5 when the device is probed. > > > > For non-zero groups and FDB domain, the capability is detected from > > rdma-core, meanwhile for NIC domain group zero it's relying on the > > HCA_CAP from FW. > > > > Signed-off-by: Rongwei Liu > > Acked-by: Viacheslav Ovsiienko > > --- > > doc/guides/nics/mlx5.rst | 11 +- > > doc/guides/rel_notes/release_21_08.rst | 6 + > > drivers/common/mlx5/mlx5_devx_cmds.c | 3 + > > drivers/common/mlx5/mlx5_devx_cmds.h | 6 + > > drivers/common/mlx5/mlx5_prm.h | 41 +++++-- > > drivers/net/mlx5/linux/mlx5_os.c | 77 ++++++++++++ > > drivers/net/mlx5/mlx5.h | 2 + > > drivers/net/mlx5/mlx5_flow.c | 26 +++- > > drivers/net/mlx5/mlx5_flow.h | 4 +- > > drivers/net/mlx5/mlx5_flow_dv.c | 160 +++++++++++++++++-------- > > drivers/net/mlx5/mlx5_flow_verbs.c | 3 +- > > drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 6 +- > > 12 files changed, 280 insertions(+), 65 deletions(-) > > > > diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index > > 8253b96e92..5842991d5d 100644 > > --- a/doc/guides/nics/mlx5.rst > > +++ b/doc/guides/nics/mlx5.rst > > @@ -195,8 +195,15 @@ Limitations > > size and ``txq_inline_min`` settings and may be from 2 (worst case > > forced by maximal > > inline settings) to 58. > > > > -- Flows with a VXLAN Network Identifier equal (or ends to be equal) > > - to 0 are not supported. > > +- Match on VXLAN supports the following fields only: > > + > > + - VNI > > + - Last reserved 8-bits > > + > > + Last reserved 8-bits matching is only supported When using DV flow > > + engine (``dv_flow_en`` =3D 1). > > + Group zero's behavior may differ which depends on FW. > > + Matching value equals 0 (value & mask) is not supported. > > > > - L3 VXLAN and VXLAN-GPE tunnels cannot be supported together with > > MPLSoGRE and MPLSoUDP. > > > > diff --git a/doc/guides/rel_notes/release_21_08.rst > > b/doc/guides/rel_notes/release_21_08.rst > > index 6a902ef9ac..3fb17bbf77 100644 > > --- a/doc/guides/rel_notes/release_21_08.rst > > +++ b/doc/guides/rel_notes/release_21_08.rst > > @@ -117,6 +117,11 @@ New Features > > The experimental PMD power management API now supports managing > > multiple Ethernet Rx queues per lcore. > > > > +* **Updated Mellanox mlx5 driver.** > > + > > + Updated the Mellanox mlx5 driver with new features and > > + improvements, > > including: > > + > > + * Added support for matching on vxlan header last 8-bits reserved fi= eld. > > > I guess this need to be rebased which is what Andrew mentioned in his > previous comment, Otherwise, > Acked-by: Raslan Darawsheh