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 A125CA00C3; Thu, 12 May 2022 17:05:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 461B440E64; Thu, 12 May 2022 17:05:48 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2048.outbound.protection.outlook.com [40.107.93.48]) by mails.dpdk.org (Postfix) with ESMTP id 4F3EA40DDD for ; Thu, 12 May 2022 17:05:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oYpPVnXuypNsNZX4o8Dvdoq4DYtmztt7mVNV4nXbQven54UsgRBpRK/HwU3qHCpfVtWv7IVbsjDNQ4UntcREQhMQefu5csZ4vO5sYvt99zRu51TURwpXLZAznn4tDshGy3aYuzuvgHXT6j5G1cgEvEKCAVrj0oylbac1XzXYrk1e0Kf5h/SGE4MXacHzATVGmbSTu7XZ4ytKLEhhfjuHIZAOxvrY5g2Lvvq/PwwH0zSMlVbi9ccHRdQ8jd0tL3qxC1RT7yYga1zbeq+aygCsww+MOjaQ3IXjhffnCCbZz+Av8qbiasx1LWs1RZ6tcr6jKODWjuL7MqtEb/at6yaVMg== 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=ci+CxXlNcmKtxOw6gB2eC04Jf/5U16f8YUIMKQ0ZTmc=; b=mX23SE2Lil0kNWr176lx8qJLYaEIFFeY3erbSFXB6decS7afHi8YQvi96GovGjGni9u0S1VP1dtAJt5yfSpPwLRw2Gpb1EWW4774YlYCXZONXrKTGZ/EuWQ4X/EBLqZ6VVE7yXbXTQo37ac11cQmIB50BH6RjxF0Uv36+bnhatJMB4EMu60T2GV/r1K0Ew8ar7bZV+SZ2Y2We7OFUv/lzt2po3MgNyrJvpvmjTAc+sKGKMj4LS2p9HCgjjl9flnUvGlyLsS+zo7TPtoqyuVizjETBOyjjRJRAu/SGs4ELx/HepTvE9PKMJ2j9Vj46FCGfchBss4krM4+jmTVJtveRg== 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=ci+CxXlNcmKtxOw6gB2eC04Jf/5U16f8YUIMKQ0ZTmc=; b=Ugj0q6zhp4OHb0yFJ6BdHRl24CgYQg+5nU62Fo4USh/2Sl6aIiMI9IcNlGC5Byn3+bAWm532zWXc7UuCP9oE94l79XZz5+bc40tp9ENrA4LEVGfJIEx9WWWmngqJFaoK40RkhCxe4DH/80RC0LyH61oJW4r5Gskb/Q30w7oImAWAkhGy2gXTd9Y4IyVq+EH6F6MV2rViQwwU1f/VZePTOWjpJJlRxPbD12B5vokhaRB1Lgkn7fgE9n3A5x7UI3FIu2bW7neHSCK0GsDluT9ibs/W2AMzr23L9L4mXvd98FLt0xPYmcDxAh/P6x6sG3I+TNDK4fIJlIlzu4PCtn1VOg== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39e::8) by SJ1PR12MB6148.namprd12.prod.outlook.com (2603:10b6:a03:459::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Thu, 12 May 2022 15:05:45 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::ecdf:2d08:f3b:69ec]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::ecdf:2d08:f3b:69ec%4]) with mapi id 15.20.5250.014; Thu, 12 May 2022 15:05:45 +0000 From: Matan Azrad To: Raja Zidane , "dev@dpdk.org" 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: AQHYZeEg3j3RdsC8sEK7WT5s+iYkuq0bV6GA Date: Thu, 12 May 2022 15:05:45 +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: bb203aa5-d586-4311-e364-08da3428e433 x-ms-traffictypediagnostic: SJ1PR12MB6148: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: jccFy8OiRv1ul6xQK0QahwoiNomMWIaZIqAcqeF+9E4P9jLADN738x1z8+oRXCUXeQKhnd9pM9QIQ3f86uAhDbTr4KdJZCE4Umogug/zgIXHVMIjWnRzP+7HzhAhKgmc3jM9r1cD8WqaFyPnZtc0+ykSE7qKfc7gzuZWZeBfSBmII6ipm4eqE4KVy9MufhoBWFyFEUQcMkWUOgg2losbmNW5YwIKB8JD3poVvtGX+XPcerxbHt45sJYv8rgTWkc6y7o58i2ytNdYPeIUy78cE6dmTp0klFwtykjyjm/GWeENhQT1ZL7URCdDAUttaHL0lIBOxP0Wh2lyKzweO7OEjYg2dPJj5dPGGTOqDQLG7QAPVzP9UjeS/HBrj51t2ZQ4TekV7406h0AqA7UOMoZ9OM9WrDYKZL3tkCryrZFJyHjK1D5TzlzND3EXC7Hw00wjtOCJXk2Jo1btp2oQ3H5Tc99mYTGbye9L+30os9thKd7n4/B6Lw+HqgflKtcjRPc5QbWkQKidBvjRG2BIKmMKOPmBUxAWlnd2haT2wLZ8Nt9IhGmOTeu5tU9G7VOZTm67v92IXpsrY2dSOEDCxGlmN5kWg8Cz/dK2hmC3sj7hxM53U7yzT7hm+XVwBNn0VkFJOUPmI2DpwYbrEniUlFpdZjd/pRcWE2lw/ZwCpkzRslqpSnehNC3FhzNb12TFYevK8U1PAQu4AYJdqev51LgSkQ== 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)(9686003)(66556008)(7696005)(6506007)(26005)(71200400001)(4744005)(5660300002)(33656002)(186003)(2906002)(508600001)(52536014)(8936002)(38070700005)(38100700002)(316002)(55016003)(76116006)(66446008)(64756008)(66476007)(8676002)(66946007)(86362001)(110136005)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xZrWu2d6gPb4vNROhUc2nURnqyMg3LUcsqBTutTyL4vt8Wg7CJEaLbMkerod?= =?us-ascii?Q?r5s8msHvWtR+8cgGaE+dcTmR1p/aE65JMUvRM0fFl4SIHT2ywAByUW3wW7Rx?= =?us-ascii?Q?JR+DTxteBAilh4M/GlrTB3G+Sx1kCsEriCahAJqXuhL+sDnUCR5wFdNuBezf?= =?us-ascii?Q?KZVVVlyxS4nxWP9QQyjbD+D+KJfiFwumZbW7AdicCB/Sxz1dl3ekRY8FQ3T7?= =?us-ascii?Q?cHOEjMEtSnSOuKnd63RoSRhZmmnRhmHN/9FmDokC5AD5lnQeEeWmE3ukeyn0?= =?us-ascii?Q?Pzm7X+jT2l/5qngnCNAmgmV4YqCUtIKrkCTWa6YU5EcnDwmRxlpZMK0NeqWj?= =?us-ascii?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Q2fGjR025SwLCi7Iy3qIz/YSQ?= =?us-ascii?Q?dOfuGEnbIidBHBRGbk3C3anaxfuHt0QJFERg6Rdt5uDhppswJaauo3fZ0Bzr?= =?us-ascii?Q?B9iERPCe8IgU9CadOAQrPipfgCg8Wqj2dtti1z/45ISKj0voLyect6I/3McF?= =?us-ascii?Q?IpLy8pIV0jEgXE51fgzepLk2UtuSjMoHUqrLB2O+laYaMrIWTFIeiv1x49V/?= =?us-ascii?Q?1WshSpfP6Jxv51kG1Bhsi3/+2p3/2cOPx89dFLjujeiRrvFMgKgn1Hy0danP?= =?us-ascii?Q?We70iYiDzYC6AHII6CNh+JC5Z89n2OstmVC+NhVlEIOVQEg5YImQLtXcOzJp?= =?us-ascii?Q?P7mPxdNf/oFzsKRnP+a+aBiNmLoGDi0eDjNmOgftkVWDaRKPa7AkDLi4m2XE?= =?us-ascii?Q?n5JhzvM4DqTFFu0nrmUe/czpZSo2kimHSoDQa1QBrvI6wMlVTLloSdWn4mlY?= =?us-ascii?Q?YziDdPB7+QANe1itTIcq/YoDV0ezljVM/CohhZsGjmz9xhVR?= 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: bb203aa5-d586-4311-e364-08da3428e433 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2022 15:05:45.7819 (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: Givxw3SmxhAgy2qARVomhVOPD4YE04SyCwZC4CfWZgJZeQeHn0yVSZHYZlT42fSndUve4p0hZEJ1HQPuYZZ6FQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6148 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= 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 Acked-by: Matan Azrad