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 4E5F3A0555; Wed, 19 Feb 2020 10:13:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4D8181BF78; Wed, 19 Feb 2020 10:13:51 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) by dpdk.org (Postfix) with ESMTP id 2ED81B62; Wed, 19 Feb 2020 10:13:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AxDkn1AbaF8lP8lfWsCEEy3g6OFLPcQdDYVeNTgl9gNhy4Q+76UWtQUCXntBHNEaxlOkg7sBR1JPzX1gNsKzAIQRDts78CL/kkyd7/siH8tJnxrjdnfXPCOHUiWBMA5OSNnXFmW46ANAqxvWhKEXIv9gHIzad5viEwJAD8NzPu/itSJOKnW2RKvsQWwOYtAvqa5pCkC/QcCxkbUcy/VzBxgN1Ho/rsN8k+Vfp9PoQ4dwTf4kXZfULNyOGdvl8arhaKPpiPl+hPVKKzBvCRQpsiRlejYpJZe0kbh34jVlbFwea6u9iBq71Nt+OGQFGpyKiEtK2RYathzB1eyVXzZqfA== 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=rbZ0KJG6Kkd1C8JDe90J/ceaG0F/KOR+2YmkPd+oFj4=; b=Jpm2jZ9sWiGIAPohrJG7+YXbLXqesbya1NG2lqeIKr+3xppJ9t4twqy6ujufe20iFrIR0N12ScUZnI5iSANUCJuR/9pynK/Nc6KLtJAflv+XtY+hOtARPTKKKIoGl81c/E0qiCi/g635ACUhJk65hMGctXaL04ewmHtcV/BPt+S3nLxk9gOeDJ/tkXdjs6ATIhduTgh8lf1HjDZi9vGe2fvUDVDk3qsk3H+3lBcLuvWHZvKMUujxmcXwlAnyGWqC5PelUg3NAIPVlNBaSo0z6GWOuVofDnFjwbgYy0npsio/E4D3LWYaSnDTiaiycK5QrS6rrB8+fZJtxw9Mimjqgg== 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=rbZ0KJG6Kkd1C8JDe90J/ceaG0F/KOR+2YmkPd+oFj4=; b=TOkSxU1DKYto9y/ZNuaKQSzb5bpCHl0cld1XBpgQgVLF+y++BS4BacSbVuXpJpeKHW9VgjErswWLkRBPwqcTcc6K+77qXC8Bwm0DbyIITt3HHm1xSr5sFuItSV5I5HUcCCEgNtvujdMKvYDw2otJmwgsGfmOj0zMqKFYl1Di+RM= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3299.eurprd05.prod.outlook.com (10.170.126.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.25; Wed, 19 Feb 2020 09:13:48 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da5:7919:35c1:894]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da5:7919:35c1:894%6]) with mapi id 15.20.2729.032; Wed, 19 Feb 2020 09:13:48 +0000 From: Slava Ovsiienko To: Matan Azrad , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix L3 vxlan RSS expansion Thread-Index: AQHV5v7FZVjINK/7REyWAN7tQFrDjqgiO4dA Date: Wed, 19 Feb 2020 09:13:48 +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=viacheslavo@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: 57521705-3908-443e-fd99-08d7b51c07a2 x-ms-traffictypediagnostic: AM4PR05MB3299:|AM4PR05MB3299: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(136003)(376002)(39860400002)(366004)(189003)(199004)(52536014)(6506007)(66446008)(4326008)(81156014)(53546011)(8936002)(8676002)(64756008)(66946007)(66556008)(66476007)(33656002)(76116006)(86362001)(2906002)(81166006)(450100002)(478600001)(186003)(55016002)(9686003)(26005)(316002)(71200400001)(5660300002)(7696005)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3299; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: Bj08VNcIM1Gyq9OlIxe5njWxsqg0ULY0LL+/RBVcUONOXD3GyvfIC8EOiqhnp31Gx6aLwqnvNEQWsU1ORQK8lnNLzie3EmdE//nQVDd+QxdwauwvcCZLSj6vofaRTe9Aikaru87tUBUnSO2zJ+TvAnOBcrfcS2AoDmAzTyU0Y/59katRlc+GnQp2nBih4CzwdOWU8+3OmHL5FtJlXgZTXJvr1SmZd7STi4zHE+lgFDvZQ9hPPGmcxPXCFewlWxGa8tQf4JWCtOMjvx18598J/fCN+pRp1lp9uNul1kWdFtimFA2Bsq1Qa2qVyo70wHQqytzyyPcJ16EDqvTROsHlcVIRktNz8qwF5unMVDaUVzJqNYviplxYvy2OWohfqEMNkhufOpsGGIDlgd9S9Gf2BGmG17LJmQ6h6EHc32qzyjZbZVzpPpqVxQBF13B/NT6t x-ms-exchange-antispam-messagedata: LmQKVgT0EWgts6eYLM0ryGWD8Scqsw05GM9+BhVJjkGZ2nUvmIOBisG2UuGnuAfsGTha6lmsE/DWWu/ujC9oXKZWbxVNM8Cupv/WWC8f7YeSimE/mlqZIIxpmZLdJM3gSum5rpRpXoZG2hknRDdBIw== 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: 57521705-3908-443e-fd99-08d7b51c07a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2020 09:13:48.5739 (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: VkmGMB9I5he9Lus5tFnApBIyVdgVPVgPY2nTVA0bT3W/MDwb9OICe3/h7X8Qkx9n28+sr/9ePfAc/w6zle4CK6HLFytlYS+yan/39NyqiWE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3299 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" > -----Original Message----- > From: Matan Azrad > Sent: Wednesday, February 19, 2020 10:30 > To: dev@dpdk.org > Cc: Slava Ovsiienko ; stable@dpdk.org > Subject: [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 th= e > caller which reflects the HW needs. >=20 > The standard vxlan header next protocol is always ethernet while there ar= e > 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 tr= ee > 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 Acked-by: Viacheslav Ovsiienko > --- > 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