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 65282A0547; Sun, 17 Oct 2021 18:17:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34F2940041; Sun, 17 Oct 2021 18:17:08 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2086.outbound.protection.outlook.com [40.107.92.86]) by mails.dpdk.org (Postfix) with ESMTP id 9D04A4003C for ; Sun, 17 Oct 2021 18:17:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bMt2GS65cpgqKzK9XW9e3ctvbQi5ucnp2K0PYcJmfsPPMbJ0QdYPQJe/k+adahBipSoT1BODPB4MeJAiyJNKU6h3BcXkP/KzrHnLt9k+NFeQJ6k5XJ33NSHNBP7gBpes0WVsoH6MHs19vhp/n8j9rVue7WgytpnVBp1ffMOQ9mAM6j/oP2/ysmokkk+SZxNGwDcawJnbVRmY0POUqdL6IuLHdjFF8YtKgh4+LzWci2td8ilaG61kj19XJWWr8Dn2jTE7JNVvbYmlCHk+mrtg6Q8pLPTDekpLODzG5lhqKIQNfJ7hTQ3RYC+Jymn4NBFkD4T9k4a8jufKGq5XmWjnpg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X62ju7tbvYnpcQnX+omU3Quj2OVafmYI4k7FB9OFSJo=; b=CEdU/sNs6zTySZTnGNUDA+J3PyfxQ9qfHF5PuOYN2hzUhXJfgvP3QZkvcXPnmBuuIInhneD8mfE1wTaArF9aDCj9b0rGMb9z+IVNzzquOgzVwYROCs7hzyLfnne9TDk+9XdbuVt3VKRWxHTqV7G+dlWFFzHnOgrSdRmWtDXn9G5BUMJJ/0XKnGSDKSKZZGjeYCbJgiOcLrOfOIXkkoScTgQM7vtqF8OY/fmkXCv+dUCIhU3ZiEk3fpXjpqMvKebx8OlPzDRhDoH/uztgl+6L/CcqXBtGSiExjWZo5qE3mRG+JC1+wl4/QOYfUh4u5yG9pSYNA0c7CSFmP/jtvUVCZg== 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=X62ju7tbvYnpcQnX+omU3Quj2OVafmYI4k7FB9OFSJo=; b=QlMARlx/WO/4Di6phuxuP7B34MibEsFhzcbZ+R95rdBbJKHPnWSmhvCWPQaZ3ZWQ9pfy7MOnPB/3QHKxBNBrgwDK2iaiKn/sqCM0JXsrZUxlsPZwN4BKoVf9JJs8F/ZEgzYF0ylpM7dPjt9MwBjc/BohtBARWSOk8Dlk+mwYR5qgN6vhk+OojBsQoKSHiCoGp7Qedr5PhcaBF2ljlKVPLLgCpjaqQsZLPkYyj66QaOz1eLiV62lJYiRhflR7mZz6FKr+hFis6PDukrv05HijYe9l+izFl5xNlDXwAZEC6mOcv6tNnOpBQzs0X7rpbZNTNB4wju1wnRx+zc79PRp7ow== Received: from DM4PR12MB5312.namprd12.prod.outlook.com (2603:10b6:5:39d::20) by DM8PR12MB5479.namprd12.prod.outlook.com (2603:10b6:8:38::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Sun, 17 Oct 2021 16:17:02 +0000 Received: from DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665]) by DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665%8]) with mapi id 15.20.4608.018; Sun, 17 Oct 2021 16:17:01 +0000 From: Raslan Darawsheh To: Lior Margalit , Matan Azrad CC: Lior Margalit , "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1] net/mlx5: fix RSS expansion for L2/L3 VXLAN Thread-Index: AQHXwMPQLDQV1vNWxU2a2WgmiNAWdavXYzbQ Date: Sun, 17 Oct 2021 16:17:01 +0000 Message-ID: References: <20211014062136.2976961-1-lmargalit@nvidia.com> In-Reply-To: <20211014062136.2976961-1-lmargalit@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: c97f5362-5463-456b-664f-08d991898d70 x-ms-traffictypediagnostic: DM8PR12MB5479: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Q+zWMcgZaMpUjz5rco0CO87f5hByfLHDrhzkvU2SKFFjUzHHgwwr+QLur49G971d90TP9M7Bpv15Btne4JeXepyJUbbhSVqGWi69dSwOebkT31nHSiUNBqWLmazzPalGvuobXUUUUm+zPsXLIzj5VMZVbwAUaeU8G7WuoCMWZDYHC5/SmsS2IAd4FsCMVuwGV4B+zWhhx3wvlMOx8B+4oM64Q2OLfurnavBloTWKwOGgs5HHobgu4+sP6emNHRHyNb98p8qFyUO9zY/N8v8DV0N+sGbtN2YRpAKUmx4fzuKio/lgFYvEsu+ncyvA9lXta/qEPVaAqh6tV9KHkTatulb5ZP+/i7OO6SgXyM9N4xFyK/v8pHsB+TxiNEFzYoTW/VTSH5ubVxHmKNqzU0vBLtFO/BIafhjS3kphhF4qZc5Q+jt96enNrpr8HM2f7gQptBEow9NR/wGk97qkt8XiWDBrYDs3zsjXUT8MaH5mKYYkyvjf5s/9T4RHfJ1ejVFraQlmuc9c6qqChXf2BE1UPx2/d2ubl4wgTJ6Jy98aeQ6+Aq2CK9zpK4ECIpzi1UB1mNQzYtPqm6gEOUcajU8SvVc2aZXwfzq+tJxGNeX0XnehzeN3H/xyKVc2HMlHPh6WwZqFnJln9Ktva3Hr3uxAXMz7qMbCv2/Z3dEqiDoWubZwckpTbwm65YjROuXCSS36dkeBvjkZibjzix1RG2cLdA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5312.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(64756008)(66476007)(8936002)(66556008)(66946007)(66446008)(52536014)(86362001)(38070700005)(54906003)(53546011)(71200400001)(38100700002)(508600001)(5660300002)(6506007)(76116006)(122000001)(33656002)(6636002)(316002)(4326008)(2906002)(450100002)(55016002)(83380400001)(110136005)(9686003)(26005)(8676002)(7696005)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?MbuBYQ3egs0XqTDsrJzW8MckoxKOl7hlU76xgexNVNyaC/Y/HmDNKmC+DuAk?= =?us-ascii?Q?k8dp642KgVIzYxqdnHmi9rqhPsYV7VNZzntszxxAoDMf71UUtWZ281fHbKUW?= =?us-ascii?Q?cB4S/cmqsNLgRGxJlxMjDGzQwLwReJwButyW9uGYrdF4U6oJITDGY37YCKLZ?= =?us-ascii?Q?QonMtiYB1AucQ6zZL/NB/wOF1rdgzMUsonuTPEU9kQ/CrW2B+ThDY2sNZtUa?= =?us-ascii?Q?3yr172OeWnNaNkkt9aWY7on2nW8Qr0ubPf3TVE8xw2gDt2oQhmcowdTRK6Ih?= =?us-asc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euyca+9dPixFKndX?= =?us-ascii?Q?/pT16ejRLQX9iuQDm4lHAVnMOrYrSv6xph19tACb/3Ny6b+BcaImKUfA6oxo?= =?us-ascii?Q?+WRR6Rf65V2+wh1cpdLucHoAyB0EphlgnkA2TZX4hWl2zP7Lizq+FeSo6jEw?= =?us-ascii?Q?goJl2CqUT/Z+p/S8/VOM2C/X?= MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5312.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c97f5362-5463-456b-664f-08d991898d70 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2021 16:17:01.8210 (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: VigfllorNRgYZCLDvtMPTKor4/YuDXJl7OMBvQwd9zB1ighM134LZw8bJLIWdh4son4J5eMqD766FpzNPKsLIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5479 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v1] net/mlx5: fix RSS expansion for L2/L3 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: dev On Behalf Of Lior Margalit > Sent: Thursday, October 14, 2021 9:22 AM > To: Matan Azrad > Cc: Lior Margalit ; dev@dpdk.org; stable@dpdk.org > Subject: [dpdk-dev] [PATCH v1] net/mlx5: fix RSS expansion for L2/L3 VXLA= N >=20 > The RSS expansion algorithm is using a graph to find the possible expansi= on > paths. The current implementation does not differentiate between standard > (L2) VXLAN and L3 VXLAN. As result the flow is expanded with all possible > paths. > For example: > testpmd> flow create... / vxlan / end actions rss level 2 / end > It is currently expanded to the following paths: > ETH IPV4 UDP VXLAN END > ETH IPV4 UDP VXLAN ETH IPV4 END > ETH IPV4 UDP VXLAN ETH IPV6 END > ETH IPV4 UDP VXLAN IPV4 END > ETH IPV4 UDP VXLAN IPV6 END >=20 > The fix is to adjust the expansion according to the outer UDP destination > port. In case flow pattern defines a match on the standard udp port, 4789= , or > does not define a match on the destination port, which also implies setti= ng > the standard one, the expansion for the above example will be: > ETH IPV4 UDP VXLAN END > ETH IPV4 UDP VXLAN ETH IPV4 END > ETH IPV4 UDP VXLAN ETH IPV6 END > Otherwise, the expansion will be: > ETH IPV4 UDP VXLAN END > ETH IPV4 UDP VXLAN IPV4 END > ETH IPV4 UDP VXLAN IPV6 END >=20 > Fixes: f4f06e361516 ("net/mlx5: add flow VXLAN item") > Cc: stable@dpdk.org >=20 > Signed-off-by: Lior Margalit > Acked-by: Matan Azrad Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh