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 F12C5A00BE; Sun, 15 May 2022 09:40:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 891264068F; Sun, 15 May 2022 09:40:21 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2063.outbound.protection.outlook.com [40.107.100.63]) by mails.dpdk.org (Postfix) with ESMTP id 4410040683 for ; Sun, 15 May 2022 09:40:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ElZoors90+Gv+OJniRq91thnW49Di+egy/s1E2eU9k+Bn5+Z/ix2WN/NkgugsPbV/z0jGSUgag76YHXv8wp4iU4+/1Swy0BT28uFFrecVb6hGMEBpMYMQ4oiMpzv6B3MtbVnRwQiFShKnnHpdBc2qW3b3vT/wR8PKHrZhd7RMB6UUTLcixLzRJWgMle2a+/rqJCTDLecTQ9F5t9QkF3lxqx81Tzhq7ZGkxonEfd5Qg6dtSpAEU+RMcOd2OrjWF26LT8ez9qfVVbdArQtBusg+RcpLlJrbhuip4mk9rJawo5NuC4o3pH/hhdN5iObiJnymfsvxM9O2jYxtDaBS/k4yQ== 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=fJ/KVNtSFFxLdpHUmuYpP5JFV+UIM2pcZljJ6zhfC7A=; b=gV1fo276gPpaMJEdHPM00pmeZd+OiuiVPYzukObquJj9XvdBoIS5AKYaqtbFl8Eib3SOcRizdqSAVNI3293kQZBkBGiMv6mGwLNxW9V5PqgWrswqD3kv55fhfU9ih9HS44X+I/qfPWHgUKZuHtZt880bE5St+/99udj+4th75jq/lvGa8JRs2s+oLfXTxMT9EjldTxzmd1zGIo7LfGTWV/d2j54uj/1q4DbvfNol1zSZxbo6ORumMgXc3qj0vPeJqk6kWTNlQ6Gq8UyqDIr0kjy+0cEUNZiKBk7LOTsO+LsPP8C8C89pSipVdubFiws6Kx6zVS4TE3Q7aaop5dOU5A== 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=fJ/KVNtSFFxLdpHUmuYpP5JFV+UIM2pcZljJ6zhfC7A=; b=QagHum+JLFp+D83hDZWQ5bkLo/MIYCf8Pr7ZLX4any8oXbFrMB5t9cQldBr2NkAg1Tms70m0nfnnklZJvAu9T8Ymv9exETT+ZKO+jAUDzZ6oz5SDsf0wJaB+Tvu6l7OYptDAdQXWLWM75do3dvXjYMmXDnntbkpbkDEqca61DUNQY1GRGpqdU75s1x+yfdS9JwCPxApKcfAwnK/ZVc7/39coxF7ngQ4XnAm8q3yXqosPN9iNVdMyy0NcS5F9W9oogXLa8kBRsIBt+N1ektEYnMI5FkeambQVBCKlRgnEcn/P2pL6tSBfx1z+9yUOpUoSchOEXc0TUPjaxtjv37fBbA== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by CH2PR12MB3799.namprd12.prod.outlook.com (2603:10b6:610:21::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.17; Sun, 15 May 2022 07:40:18 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::10e3:9c31:2a8c:2679]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::10e3:9c31:2a8c:2679%4]) with mapi id 15.20.5186.030; Sun, 15 May 2022 07:40:18 +0000 From: Raslan Darawsheh To: Raja Zidane , "dev@dpdk.org" CC: Matan Azrad Subject: RE: [PATCH V5] net/mlx5: support ESP SPI match and RSS hash Thread-Topic: [PATCH V5] net/mlx5: support ESP SPI match and RSS hash Thread-Index: AQHYZeEkIWOVaHuuSEy4ISpNJJEAga0fkipQ Date: Sun, 15 May 2022 07:40:18 +0000 Message-ID: References: <20220428154328.8155-1-rzidane@nvidia.com> <20220512091711.16894-1-rzidane@nvidia.com> In-Reply-To: <20220512091711.16894-1-rzidane@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8c5329de-6ca5-4f19-25b3-08da3646289c x-ms-traffictypediagnostic: CH2PR12MB3799:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wsCVf/tjjD0xKrFd/cmJ5WaU/RTzSABv+n2Zq73oe0kFt1M+QcDHrTFlaDR1/b7vchufAltt2TZCb+MwFft5lhB+7MCDy3McU/nXHFUbKkh/JwiOTNu2H+HBDpksQEbmN5B83ZWe3n/ID842/8p9J6XMPsDPHNPjEg2aSUpvH/fIlI1ZjQaxk38loyYJxopKBht7vt4GAdOqbehdPy9WYZztH/hHWIE5jHJ77MM7qfas1UN54sYhLuik7E4jli0KjQlxKz9GJDtD2aIRD0AtRJIah05z8ZtZoxV4aLek+E14yBBkKhk/VCERTFJ9/nZbd/nys4m/KzkBHtqbKWj2hjYunQAGU09n4+k/PuKL4QhoGzY7ngpnan9Ge3ck5xk31PQ6MjUmc4Q3MpQkKGwbBhIasBzbmwbeURN9J+rhxP/Spd8rWQ1Ut/cdPDx7RpuD+YhV9LzM0IsUM8WYrGeld3Bme2zRlaIZesWbzA/lrcVvplV8yZYhVMSwZ2P7Eh2yRNXp/2Ue2nJ24Pl0on8okj3IOcyMA5nft75bhpaaNoLWBMSOdWOzKdLEFk4kkQsD8S0E8/zhyntN5SqVk/Aoux4NZAtmMNr0eBEa0d7C0e92VIrTDlt9Hx1E4+pw/D3f9/J9iRoTvJRIczu5XfPk9iAbyQ4E1eMM5fzQ+WJyZPbcUoomj8AiY3gRZGy6mXqDaHWzWSdmJ4s+y3DScW2wpw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(4326008)(76116006)(66946007)(66556008)(66446008)(33656002)(8676002)(66476007)(2906002)(26005)(110136005)(53546011)(64756008)(316002)(6506007)(71200400001)(186003)(83380400001)(122000001)(8936002)(7696005)(55016003)(52536014)(86362001)(5660300002)(38070700005)(38100700002)(107886003)(508600001)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eIVut1+9oCxe8ocsW1iAMnnbepRUxzRLOHFE9EjndDKPCbr53htTPWup2nIS?= =?us-ascii?Q?uim5Rm20cR6qoYyVyHv7FMIhv8inGPKPSqnwI56SCGv4+X0alIrpd1IlqFKq?= =?us-ascii?Q?1ENpdeiqlFLzqCtr1tTa34rGvut8ekNjaotX0RTfzZNIZWOXqaw0/0GLeU0G?= =?us-ascii?Q?EBWAQP9b8pCk27zqT45asVe50FoSTSr/2XvgwjmAfIc5uPNpSQc0TkorDmkY?= =?us-ascii?Q?JJsSQg/7t40n3hP6fpLFUCcUEqrlGJJpdKUe4tA9pxD+9B2HEahXw/W5uED0?= =?us-ascii?Q?P18AQwjm8mdgRAX3tdd52PxbTF9LTJEFgbhyg6Ful7bI33Z4l1HT6bg1mW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INSU9e1aVL5IB8z5BtvbdiKk+816yGrInqiY+ooQ?= =?us-ascii?Q?yVRLnGd+YodBlS3sgVosBPAJRmY9lJlMiKjY/tf8B9LkGU4cjXcqvFKVgd5n?= =?us-ascii?Q?4GpqkhKLkg74eL2rRTLSpoMydZ5fBsENMCO3y6FWuHV8Sqwdve+g+NfxAoya?= =?us-ascii?Q?cHwUiv+i9DFJEWNaoQMI2Pk7gaQiE2SYeHBnNfqvVo7t3uzgLXVbQyGPS84s?= =?us-ascii?Q?0P/0p8GSOV/paWkJuPKQR41NdjGQ/KI7pMDDfttDBtrZwF2TVn0A5nDu9sDC?= =?us-ascii?Q?eG1kGNo2mX1Rzf7OtoSFe+srBh/y2hr6I9KZPLBn68PiGU/DE//yCRSm4t6X?= =?us-ascii?Q?vaS5NEzSxpxMR5uDAVr0JzM5J7/cCM+Xx9ZB7FM4xbwgdBhbW/cPVQ3Yeuz8?= =?us-ascii?Q?z/gyAoOpm/sDLguVj3eTtcQHljYzLcV4kUdrkkCTU2sx/6dZdVoEWpjuiY7f?= =?us-ascii?Q?xFNh426HUfQdFGLfsfY1yWWHsMVhSQ/PYCzPQNprW5tLp3lowhl/46L7twqX?= =?us-ascii?Q?b14GZJFF4w=3D=3D?= 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: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c5329de-6ca5-4f19-25b3-08da3646289c X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2022 07:40:18.3122 (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: UHv6M5Cfw9r3LBG3Hzfkog+RwXElRu5jMTUniBH3ASRP5pJZ8/UezPmbNxKo3N+fmcBS60g9GHk6VrWtMtzsuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3799 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 Hi, > -----Original Message----- > From: Raja Zidane > Sent: Thursday, May 12, 2022 12:17 PM > To: dev@dpdk.org > Cc: Matan Azrad > Subject: [PATCH V5] net/mlx5: support ESP SPI match and RSS hash >=20 > In packets with ESP header, The Inner IP will be encrypted, and its field= s > cannot be used for RSS hashing. So, ESP packets can be hashed only by the > outer IP layer. > So, when using RSS on ESP packets, hashing may not be efficient, because > the fields used by the hash functions are only the Outer IPs, causing all= traffic > belonging to all tunnels between a given pair of GWs to land on one core. > Adding the SPI hash field can extend the spreading of IPSec packets. >=20 > support matching on ESP SPI. > Support RSS on ESP header by hashing SPI field. >=20 > Signed-off-by: Raja Zidane > --- > V2: added doc. > V3: fixed checkpatch. > V4: rebase > V5: rebase and doc. > doc/guides/nics/features/mlx5.ini | 1 + > doc/guides/nics/mlx5.rst | 1 + > doc/guides/rel_notes/release_22_07.rst | 2 + > drivers/common/mlx5/linux/meson.build | 2 + > drivers/common/mlx5/mlx5_prm.h | 5 +- > drivers/net/mlx5/mlx5_defs.h | 2 +- > drivers/net/mlx5/mlx5_devx.c | 4 +- > drivers/net/mlx5/mlx5_flow.c | 84 +++++++++++++++++++++++- > drivers/net/mlx5/mlx5_flow.h | 20 ++++++ > drivers/net/mlx5/mlx5_flow_dv.c | 88 +++++++++++++++++++++++++- > 10 files changed, 204 insertions(+), 5 deletions(-) >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh