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 7CF54A0C51; Tue, 13 Jul 2021 13:40:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 645BB410E6; Tue, 13 Jul 2021 13:40:40 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2075.outbound.protection.outlook.com [40.107.223.75]) by mails.dpdk.org (Postfix) with ESMTP id A38C3410DF for ; Tue, 13 Jul 2021 13:40:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/BLVaZKsm7MLL1ukC05pLOV0i6PEqASAr2+6s3HA2MgTn4mvb3FHzZ3f01J8RIgr2gZcqFxXrsxN3k/cg6XLQ6bsNRO/FdK1MNRNwIH/95wQ+c+gBW1BpfVqfWJ17rGkvvzEPE5g8hFIUHRo4iahzElzl0wxEDp4j26XZY+MN08mRPI2aQn3swn2xKhMsksO1lBGt+71Ht+MpA7siHY7xuAGWUE6Wt6KVorSk6dSVXJiBdai1ws1Vu6PVyaVR+B7OG6s9iJiOZ3NEARCnUqzt59IbUY4ZXJboDnCHZ3W21krwR8TmuDXxRNTdMJr7zmhTzR/XjV7HYNK/gEwko/SA== 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=PYxAY5SOBlVbDEAuUmfArjbGEomuexkGpCm8iKaMd4g=; b=RKZzoxc/t0Zp3UYQU5rrISuffW2PQ31FbYZHDJxQtxT6pAEr/us1+Q5cFNA3ygadIs8+/DkQJzymp0czp3BjPI82qpH5JlFDC+O1Tv53k8Yl3h7EJ5l4/+736LFG5zzuLk2vOJEumYN2mxc+xHBWkkBSWKHhlVXIgWYrz53pcuvb3ZdvhppG21dJr9GMVHL26cbduoGJkFEOzFbY4PTbxi6BMnezRSHZlRghDSU6Sji28aWjmyis7hm2h0r5VYChARHKG8r6ZSULT+lgFTQXISdy/rqaC5jSDED0MKnu3m4RdGsijYlMquThZMajH2KqFkSwmxO7ZIDtbbTfrRRZHQ== 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=PYxAY5SOBlVbDEAuUmfArjbGEomuexkGpCm8iKaMd4g=; b=l//dYh7+9g8lmz5Hnwy66lLEFOpF0WL9Vwdqa1wUUT0cE+V/lav86N7KHh/ZQc29ERylDkog7OOqYRPk2jqfVd+AEyoY/kcst9Q71sU2A1Egt0mBzWDYFXDb3Eq/cyKJCkjT1wnJqqO1NFonjsWnwFb3ZsaWOKIP5vdZ6gta+qMmC7tpY2PX9/5VNj+/A9mt+s781skShhYLiInO1aZAgW9bFK5yl1AlCxbp3QKelDuBOhfoE2Xl6PFyTx986ElbxXgXmtMpCk80AizeW8ZopwOJuV39EhTBgpmZg72lYcpNaWueiBq8sGrhFIzUMZ4DXgFgclgQjx7sXM1toURtxg== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5263.namprd12.prod.outlook.com (2603:10b6:5:39b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20; Tue, 13 Jul 2021 11:40:37 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4308.027; Tue, 13 Jul 2021 11:40:37 +0000 From: Raslan Darawsheh To: Rongwei Liu , 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: AQHXd9TtfOLfX8uQNUezIuSdHTO/VatAx5zw Date: Tue, 13 Jul 2021 11:40:37 +0000 Message-ID: References: <20210713105024.69340-1-rongweil@nvidia.com> <20210713105024.69340-2-rongweil@nvidia.com> In-Reply-To: <20210713105024.69340-2-rongweil@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: 67c180c0-f238-4ce6-c1f5-08d945f308c5 x-ms-traffictypediagnostic: DM4PR12MB5263: 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:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nSOCXpP7xPhpkg+NzneXFtjHMmW5Vp1R2obRPMSnLwu6UdQOSl5/MISazwW65b+0dcNQ8S4GhDzeQNiFtjOd9HWfdxWPnXtJxiJfzNi5WJ9XD9gOOCzrV9b7365mY38ekwxv3B+ii4OP/F7Rrl0SOq+7hl1ZA0VseClDmxtrXquhyhwwNf4GQZZifOk3X5JIg675Tc3kLdpCQs2tiCZxbvwxwah9trEBUd1NnPzBoY4BaLZ87bLFwA84Q40i04QHEKSh2K+vD9wlppGUQFvqV4s+OZrBuf4urKjoku1eP44sswUhVIiXqtXSFAR+8vZLv0cCU16ipMBi3lQmAIvzGxyNgoQKwEqcfP1ripsr5WtWUYzX5AQD03CHEiSBd9jrv3rr9sIx9N3S78M0ayD42Qb8rOQpXUPLIZ6iGyr5DhBFCvZLyrcwrdfGA3taVl3YLtxNljmwHkSU0+p2niraGB/7laCBZG7WotVL/I1aOMsRYGksnfnTivDfytm3gu2+Ezq/sAI8DhYUmtC4p5WbR+4IhTfWIhUkeo1729lGRhIFH/Q6ZXUNZiNX1hAL9Se4ZwvMDKQHJuiFcNFNweP0r7rH5RHnGwCQUK+7ADZguiL+3wcPskiq7epvUflFPfeXUfvZPrrRb9wHwVPziEDZkg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(346002)(39860400002)(366004)(376002)(6636002)(52536014)(4326008)(2906002)(66446008)(66556008)(64756008)(8676002)(66476007)(66946007)(76116006)(83380400001)(71200400001)(5660300002)(86362001)(186003)(8936002)(6506007)(316002)(53546011)(122000001)(110136005)(38100700002)(478600001)(33656002)(55016002)(7696005)(26005)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Qj5iueAkizTB7pxn7ZN0qGSwRAkA+mcfthduBJoYjsKMhsDo2XyZWY53jMZY?= =?us-ascii?Q?/RLnZKRyblzp/InHTneLho7j9LC/APy18G64fwgvPOEXFcT0pk4AeYWr/cr0?= =?us-ascii?Q?dxskqeGV6SczH2GQxkJe+Ao6NZqlDHyi8jXWNITQO7lckUYsKTauXAbjMtcr?= =?us-ascii?Q?uuEjRYoX51qqTDzpep2OkAPZvTAS9P6uGazVnE5qWCJpoi+nMkMQXJU4/kf7?= =?us-ascii?Q?yBxixBR+UQMRYyle3VJ6DQdpH49CcNaZ8nQqj9v+YX6mPOvoqqkh2pDCXCMB?= =?us-ascii?Q?KOenZ3ZN4oyqrYNe7+gx0+1mRI09DqZ2ALvbdMzSAkqFAk/mt6uCqKAPf/Aq?= =?us-ascii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RKATk3AdCM65/5L5O9im5NuEPI3GA?= =?us-ascii?Q?Ubj5FU8OnFCnaJWI9XnqPKJUlkJYXLdLdyf9AuvlsmcI0UK4The8L7+Z3mvn?= =?us-ascii?Q?wFwPe4mdJYKGfMcoFJAUckjU?= 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: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67c180c0-f238-4ce6-c1f5-08d945f308c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2021 11:40:37.5715 (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: yuVtHax63pSSqqouMHo6VtjElXZ3Ms4RbYAwjicv4YQsAAGDefRSD9pSen3gp5JM7qMwGg6c2vlhZkaPCoYK1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5263 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, > -----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 >=20 > 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. >=20 > 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. >=20 > 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(-) >=20 > 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 for= ced > by maximal > inline settings) to 58. >=20 > -- 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. >=20 > - L3 VXLAN and VXLAN-GPE tunnels cannot be supported together with > MPLSoGRE and MPLSoUDP. >=20 > 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. >=20 > +* **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 fiel= d. >=20 I guess this need to be rebased which is what Andrew mentioned in his previ= ous comment, Otherwise, Acked-by: Raslan Darawsheh