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 AFDB0A0032; Wed, 11 May 2022 10:07:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34C1F410F2; Wed, 11 May 2022 10:07:39 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2073.outbound.protection.outlook.com [40.107.237.73]) by mails.dpdk.org (Postfix) with ESMTP id 733C740042 for ; Wed, 11 May 2022 10:07:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XykE+n6naJ/MOMZRwGpt2Pn2xWSjrq/hJNdLuFwK+w1MR7Tk8Sak3EC9j0Eb61g4i1ehUJ5zAHisoPwDpookStbetQgGtOX9MgPtLWXoICBCBlNWNI5r1M4zzKHvOo7yfN+pNoxMdnLk6yCcw47T0grjgRldygJdBjSbjTJK8McXVpJ00ZdfUKfKBGu4W295tuffR21V5r0eBrT2fSGu9BMw0YsaAzrV1GVrmt8t7X4vUsyv7zmdpqKHO+5BKID20YLi7W6jfhbgLbyqZ0FmJ7TDGaGj1oOtM4A5WJmHlwvwVBEal8ZnFd+t4A66sPn6AQcgsH1G9yDyl+2+RTUR/w== 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=KPvt8x7smCKQCBX52JKvQByqFfofEQYMw6Ujr1OsMEo=; b=TpvJalCS81/ho6mOf6VW83STMoPwRcRcbWYtLp3zMcEnE4LUNESAF03rAnA6p7URHgU44BA5tuSFw8kpgZWGlRiue7wrkLQHO2k+wte0LyoYdeXSNUzkPnzmNxum82bbxBrXqrpX+fvIfMZhO39RkRtMeOJPlLz//wq4neQHHDtLvmMnISwjLX/Jdm1C4soO6OuVDNYTk3a1Y4YiddIgy5Ey+rGZkqjLvYm4RZN9H6f+6woFy5sKHaYNGZtRcT9m9KpujxUHD7EhZkEqsQwjauFk9u6GPE2dyQH7M74rVloOkUZaBZ21WGvtMXXRSiEwA6PHJpVuCF1gSlgOI+qrYA== 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=KPvt8x7smCKQCBX52JKvQByqFfofEQYMw6Ujr1OsMEo=; b=qAF6dPhJYX362q+qbu8G+1JnD51aKGuvCCd8KjmRWZqHJY521Izm8WBKXnCThlcN4O3E7z1hBK23qABTvvEBnubwxuot/5XfN5T3gc1+gJKLgsaMiN0k3CbZpM0NT3loCWNK+Eyp21nlCMDGg6yZzv+zD3wgSCjIrNfGLLRUBJ6D+ZNEVEDr637Cmjo7p4S1aBqUFYZ5xeKnfYamm90Dvi12BatBhQmh2AnP1fesMFsCNwkVAz/Np1aEu3OfaXs/rKe9RTEj5TFIv495Ej0AyJ7o/UxRd/75UD3Q+G3Tdm4lHREVENzp+2vRwuhrQyScXVA31FMhuWtg1wASJ7zB5g== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39e::8) by DM5PR12MB2374.namprd12.prod.outlook.com (2603:10b6:4:b4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Wed, 11 May 2022 08:07:37 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::d9ba:eec3:90e8:b7ec]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::d9ba:eec3:90e8:b7ec%4]) with mapi id 15.20.5227.023; Wed, 11 May 2022 08:07:36 +0000 From: Matan Azrad To: Raja Zidane , "dev@dpdk.org" Subject: RE: [PATCH V4] net/mlx5: support ESP SPI match and RSS hash Thread-Topic: [PATCH V4] net/mlx5: support ESP SPI match and RSS hash Thread-Index: AQHYWxbHuZHa21b6f0qZZXxSMfBAA60ZZeRw Date: Wed, 11 May 2022 08:07:36 +0000 Message-ID: References: <20220418110158.1782-1-rzidane@nvidia.com> <20220428154328.8155-1-rzidane@nvidia.com> In-Reply-To: <20220428154328.8155-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: 5b0d257f-39ba-4673-d7b5-08da33254faa x-ms-traffictypediagnostic: DM5PR12MB2374: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: 0daY12lxypivs7Fwfr8F6wh7/OVc8jG2gu1ldLG9WGmXFMu7RuaowGHdXe/wf14z6tD0QOd6Z3trZG+WuEIKiQ2JFuIrYhHdELtkrN4lPOk2UKuBP26yCTf44lZ7tllqUxINtMZ1a6Gh5At9pOc89vSVSG2t5zgLYPVf7G0q4WP6SSbULv8u6kW373BlbrX391EM6YkoWq3f/LI/m2rCoY4QeoiW0urU5Y/57gqIv4H0j/8snIJ/4K17QZeED/37YRt7NjCTwi62IiaB/TZ7kUgdRjdu7eqyd86cxXox1OzsRoj41RPkebeR2ynDfg54pXyzlZ8tLmBRXnM7oyDN9sRK8vXWnHvv5OvPWZZD3NQWW4FR0kvloT71jfJlfm2x9AUFwsk1niuRp/VCIlXdPkHHMzQxEwD/qEzF4IK/d1m2zAsUBDJ+Yk6GOTgBOVCjIaq5dvCVEa1Qq9WvX6JyVodsZAkR3y8+T6hiCznyt+9TE2T+fw5z6wP211Vgfm38oWTH9DByBKnPINOoV6y781cVwNOZPF1D8TvBx7jfzz7dhCvjAJUgSg7xGyxCcTrmPVlQ2aPTxR6tw6PtU5CFW9/BbtUL2TDa8HVS1TwzCryURpo/Pq/aZDAWI1JsNDbKWUzCM12pnrP8KCnWdEkffmc5W7rNGGhE3dZ5JFCVWZoHyaNiAtYAeBbjzQZNfvwsq9+pjlur4NLuQDdpk2avrg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(5660300002)(38100700002)(508600001)(71200400001)(38070700005)(86362001)(122000001)(8936002)(6506007)(110136005)(316002)(66946007)(64756008)(66556008)(66476007)(66446008)(76116006)(8676002)(52536014)(33656002)(186003)(7696005)(55016003)(2906002)(26005)(4744005)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?A9csiVjDNw+YImfVcrSyjYeDyXUlm1Q8mtQ4RxbDcKpz0jnT4kaV4VQKoel6?= =?us-ascii?Q?Utliihk3RbZYPLgGNG42i1feDZCTEO0IlM9YOaD2hL77EE9X/UG5lKe4v3Jg?= =?us-ascii?Q?sWrJ24rx4M0X4CErGgnG3FeJUsogLWCN4+c0Y38ee1xOcjUp0p/pOBpFdAYl?= =?us-ascii?Q?F8VprHvTN4u8sspDiDv57f3Ij4aI1bMpt+8g5xcd5NB5e3L+B4MTHKzw7hIy?= =?us-ascii?Q?vQawqXcDJ+6+7mu/xHu2CvlR/S5caQlYl/nei2YQqiUEYPW8M85MOBQ9p40O?= =?us-ascii?Q?uStTyjmSY3EvBlPevsOk7s673FcyOUwrBvgdIM/U+nBvXEL5Erg8mkBNScrD?= =?us-ascii?Q?FOtg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LiaPZgwrrVXZexxYLzH+fm7?= =?us-ascii?Q?Za2dTYigcQsCm9s8dZMyGKhvD/zv8gQU79xFaUxM4wYRWRUPWpzQ029XKZZb?= =?us-ascii?Q?qNHGvFXcix+eBw8uYxanBvuF4q58AfcR3GqizjybVPDJEw2ij21604JaB1W6?= =?us-ascii?Q?vcrqGeWgJlNVSZNqBHpZuj0UVX7nIlCVIlImTjQsqFKEqmsLL71UAoG3JUkw?= =?us-ascii?Q?JPBWn+0wAjX90gM11j7bxB/F7mZ0p4HXi9HJo0Nqm8INx92UEIjF8mQJ3LjD?= =?us-ascii?Q?rcKoC9v95yyXtYGwX8/U8R0GQ7jvAopLZuqIPMJrv747uqTmqdXy7qjwE/PT?= =?us-ascii?Q?MS3gKttgFwtSt1cilqaby3kd8DYFb4mPbguI2djWPfgAP2wrWbtjXG9XixsT?= =?us-ascii?Q?eaoyAxBlqgnFK3fwGWw8zRzwtEiFrVsgwS+A+32XYDkb3D72vcva4pNMmTqa?= =?us-ascii?Q?aXTYgIquSNMhiWmImq1DxEFIYJf/UjYmybrplimsVqJhuDz2rBGdPm6xM2C3?= =?us-ascii?Q?34HdPFzr7w=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: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b0d257f-39ba-4673-d7b5-08da33254faa X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2022 08:07:36.9280 (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: X+sRivmMIyG6SLoaQR0eHzjt3Am7FUS3gln0dFioim/UYt60anednfR8UHqabIrzWrUUfo66CuOzBPznpGoOAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2374 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 From: Raja Zidane > 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 tra= ffic > 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 Acked-by: Matan Azrad