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 6EADB43D94 for ; Sun, 31 Mar 2024 13:47:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ECC0E40266; Sun, 31 Mar 2024 13:47:06 +0200 (CEST) Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) by mails.dpdk.org (Postfix) with ESMTP id 0F8C8400EF for ; Sun, 31 Mar 2024 13:47:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=17362; q=dns/txt; s=iport; t=1711885625; x=1713095225; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=v+TqzyNZS/EJHfYYN7WcYMyqUif3pYF+GgVUFhUnAq8=; b=ALFvjr9qRb9v1ONjUQomUElTQ4T5ARvgteYl0SjKTE7OgrdUo/db1W9X nJ7tKnpa/JYL41hkK1sQ8mwdhZ7dx8PkJEQlvJAczQo9nmMTZgvViRPsb HveYRiF+e+zRODoy0yjDMeasGiA/RtEL4wB/b80urTWsDupFgCLEm0+Yw A=; X-CSE-ConnectionGUID: jigFWivzRbu63xO+5hUAYA== X-CSE-MsgGUID: o3ERjTxOTcid5nQNMbfpjA== X-IPAS-Result: =?us-ascii?q?A0BHAQBnTAlmmIoNJK1aFggBAQsSDEAlgR8LgTYxUnoCg?= =?us-ascii?q?QUSSASIHQOFLYhrA4ETliOGURSBag8BAQENAQE9BwQBAYUGAogGAiY0CQ4BA?= =?us-ascii?q?gQBAQEBAwIDAQEBAQEBAQEGAQEFAQEBAgEHBRQBAQEBAQEBAR4ZBQ4QJ4VtA?= =?us-ascii?q?QyGWQEBAQEBAQEMBmcFBwQCAQYCEQMBAQEvMR0IAgQOBQgaglkEAQGCFxQDD?= =?us-ascii?q?iMDARAGlAOPTwG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LUTbUQSTXftfBOfZslnd8mjFh5FgPM RbAuRD4b/LfCVHZK/BiWHSfadDsby6GeKT9JvjJhxWPHhXgtRbnnxE43GgYzVLrWd9dP0EPa vZzPBq4xCnfnMaZNm6AH4qY8jvzuegqLvWJTQ9K1oC8gehsROEgYSWL/Gf5HgjegIK5Y1n3X nOkgT/6Knmmeq80AXg22ja6IkTsMf9y/NYbfb8xPQ9G3HJsEKFdY5hU7qNsHQeu+e08msnl9 HKvlMJI9lz0XXMZWu4yCGdmjUIkQxeq0MK+2Xow0cLkvaJAQ7SzPAxwb6xRyGpqHbIeusMl5 6jkVjp8aa/Rimw7BgVr+K4JC2C0HDE7kbLVYUo/iRiuUx0Us4JkaUPuExSC5sOByT89cQuF/ RvFtjV4LJMfUqddG2xhBgm/DWAZAVEIv69eDlKhuWFlzxN2HxpxUoRw8IS2n8G6ZImUpFBo+ DJKL5hmr1CRtIfKfsVPpZKfeKnTmjWBR7cOmObJlrqUKkBJnLWspbypLE4/vujdpAExIY73J 7BTFRbv2gvfF+GM7zE4LRbthTWBGmtVzXkzc9To5B/p73nXbLudTaOTVg/+vHQ1Mn3wverL8 pbYqgmccMLBVGebLp04w== X-Talos-CUID: 9a23:sGDjT2N8B4nd1u5DWiho2nEVBNIfeGCDl2f3YBK4NE9YYejA X-Talos-MUID: 9a23:MJ1BaAV1geS7nETq/Di3qQtgCNdP36+vBB0LqLMjscecNwUlbg== X-IronPort-Anti-Spam-Filtered: true Received: from alln-core-5.cisco.com ([173.36.13.138]) by alln-iport-5.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2024 11:47:03 +0000 Received: from alln-opgw-4.cisco.com (alln-opgw-4.cisco.com [173.37.147.252]) by alln-core-5.cisco.com (8.15.2/8.15.2) with ESMTPS id 42VBl3is006274 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 31 Mar 2024 11:47:03 GMT X-CSE-ConnectionGUID: 0IEARN0sQRCi9G4FJ46bEw== X-CSE-MsgGUID: ly+glTVjRtOgg2gP501fiw== Authentication-Results: alln-opgw-4.cisco.com; dkim=pass (signature verified) header.i=@cisco.com; spf=Pass smtp.mailfrom=shamoi@cisco.com; dmarc=pass (p=reject dis=none) d=cisco.com X-IronPort-AV: E=Sophos;i="6.07,169,1708387200"; d="scan'208,217";a="27167733" Received: from mail-dm6nam11lp2168.outbound.protection.outlook.com (HELO NAM11-DM6-obe.outbound.protection.outlook.com) ([104.47.57.168]) by alln-opgw-4.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2024 11:47:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cKOzkmPPvDMEc1LQ4IzACfWxjK5sP0uPWk0yFoLoM9aVjmlh8IFn1w9rQk+ZneCwYXE3OUL9S1iAeHbw56TU69bveq736URrDzLAiTCDQLHe0A8h99cBh0xGKfG/vGSbJy+vQYRs6wkb6rbRWFbMzljX8aOgb/XRV0l8u4aHk/R0IhBTtiBIVXunIfG7h0tEBOKPVPmeyLiwj90RVELOzYybtVUxQPOnnj5mP1mNywMICNYGCCCfqynnGWI072gF455PTHBdhQsh0vOWBQEZpWVZoMs1QEks+s39xZJzHObstVenEEv1jjMrVIzjyrEbmiCAF7Vyq7lU/bb+wrW7ww== 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=v+TqzyNZS/EJHfYYN7WcYMyqUif3pYF+GgVUFhUnAq8=; b=mQdaAX1g+Vt4zLEvKDcPaTn83t5tikqHFP9AqMv/kMKrtIo6EcIHlZur27VcubYpYUPO8QMDIm6lIuBDQZX3NlrGttlzzwGgr8miQvnBOwCdXp+V0otJwsngIzp/puSBzhbVfFdjZfyx4o8VssmHkpAvxp+M8YQRgl1my0j+dbRQB0YXkWJee8KcZ/82cla4gYsy3Wb+aObNeAdTttkwx0MhCnzuhkpKQwcx7QpmSLxxQXwvDwV6lY65HdEdz/tooJ22+wJ06aLXspRR1BqaORPPopTruhMo3YM2G2KeAaWT9ZEQXOMpKYuyIuWoYULVFzAwPcZ95wAAHC5Ht+v+gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none Received: from PH0PR11MB4997.namprd11.prod.outlook.com (2603:10b6:510:31::20) by MN6PR11MB8147.namprd11.prod.outlook.com (2603:10b6:208:46f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.41; Sun, 31 Mar 2024 11:47:02 +0000 Received: from PH0PR11MB4997.namprd11.prod.outlook.com ([fe80::1629:855f:8dfe:a92e]) by PH0PR11MB4997.namprd11.prod.outlook.com ([fe80::1629:855f:8dfe:a92e%7]) with mapi id 15.20.7409.031; Sun, 31 Mar 2024 11:47:02 +0000 From: "Shaul Hamoi (shamoi)" To: "sismis@cesnet.cz" CC: "Balakrishnan.K1@tatacommunications.com" , "stephen@networkplumber.org" , "users@dpdk.org" Subject: Re: Symmetric RSS Hashing support in DPDK Thread-Topic: Symmetric RSS Hashing support in DPDK Thread-Index: AQHag15lDiRpVcmBEUKOefmMcH+W8rFRu4V/ Date: Sun, 31 Mar 2024 11:47:01 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB4997:EE_|MN6PR11MB8147:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SznjLBI5ATxUztXBx1fFuo2FompbJk7aFj9ougSr5lpGTaH/82LSdd3QBymEqLcWdMWUS1QZUkFyYa7526FDvWqOzxbKYE8m8skpE7b8gE7ZgwCL8p0C8eZf9mEI9TZLH4RHyn+sdQ3k6OgCQ01XhFgPJpgmPZg9xkhrwUGAW1bRpgBr77kJT14dEdDHJGU4pXvEFbKFAb3Wo/TY50siu6xL6WsRaHV8y2/Fya276FUG0afGWDdFV1kE6os6vTKrnekabs9VA4+eAm3mqIWnaY6kgSeJ/KuqV/glUQybvYnwqqIXK3Zf1IhFflOO6eUiTc1IW7h/Sf0UWQsWbmCGFf/qybHju/G+sVosWXp0bLogYKlf4BaJpVERGqYt1cjw/AzLog1wuljJoDhIea+OIZDpGj21ilNxPqIPfvlZAoVZlAJPjb/asig25/nP0s2SMX6W6C1gl6L5wvzCzl6WEe4wcAwweXdpGYDqBDd6GWvtVxD30s7dy0mIiHr3XZz+sXEOGA4RrWYf9WOdlmrpegZn+hBO6RKB7ePzMePudr2nkxjBKinXSYtj1yRn3M2MxkkPDb2dE5FAVFP+puMdIuLPD9SnUNxxKYm9hUUt/LM= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB4997.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?eM0q9Kf2bD1ygQFsDB38ECWIfWUGgPwDvV0ctVoxrUpSrbdijpJgUCtU?= =?Windows-1252?Q?VHyenkmJtX/NBX0vFw9WUE+FMTO2EuZcxqE4/wRCQRS1B8mVXqyLxkzW?= =?Windows-1252?Q?ykgc4Cq6MSlgjz69OOW/kU+LNamGJLcvoZtmgQJXvUQWBhpA/kcCy+pQ?= =?Windows-1252?Q?pRXhBlGeH07VeJJ36VP6UaUJTUkoLb23cDtWjITdB2mtRJPOk4w6pciC?= =?Windows-1252?Q?wx760AS+5xjZpTY5KtVP4zfgyuI1wNMlU/2hnjRThEPmJXvDvUjmK2ax?= =?Windows-1252?Q?oldRL53INNSUnfGrqYFLEazj1GazkVY1NLYGNO+fxMgt6kLuD1pL2R/1?= =?Windows-1252?Q?17bwbcjQS+w2k6RfGo+nXzU0xONNtjBkV6CFcrn/cB1g/gekTlXUnabm?= =?Windows-1252?Q?zZ8t1HqerlIpg2Jj0ypn6DovsMaoYJbS8ltcgppZLoAnM1abVH/i7oCx?= =?Windows-1252?Q?NCL/PjFAuveZ8w7KiA6PmJbszgQMx7+WS+MIRjgZpjkQFqzMkwtUAdWU?= =?Windows-1252?Q?V/B+dDpsOzDALJLch1O5jxAIjvlH8LrSCBL6GLCm17rOLujuzY0/7Nng?= =?Windows-1252?Q?Tvx6Y5hPnrx9f2mg5TJSb1kgznTLlyvs55cjgvbJ/05gPC87Vwt6p9o/?= =?Windows-1252?Q?tqxRqe3DuwpPygs13Z2+mKk+zjNCTzQsOx1f1vefff42q4aEfHdU5SDJ?= =?Windows-1252?Q?jV+VgMDtXx7GTiHumqXztORG5dNuMhVhFAvvDMruRG81R3jOn5dwFwIY?= =?Windows-1252?Q?VrBUmySpfK2pHm/JYme196dShS8XD6RcXaPgHh7xin98FRBuTYJLEnGS?= =?Windows-1252?Q?c6gnfxbA40bf01FIurl8Egtux/TZol0Znbvvg64Xd1vo69lp/u9iK9wP?= =?Windows-1252?Q?WbZdrbXZQt0o0rfB1VFXM49scrHx3W/R+v/7QeaLJyEWgB7tQQgtDj/3?= =?Windows-1252?Q?UvqdmwePuMa2Zc1Q9ni0FU3HMEqGMF/rCUNovaCYKSVDS1OWGr6oCXw0?= =?Windows-1252?Q?DpIoh4mrFBbLNaE3bXpA/BxOAXnFC1CM1HPyLpMvgPM0V8eqgLg+hEJW?= =?Windows-1252?Q?bGEEeZozdHi7rEiebw+LsviFBr91M2vtgcSxoiX4X3EB6n1RZ1qXy2rQ?= =?Windows-1252?Q?wIPB3W7x8C4CbP0txqxRukVA8TKcESvgRvY+y1lnvDV6YEqUC9TUvL7m?= =?Windows-1252?Q?7zcf6DhjRwfAz/qLJFOacGBRCNIxWSveMvdomwhpcq0s3bNTPWIK0os+?= =?Windows-1252?Q?MYH7n6rvi3XNjutZkJh1IIpO8cfUIhfEi5MV73sft9OyXAy6XdgldUkl?= =?Windows-1252?Q?L1kZhFhI3G4LfJzzqQ35sBTKQIXdSPigfU/8yef7ELkK2MgCt47lL6hp?= =?Windows-1252?Q?tjGGiMbclIHR7LI89Rg+5hg6mN5vLL7D/dYLrcdS62ewkzUKLGAAAb2n?= =?Windows-1252?Q?S/X3jCZoJvlP/3kxFpoekNmcZMPnrO33Z8H6IQHtyxGTo5qEDxMoH6Py?= =?Windows-1252?Q?LMEg2PCwm4AQ2zLt1j9n9DsiFceEyJjl9UrUTOr+ztjj/Rh5ih9jB+sz?= =?Windows-1252?Q?ijzKXMVUpTzXcxFtV86RcaGmGLhR/edfuw/0BTEkbNRqzhTViy08TNCx?= =?Windows-1252?Q?9oljFp4FfOz+Sxk+eAXQdRdy4vLiDR9xoLOMKJ249f6P1RiTXZDqpVWh?= =?Windows-1252?Q?RHtB77snYGQD+mC6rEEuSvQE3i4WYz8zgysI4GM1TS6JGidZDd2IIA?= =?Windows-1252?Q?=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH0PR11MB4997D29EFE25BE208B5668FED1382PH0PR11MB4997namp_" MIME-Version: 1.0 X-OriginatorOrg: cisco.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB4997.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c79c848-c51c-48e4-674b-08dc517847a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2024 11:47:01.9202 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gqUG3Ynuj86gVtkY+n+dPKkBcLPN6UVRvmyOkT+QGxoFgHP8+NC2lzQpZh+e/fo98NSVy5VQw/UOAySYXygtRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR11MB8147 X-Outbound-SMTP-Client: 173.37.147.252, alln-opgw-4.cisco.com X-Outbound-Node: alln-core-5.cisco.com X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_PH0PR11MB4997D29EFE25BE208B5668FED1382PH0PR11MB4997namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, I am looking to determine the target queue for a flow in advance I=92m using dpdk-rss-flows.py to calculate the Toeplitz hash with I40E key. However, If I use the script as is, I don=92t obtain the correct queue beca= use the hash calculation isn=92t symmetric. I have attempted to XOR the source and destination IP addresses and source= and destination port before performing the calculation but I still don= =92t get the correct queue. In case you use RTE_ETH_HASH_SYMMETRIC_TOEPLITZ , the I40E key doesn=92t ch= ange - Right ? How do I find that the NIC does for symmetric hash so I can simulate it ? (src=3D"1.0.0.1", dst=3D"2.0.0.2")/TCP(sport=3D8819, dport=3D80) Actual queue - 7 (32 RX queues) Result with XOR: dpdk-rss-flows.py -s 8819 -d 80 -k i40e 32 1.0.0.1 2.0.0.2 SRC_IP SPORT DST_IP DPORT QUEUE 1.0.0.1 8819 2.0.0.2 80 19 Result without (original script): dpdk-rss-flows.py -s 8819 -d 80 -k i40e 32 1.0.0.1 2.0.0.2 SRC_IP SPORT DST_IP DPORT QUEUE 1.0.0.1 8819 2.0.0.2 80 20 Thanks in advance, Shaul. From: "Luk=E1=9A =8Ai=9Ami=9A" To: Balakrishnan K , Stephen Hemminger Cc: "users@dpdk.org" Subject: Re: Symmetric RSS Hashing support in DPDK Date: Fri, 8 Mar 2024 08:29:32 +0100 [thread overview] Message-ID: <90dc11cf-8c60-4b90-a3fc-43b2351b6c93@cesnet.cz> (raw) In-Reply-To: > Hi all, I've made minimalist example app on how to set symmetric RSS support for X710 that uses RTE_FLOW rules - check it out here: https://github.com/lukashino/i40e-symmetric-rss-rte-flow Lukas On 08. 03. 24 6:53, Balakrishnan K wrote: > Hi Stephen, > Thanks for the response . I will below option and come back if any hel= p required. > > Regards, > Bala > > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, March 6, 2024 8:34 PM > To: Balakrishnan K > Cc: users@dpdk.org > Subject: Re: Symmetric RSS Hashing support in DPDK > > CAUTION: This email originated from outside of the organization. Do not c= lick links or open attachments unless you recognize the sender and know the= content is safe. > > On Wed, 6 Mar 2024 07:28:40 +0000 > Balakrishnan K wrote: > >> Hello, >> Our application needs symmetric hashing to handle the reverse >> traffic on the same core, also to Improve performance by distributing th= e traffic across core. >> Tried using rss config as below . >> action_rss_tcp.types =3D ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY| >> ETH_RSS_L3_DST_ONLY | ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY; but cou= ld not get desired result. >> Is there any options or API available to enable symmetric RSS hashing . >> We are using dpdk 20.11 and intel NIC X710 10GbE . >> >> Regards, >> Bala > With XL710 there are two choices: > 1. Set RSS hash function to RTE_ETH_HASH_SYMMETRIC_TOEPLITZ in > the rte_eth_rss_conf passed in during configure > 2. Use default (non symmetric TOEPLITZ) but pass in a rss_key th= at > has duplicated bits in the right place. Like: > > 0x6d5a 0x6d5a 0x6d5a 0x6d5a > 0x6d5a 0x6d5a 0x6d5a 0x6d5a > 0x6d5a 0x6d5a 0x6d5a 0x6d5a > 0x6d5a 0x6d5a 0x6d5a 0x6d5a > 0x6d5a 0x6d5a 0x6d5a 0x6d5a > > https://www.ndsl.kaist.edu/~kyoungsoo/papers/TR-symRSS.pdf --_000_PH0PR11MB4997D29EFE25BE208B5668FED1382PH0PR11MB4997namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi,


I am looking to determine t= he target queue for a flow in advance
I=92m using dpdk-rss-flows.py to = calculate the Toeplitz hash with I40E key.
However, If I use the script as is, I don=
=92t obtain the correct queue because the hash calculation isn=92t symmetri=
c.
I have attempted to XOR the source and destination IP addresses  = ;and source and destination  port before performing the calculation &n= bsp;but I still don=92t get the correct queue.


In case you use R= TE_ETH_HASH_SYMMETRIC_TOEPLITZ , the I40E key doesn=92t change - Right ?How do I find that the NIC does for symmetric hash so I can simulate it ? =
(src=3D"1.0.0.1", dst=3D"2.=
0.0.2")/TCP(sport=3D8819, dport=3D80)
Actual queue - 7 (32 RX queues)
 
Result with XOR:
dpdk-rss-flows.py -s 8819 -d 80 -k i40e 32=
 1.0.0.1 2.0.0.2 
SRC_IP     SPORT    DS=
T_IP     DPORT    QUEUE
1.0.0.1    8819     2.=
0.0.2    80       19
 
Result without (original script):
dpdk-rss-flows.py -s 8819 -d 80 -k i40e 32=
 1.0.0.1 2.0.0.2 
SRC_IP     SPORT =
   DST_IP     DPORT    QUEUE
1.0.0.1    8819  =
   2.0.0.2    80     &nbs=
p; 20
 
 
Thanks in a=
dvance,
Shaul.
 
From: "Luk=E1=9A =8Ai=9Ami=
=9A" <sismis@cesnet.cz>
To: Balakrishnan K <Balakrishnan.K1@tat=
acommunications.com>,
       =
 Stephen Hemminger <stephen@networkplumber.org>
Cc: "users@dpdk.org" <users@d=
pdk.org>
Subject: Re: Symmetric RSS=
 Hashing support in DPDK
Date: Fri, 8 Mar 2024 08:29:32 +0100 =
 [thread overview]
Message-ID: <90dc11cf-8c60-4b90-a3fc-43=
b2351b6c93@cesnet.cz> (raw)
In-Reply-To: <PSAPR04MB551616841D8221851FF79214D6272@PSAPR04MB5516.a=
pcprd04.prod.outlook.com>
 
Hi all,
 
I've made minimalist example app on how to=
 set symmetric RSS support for 
X710 that uses RTE_FLOW rules - check it o=
ut here:
 
https://github.com/lukashino/i40e-symmetric-rss-=
rte-flow
 
Lukas
 
On 08. 03. 24 6:53, Balakrishnan K wrote:<=
/span>
> Hi Stephen,<=
/span>
>    T=
hanks for the response . I will below option and come back if any help requ=
ired.
=
> Regards,
> Bala<=
o:p>
=
> -----Original Messa=
ge-----
> From: Stephen Hemmi=
nger <stephen@networkplumber.org>
> Sent: Wednesday, Ma=
rch 6, 2024 8:34 PM
> To: Balakrishnan K =
<Balakrishnan.K1@tatacommunications.com>
> Cc: users@dpdk.org<=
/span>
> Subject: Re: Symmet=
ric RSS Hashing support in DPDK
=
> CAUTION: This email=
 originated from outside of the organization. Do not click links or open at=
tachments unless you recognize the sender and know the content is safe.
=
> On Wed, 6 Mar 2024 =
07:28:40 +0000
> Balakrishnan K <=
Balakrishnan.K1@tatacommunications.com> wrote:<=
/pre>
=
>> Hello,
>>  &nbs=
p;  Our application needs symmetric hashing to handle the reverse
>> traffic on the =
same core, also to Improve performance by distributing the traffic across c=
ore.
>> Tried using rss=
 config as below .
>> action_rss_tcp.=
types =3D ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY|
>> ETH_RSS_L3_DST_=
ONLY | ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY; but could not get desired=
 result.
>> Is there any op=
tions or API available to enable symmetric RSS hashing .=
>> We are using dp=
dk 20.11 and intel NIC X710 10GbE .
>> 
>> Regards,=
>> Bala
> With XL710 there ar=
e two choices:
>   &n=
bsp;      1. Set RSS hash function to RTE_ETH_HASH=
_SYMMETRIC_TOEPLITZ in
>   &n=
bsp;         the rte_eth_rss_conf p=
assed in during configure
>   &n=
bsp;      2. Use default (non symmetric TOEPLITZ) =
but pass in a rss_key that
>   &n=
bsp;         has duplicated bits in=
 the right place. Like:
=
> 0x6d5a 0x6d5a 0x6d5=
a 0x6d5a
> 0x6d5a 0x6d5a 0x6d5=
a 0x6d5a
> 0x6d5a 0x6d5a 0x6d5=
a 0x6d5a
> 0x6d5a 0x6d5a 0x6d5=
a 0x6d5a
> 0x6d5a 0x6d5a 0x6d5=
a 0x6d5a
=

> https://www.ndsl.kaist.edu/~kyoungsoo/pap= ers/TR-symRSS.pdf

 

 

--_000_PH0PR11MB4997D29EFE25BE208B5668FED1382PH0PR11MB4997namp_--