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 EC955A0C44 for ; Wed, 12 May 2021 11:36:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8259410E3; Wed, 12 May 2021 11:36:38 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2064.outbound.protection.outlook.com [40.107.93.64]) by mails.dpdk.org (Postfix) with ESMTP id 35F154003E; Wed, 12 May 2021 11:36:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FIi8gWM9KtBWlPfsS/GnPnBEBtrkIA4SNfrIR4G/inIW+SdcyTs8fQutlIWEEfW/u3/a/8g/gAQc9aXMK5EqS/X8/cW+1n8HOwcrToj6S4RpMTfU0mgKMsyfGK7wFbP02OVh+rOFmJHtYbz/nSrF4nyLtvNtjXrJ98b0eFSyKOU/NvJPcpBsOcdJJ9ZTzm4qWaS/UeBreYKtFpF+Dkf3YCIasmTI1kX/szWoLOBRUBq5DOBl3aRtlxE3SYDPVT0I3Tx4vnrGUzYZzMgG/LG3fd5qVlJ1S3SVjxLPzYZDQzuNZoXqs3au+CmN8UQUMQWvFAwzH5EvcDMeq0VxZYRN9w== 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=tYIQn5LgxcYHffhUqJA9FMMXG//NcuHRnt5FYtsDGDQ=; b=QyFgoAZFQIltBMjybsDB4FqpubAzeKate73yE6eWv9n07S5wtjvrn82DCPoN0LRdVXn0Wx+KsvPpxHYytUwqKqZRml+EWrHRJo5tw8jVKHFtteIBG1r2CdpNs/gA5e5SkhJrE45it66QciefjV4lGa497W36UE6AET4YvE+KaL9f6XyiNKwIgYGbtoo2sku2gt35S9Zm5PVqrjPNZb9gC9ugehYtsRrfBY17iqd0rDBmXC1m4ffaykCYTOSdUSjAUqYTmwVEfA9EKm8hGNBWlGV/FEq913Uk97PgGdBX7uLl8ULJkh+yRQrULnso4D+EkPod7jviOCh0725fLN42JA== 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=tYIQn5LgxcYHffhUqJA9FMMXG//NcuHRnt5FYtsDGDQ=; b=OEk0A3+G0KFj994caeSoowntdT1mf9yEK/12gMYxVS+Rx7jqL4r22KnpuPmUi5MOXZpPdgGV1PAdNWvlO67SSw8RkXRQRj0qOuHrdKzG5pzGNtPQdLNPhAvLPv2x7gHc+lhXG3Y1kBnAyIShX3ANtNDg9mMoD9gJSCzNGlJ1Pi0aSqPjayNPKrxWoYJbPGk+EEwivDVxU/LHnXRndAfVaDudyiasoYztMRLCTshukUbN5fXISbfN+PC1ckpDQ4fd+f1hnUnmxOYOsS8ugczVRdaeJkfm+IfsNIR2eFrYcrTlgvWEFLD8FjYpppz+Ih9n3Qek9z67qNKmWb0BTOM3fA== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR12MB1401.namprd12.prod.outlook.com (2603:10b6:3:71::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Wed, 12 May 2021 09:36:35 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::c595:e3bc:686c:16a4]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::c595:e3bc:686c:16a4%5]) with mapi id 15.20.4108.031; Wed, 12 May 2021 09:36:34 +0000 From: Slava Ovsiienko To: "Jiawei(Jonny) Wang" , Matan Azrad , Ori Kam , Jack Min , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: support RSS expansion for NVGRE Thread-Index: AQHXRvwki8CB7rvdckWvOoB9ZkRJ2qrflCdQ Date: Wed, 12 May 2021 09:36:34 +0000 Message-ID: References: <20210512064231.16648-1-jiaweiw@nvidia.com> In-Reply-To: <20210512064231.16648-1-jiaweiw@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-originating-ip: [188.163.75.124] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 251bab65-a808-4812-e97d-08d915296f03 x-ms-traffictypediagnostic: DM5PR12MB1401: 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:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gagyRv+HAqWWyRv9+4BxeOSKhRaRjAfWj0ZXs2svUzOveuWoZ5lbZ5MyOd9GLnbdSLNlQTNZllBWXkOqeeusH89sCAqdvGYyRSuwSqpJsrj9qbmu7NYnPkThBJacwoGfoNeqsUUo0fjBln2O1ghq/Vz/+6pNaEuynPQ7cgoeq8UC4DDitY1SXs+Skr/MI/GRvP4Xoi9GWcFIO9ics8992Czu16MZx3YnWUXbVGWJA0hyXjtOSwwXXqxbk4yEsPiCIOXFO+eimzhWeybewtpWzUpxsI5DpMlOd1wILR4WeuI4EtjiH65SFl7RkM5sXvx0co4ekrMzyJbxeo4vd24FnRdI/yLna1N/G9AshT9yZ4L/Z3ViVfdEnnoBmyy8texn7m9dDY82A0hrWd5xMh4L6nGPJ8xBU1xPFcmuLcw46vgEpjV+JKfm4Jn3s+l8+3B9Kx1WiF4VUOY3R/sq9u6AH7mAmP1swdRfHEmu51N8Pu/9ojC3ILeLK4s5o9/r0OHjqAlCKiIJMoAEF7xdpqq/pvPkRbM61szYtm/D//2KCHLJK+sZi2fW8oSvdbgxXCQs4wIeA5ND6HSQIhKZK3Bhivgpga0w/oeWXpbdl28A7wY= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(396003)(366004)(39860400002)(346002)(76116006)(478600001)(53546011)(26005)(6506007)(33656002)(7696005)(66476007)(83380400001)(66556008)(66946007)(55236004)(66446008)(64756008)(86362001)(316002)(186003)(8676002)(110136005)(54906003)(52536014)(5660300002)(2906002)(38100700002)(9686003)(55016002)(122000001)(71200400001)(8936002)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?TDFI7/wr7N8xSUxCDsRLkGIls0eItf3bFGZNIhjyNfS5jRxS3w28PHyZAcly?= =?us-ascii?Q?YHrpb8yt+EF4/8g7SrcNjMQV5j3tCNi8JZDQEqonDmZtBwuPLeZwUDEbfZmO?= =?us-ascii?Q?gAcEBIOigQi1s3ofR8DyYjcow5r2v7b3mlNJZAFN+vjr+sZ4jWXNiXsoG1CP?= =?us-ascii?Q?igpXEWPmwpizc2aznp7hCnHKHQPwGkKPrMnD8hzfEMLa6v3gMRoEj+hfvI+f?= =?us-ascii?Q?ejOyTFLExxJZI6yC844pPRh+VCZPTWPPCWPmzgFGaRdFgA9llEn91BYJYtCi?= =?us-ascii?Q?xV3RNvektbxDH0TyZ0m8u/e0oRA3HZk5KQFVty4FlkMT+Xk5KeF0j7mDtFLu?= =?us-ascii?Q?DVtFPRzKfUYfMa0oEUUE1JVsocOrS9xjqbufin1PZEkxLJjvkSG9f+X7/us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yfXMSByI8iDu1VSCzlpIvGMi2jiAzx1kxEykbQjJXgJx0BQC?= =?us-ascii?Q?NI4h3SN92yyUzjKVsJsaphm6?= 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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 251bab65-a808-4812-e97d-08d915296f03 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 09:36:34.7696 (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: ogHt3zZ1jXvuaapI64JPtTB7N8pLnhSAADvWqkHAQfr4s8gMPHVYbQHCV6x/G2gIPtpfTjcZQ/XaByRiRGuh4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1401 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: support RSS expansion for NVGRE X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: Jiawei(Jonny) Wang > Sent: Wednesday, May 12, 2021 9:43 > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; Jack Min > ; NBU-Contact-Thomas Monjalon > > Cc: dev@dpdk.org; Raslan Darawsheh ; > stable@dpdk.org > Subject: [PATCH] net/mlx5: support RSS expansion for NVGRE >=20 > Currently RSS expansion only support GRE and GRE KEY. > This patch add RSS expansion for NVGRE item so PMD can expand flow item > correctly. Please, fix typos: support -> supportS add -> addS Also, the "fix" should be in headline. With best regards, Slava >=20 > Fixes: f4b901a46aec ("net/mlx5: add flow GRE item") > Cc: stable@dpdk.org >=20 > Signed-off-by: Jiawei Wang > Acked-by: Xiaoyu Min > --- > drivers/net/mlx5/mlx5_flow.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c > index 32634c9af7..73cc9acbd7 100644 > --- a/drivers/net/mlx5/mlx5_flow.c > +++ b/drivers/net/mlx5/mlx5_flow.c > @@ -407,6 +407,7 @@ enum mlx5_expansion { > MLX5_EXPANSION_VXLAN, > MLX5_EXPANSION_VXLAN_GPE, > MLX5_EXPANSION_GRE, > + MLX5_EXPANSION_NVGRE, > MLX5_EXPANSION_GRE_KEY, > MLX5_EXPANSION_MPLS, > MLX5_EXPANSION_ETH, > @@ -465,6 +466,7 @@ static const struct mlx5_flow_expand_node > mlx5_support_expansion[] =3D { > (MLX5_EXPANSION_OUTER_IPV4_UDP, > MLX5_EXPANSION_OUTER_IPV4_TCP, > MLX5_EXPANSION_GRE, > + MLX5_EXPANSION_NVGRE, > MLX5_EXPANSION_IPV4, > MLX5_EXPANSION_IPV6), > .type =3D RTE_FLOW_ITEM_TYPE_IPV4, > @@ -487,7 +489,8 @@ static const struct mlx5_flow_expand_node > mlx5_support_expansion[] =3D { > MLX5_EXPANSION_OUTER_IPV6_TCP, > MLX5_EXPANSION_IPV4, > MLX5_EXPANSION_IPV6, > - MLX5_EXPANSION_GRE), > + MLX5_EXPANSION_GRE, > + MLX5_EXPANSION_NVGRE), > .type =3D RTE_FLOW_ITEM_TYPE_IPV6, > .rss_types =3D ETH_RSS_IPV6 | ETH_RSS_FRAG_IPV6 | > ETH_RSS_NONFRAG_IPV6_OTHER, > @@ -526,6 +529,10 @@ static const struct mlx5_flow_expand_node > mlx5_support_expansion[] =3D { > .type =3D RTE_FLOW_ITEM_TYPE_GRE_KEY, > .optional =3D 1, > }, > + [MLX5_EXPANSION_NVGRE] =3D { > + .next =3D > MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH), > + .type =3D RTE_FLOW_ITEM_TYPE_NVGRE, > + }, > [MLX5_EXPANSION_MPLS] =3D { > .next =3D > MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_IPV4, > MLX5_EXPANSION_IPV6), > -- > 2.18.1