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 CDA68A04B5; Wed, 4 Dec 2019 14:08:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB4701BE83; Wed, 4 Dec 2019 14:08:22 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140058.outbound.protection.outlook.com [40.107.14.58]) by dpdk.org (Postfix) with ESMTP id 9A017A3 for ; Wed, 4 Dec 2019 14:08:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oe5UMN/Wtx5RWcW2VlebgGjy/cY58gxhJjLEQpK2QNkmALxnFQdYc+1UnmNCN2uqGKOA2ykiVLoRCz65Hskj9Y+Z+NczVH/kQVkMS5lw+sehpCKV/vp7AeLIDmiSnx6gYOcjjL3aYwW/B6JT4T/e0b+0+6vZmzL9lgSSsbhfj6mka287XELAXZXGywEc3dHFY9VsBUsmkIbsRl4WYUN19pG7MnkP2f5OcrjDZ/a2DkOHBEUo+l8gwodmlmQ73Q91d8DOXqhB9uOB6GcvxEi/SrksVGcp6Kiyuzq9Ywkm5lEIgkHAKM7oxzoe0bqVgjkaFYHkgDy+kLpkYkvAUyMY5g== 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=xeEsDifZ9qwemZ8DeoAV67fXnV6pTyr+uY3L/OcQJHQ=; b=VMCo/eBPbysiAojH6uUe4n41dCSJXEVgyboMWHZ4g/n86a2czlibNr6uH7SwiiSh4JWZl5E7pMIlpKzoK3x7EVOpOxdvT8i1JQTnjVaseCNLMRnBJa+YO1vHLNoAQYx5BUxWhZfd/N7BW2SY301KDtCF1a7aC6hS1+4ZlHZWqt3kVWi54zbw688id9yxpw2B8CavcpNn82wYJl91+Sx2Nn2ujUPGMawno+S8gF1+62WfcqceFhyqY4oSGgNvj2OLmWg6J5VJGzIcKZhXHMV4o6Y4hLb262C1fG9cvfq00wgR5zxmKdPOjJ57h296VjEoEGHkoY/FIQGjk2wwnVjGKw== 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=xeEsDifZ9qwemZ8DeoAV67fXnV6pTyr+uY3L/OcQJHQ=; b=DgXh7yU+1PJUXcJCpwt+6AtbrvVv3RO6s3svdw5a3xCPlLY9HQYoHatJFvM/8Zs7emjB2O7j9CEj+w8XNS5VQa/LFRdMfPKYUw0ciF1y3Eq1gx4YBGeonVil0sGW7cuocBrMuAwLLxq00pU8BDE8BkrGi5a7Jyw03ZxGNqap6RQ= Received: from AM4PR05MB3460.eurprd05.prod.outlook.com (10.171.187.153) by AM4PR05MB3427.eurprd05.prod.outlook.com (10.171.187.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.12; Wed, 4 Dec 2019 13:08:20 +0000 Received: from AM4PR05MB3460.eurprd05.prod.outlook.com ([fe80::117b:8dc0:905e:d154]) by AM4PR05MB3460.eurprd05.prod.outlook.com ([fe80::117b:8dc0:905e:d154%4]) with mapi id 15.20.2495.014; Wed, 4 Dec 2019 13:08:20 +0000 From: Dekel Peled To: Matan Azrad , Slava Ovsiienko , Shahaf Shuler CC: Ori Kam , "dev@dpdk.org" Thread-Topic: [RFC] net/mlx5: support RSS types L3/L4 SRC/DST only Thread-Index: AdWlNeszY3hGrTX4QPuleUL3nCr+1A== Date: Wed, 4 Dec 2019 13:08:19 +0000 Message-ID: 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=dekelp@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e74bfc3c-d809-4043-8f66-08d778bb08fd x-ms-traffictypediagnostic: AM4PR05MB3427:|AM4PR05MB3427: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0241D5F98C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(136003)(39860400002)(366004)(376002)(199004)(189003)(6506007)(26005)(478600001)(25786009)(86362001)(99286004)(316002)(110136005)(186003)(66556008)(14444005)(102836004)(76116006)(66476007)(66946007)(7696005)(2906002)(6116002)(54906003)(71190400001)(71200400001)(66446008)(5660300002)(790700001)(52536014)(64756008)(14454004)(8676002)(33656002)(81156014)(81166006)(6306002)(9686003)(54896002)(74316002)(6636002)(4326008)(8936002)(7736002)(6436002)(55016002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3427; H:AM4PR05MB3460.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: /xZOJ4ckE7fXrP4LVIyT+xRRwpU8cHdzObLUUcR8HtMq6AaIlOtGMWQk3grGryY3o/SdvOjoWLkQ5NRBL3zVRq2tG3b+ly0M231NVOTrVRm9sKHVDyd4SyyMav35W7Un4Z0J+KRQLtEteHcjwtW6gC9o50Obb78+N7Xu//XSZT95xRuWhGAOm7kBBikk08aSQpGVPA9ya4g6PyV7WNNeB/8Ayl6X73Yh+lA88Zuz+W9FVcIdl2s3sqKsMYyDkSuRHJY3U8igPVnYN/QeX362z/u4vRRyX4lQQyZATSD2KD8aKRZkzW8jKLIw5SwwgBsya3VAcrQHeZ07XclVy1oiDJX0bpvzEjqXGv9JkzaVMlZVjJUiDuxflPPTMTvIQII2jZ0bAJxAKVtRuv7Wxkb2aveJ6RV/WXu33F2fykUa1pQPR7AmGHnAhV95G1s5SqFs MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: e74bfc3c-d809-4043-8f66-08d778bb08fd X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2019 13:08:19.9657 (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: bzcLMd04Xmxyd+Nvze9+d57gjqxcmrThwkIktERFAUueA/jUENjgbkcbQd7pkpR5ztXcjBbSXYCo2YI6nvevkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3427 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [RFC] net/mlx5: support RSS types L3/L4 SRC/DST only 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" In current PMD implementation, the RSS action is performed on L3 and L4, in= cluding SRC and DST fields. For some applications it can be useful to perform RSS on SRC only or on DST= only. This RFC suggest use of existing rte_ethdev definitions to enhance RSS acti= on support in MLX5 PMD: #define ETH_RSS_L3_SRC_ONLY (1ULL << 63) #define ETH_RSS_L3_DST_ONLY (1ULL << 62) #define ETH_RSS_L4_SRC_ONLY (1ULL << 61) #define ETH_RSS_L4_DST_ONLY (1ULL << 60) These values can be combined with L3/L4 ETH_RSS_* values, to define granula= r RSS offload types. Existing definition MLX5_RSS_HF_MASK will be updated to include the above E= TH_RSS_* values. MLX5 flow validation function for RSS action will be updated to verify RSS = types field: * ETH_RSS_L3_***_ONLY bits are set together with ETH_RSS_IP bits. * ETH_RSS_L4_***_ONLY bits are set together with ETH_RSS_UDP | ETH_RSS_= TCP bits. MLX5 flow translation function will be updated to set flow hash_fields acco= rding to RSS types. Change will be implemented in function mlx5_flow_hashfields_adjust(). If RSS types include SRC_ONLY or DST_ONLY bits, hash_fields will be updated= accordingly. IBV_RX_HASH_SRC/DST bits will be cleared according to RSS types. If RSS types include SRC_ONLY and DST_ONLY bits with same value, both set o= r both clear, hash_fields will be not be changed.