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 62C30A0555; Wed, 19 Feb 2020 16:12:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 05DE61B951; Wed, 19 Feb 2020 16:12:40 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2058.outbound.protection.outlook.com [40.107.22.58]) by dpdk.org (Postfix) with ESMTP id 8266825B3; Wed, 19 Feb 2020 16:12:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fn/TtoQCfTrkHJOZZrZl4v1El5E0aqqoAWLt1RAHht1kB3dAL+xPjV7ruY3W7vO0lCR8oxtZSk3qdbhphVQ49k/eEYK1N1uEreOTWkF2JdvUOEiD33nVYhopxcMjrFaUPD4SdID4+VDPk31vM+CtLkULn7JaaDybvt226p8nIJvAJVBOrk5158aRHAM/O022kJh09SiXLnERmx5KkN2KnLfdA21oX6No4b3Km1+MCB9pBmQ4L9oPQT/EOyadAwsvocMJQzpBH7YLlH0pWgzuaiYbRz+ittGmWwEfWpbuFv0IjjtT4jw3wVASFET0N+WKW768DdVS6qHuj4+CD2Ie9w== 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=z+ZhzIU1JdRE2hBXNxxOgCMn+aIsyZl5wvuep4EBRVg=; b=dM0dO+/vv+vSshb5J5BN9CD9rdoXmNNbvF4CF9+rnyvA8zW6TafrYfIoAzj4vFxAwm5pqPNVAoHO94G0MbFXj3V6Qa/tXi0C3Fp5r4nidY6Khrw6i0ftp/mQMkePD+J/bwPjMgN72FR9eUXYed6hb1NiSospjpAjejBsMARBmg4qRYn0gb6+cvBJAo213dIHYzjD8O2knr/McLdEJlWPOoOIG3/t2+t6VHnlN56t839w8R9IZZbftOZWoTOeuMt13NPN1tUB69ZRgaxi0CQoqtuIyaU9e3LsPLrkMeDcnZ1y9o9Y3rGtg5urLTwFHG2FYHNh46u2xU0lo8n9ev/SyA== 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=z+ZhzIU1JdRE2hBXNxxOgCMn+aIsyZl5wvuep4EBRVg=; b=TvRFa35HwrR/GJPBrvuUo+wJ1sMtV7liX8CCQDmgufVgy9hGrDSZjhMNdkS3XB9yldBijoEW03Y+EjY6poM634I/wyyC8ofUf4bQRIPzhFHGY98fOLhABXHoXnidq2D6TAIgLEao5vtDNK5gtbJPctc0kX4MyTzh0YoDWexBGsc= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB6308.eurprd05.prod.outlook.com (20.179.32.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Wed, 19 Feb 2020 15:12:37 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::adbd:45ca:54:bba9]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::adbd:45ca:54:bba9%7]) with mapi id 15.20.2750.016; Wed, 19 Feb 2020 15:12:37 +0000 From: Raslan Darawsheh To: Matan Azrad , "dev@dpdk.org" CC: Slava Ovsiienko , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix L3 vxlan RSS expansion Thread-Index: AQHV5v6/j5/nxNM5bEOfDYFahe7K96gin/bA Date: Wed, 19 Feb 2020 15:12:37 +0000 Message-ID: References: <1582100976-18770-1-git-send-email-matan@mellanox.com> In-Reply-To: <1582100976-18770-1-git-send-email-matan@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 5822df70-f73e-40c8-1103-08d7b54e27e2 x-ms-traffictypediagnostic: AM0PR05MB6308:|AM0PR05MB6308: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(366004)(39860400002)(396003)(346002)(199004)(189003)(110136005)(26005)(7696005)(54906003)(8676002)(2906002)(81156014)(81166006)(450100002)(76116006)(9686003)(66946007)(66556008)(66446008)(64756008)(66476007)(55016002)(8936002)(53546011)(6506007)(478600001)(86362001)(186003)(5660300002)(71200400001)(4326008)(316002)(52536014)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR05MB6308; H:AM0PR05MB6707.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ac/EaDpO5C2ZTGPtn9PzGmxhr9EktwoGlRJrhSF2FEZBfy26+/W8EUbPVGfff16mbAcFks2k2g0IseGQwCX2kdv/+7ec2ucXu92Ldm1CrcivCkPlDU0T8ZWDh8x0BA5EBTQfoMVwn6mmXCoLjVt0ODP3W4ZuFHV+CacS9UT9nalgIRqqAkIk4tUPy1qQnzD+1kivYNcHlX50RBT8tGQVKMUyS1AdktsPGvktxKtfUt3oKHeT6oWp5DFIblTnHmqpzX4UJUCjzyBYRQLIccJel0yFShJ11S35cGi+vqw+E2s6L3HUtE2XYFq6worxtqhV6xqvXNx7tV8AkmxYcXaWXHwN7igoyetIRcd1cWWtuxosmQOUxvxM2G7m/aiGj4rDlx0qwdugcxpcLr6V6y1pz8PsR/QvSp0OoLioRGOZEq2vkMHtv0Dj1jyJ1kdi9A6f x-ms-exchange-antispam-messagedata: bYTbxXrleeuarmffDf/ywsu8XpvN7zYg8ZtFMGiE/tgCi4AwpvQOnXX9+penAi9nGPND0OHPSZ1ITgLGkYqZuxH3oc7RaR97R33le0PWzgE+lfgBZw/wAUvRZqWb4OaI9xovPc40qgO5/cZzDPZK2w== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5822df70-f73e-40c8-1103-08d7b54e27e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2020 15:12:37.6113 (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: ouKHAcp9Z66OPH/4OMau6It8oOOrlWdtIJcpBsROxhCTJvoTkSS8iUPcRg+PKuzYc94/PEYFtMlhfpSWev1g/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6308 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix L3 vxlan RSS expansion 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" Hi, > -----Original Message----- > From: dev On Behalf Of Matan Azrad > Sent: Wednesday, February 19, 2020 10:30 AM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix L3 vxlan RSS expansion >=20 > The RSS expansion feature was introduced to split RSS flows according to > the adjustment between the RSS types and the flow items. >=20 > The expansion function gets an item tree for the above adjustment from > the caller which reflects the HW needs. >=20 > The standard vxlan header next protocol is always ethernet while there > are some Mellanox customers who use their own method to allow L3 > headers after the vxlan tunnel header. >=20 > The expansion tree of mlx5 PMD didn't expect to get L3 headers after the > vxlan header what caused a failure in flow creation when inner RSS is > requested on L3 after vxlan flow. >=20 > Add IPV4 and IPV6 as optional headers after vxlan in the RSS expansion > tree to allow L3 tunnel support for vxlan. >=20 > Fixes: f4f06e361516 ("net/mlx5: add flow VXLAN item") > Cc: stable@dpdk.org >=20 > Signed-off-by: Matan Azrad > --- > drivers/net/mlx5/mlx5_flow.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c > index 2548201..6544cc4 100644 > --- a/drivers/net/mlx5/mlx5_flow.c > +++ b/drivers/net/mlx5/mlx5_flow.c > @@ -167,7 +167,9 @@ enum mlx5_expansion { > .rss_types =3D ETH_RSS_NONFRAG_IPV6_TCP, > }, > [MLX5_EXPANSION_VXLAN] =3D { > - .next =3D > RTE_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH), > + .next =3D > RTE_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH, > + MLX5_EXPANSION_IPV4, > + MLX5_EXPANSION_IPV6), > .type =3D RTE_FLOW_ITEM_TYPE_VXLAN, > }, > [MLX5_EXPANSION_VXLAN_GPE] =3D { > -- > 1.8.3.1 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh