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 19CDB43DAA for ; Mon, 1 Apr 2024 18:41:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 737604029F; Mon, 1 Apr 2024 18:41:00 +0200 (CEST) Received: from rcdn-iport-9.cisco.com (rcdn-iport-9.cisco.com [173.37.86.80]) by mails.dpdk.org (Postfix) with ESMTP id 1EF144028B for ; Mon, 1 Apr 2024 18:40:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=19615; q=dns/txt; s=iport; t=1711989659; x=1713199259; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=XUqNuom0IIPumJK4A1adDyovaAoy6+9g9QtxsG3gbJk=; b=iwnOdOsZweyHXsIC26X0fgU4h3PUv3F/lSBdvYhc2WOi+KSJ+Aci5uI9 4jz0Ki6vToZ30+Si1z84XWOqZQKDVT2uhOKsFYzUEJZWFwDwPuD4Rau5e NC1UFBnA5POlyF19aTqpbvesZ0OrKyJZ9zY6dPQGIi7oY66p3D3eawC8p I=; X-CSE-ConnectionGUID: toFQRGQGSkCMEFvNeTSZZQ== X-CSE-MsgGUID: Cl5cLL1eQz2xUtSTHqDuzA== X-IPAS-Result: =?us-ascii?q?A0AYAACR4gpmmJ1dJa1aFgcBAQEBCQESAQUFAUAlgRYIA?= =?us-ascii?q?QsBgTUxUnoCgQUSSASIHQOETl+IawOBE5x0FIERA1YPAQEBDQEBPQcEAQGFB?= =?us-ascii?q?gKIBgImNAkOAQIEAQEBAQMCAwEBAQEBAQEBBgEBBQEBAQIBBwUUAQEBAQEBA?= =?us-ascii?q?QEeGQUQDieFbQEMhlkBAQEBAQEBDAZnBQcEAgEGAhEDAQEBLzEdCAIEDgUIG?= =?us-ascii?q?oJZBAEBghcU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duZJhBo7y90KnpewK7yXcH2/hhAV7CZniqhILGFvAZ0WKP+UyFJ8S6zJ8j6U 4CSdkzNDSTNykGsS+S2mDReLhQoqjjzEnrv5aj854Hd3ASV0gU1XYDNu/tKDwPeOApP+tfKL OsouB8i36Lf3MRYs6nBn8DcdTiirTw/q7OUFotPTJizBOBow+JxdfBfiRw2C1wbxp/hZMZtU TVmQ3w4auu99uhzAXH6mPV55NK3PP819pqHqW3+4YoAwSprjztSJVqWrWEsjxwivqo8kwWnN 7FpAplF9hv6knWYnq+rXLWqkjdOXcVmj/fIG2j8DneSP/CNXcH4g169MZkmy7imgkdVRdHoe V2Niyixtxq5Fj77VTADpDzJmJXfwyP0DUfeSp5tQ0GbWPYA4Uh9LA37QdbFowNEzn9751iGO 5yDNvE7PITal+CaWvF11MfiOBEc05DaCtueHJy8/C9wnxThjR03kEYzMsQkjMJ8488UYBN46 DBPr5znL9DQ8cKZeYlbd1xC/efGyjIW1bBIWiSKVPoGOUOPG/MsYf+5PEw6PuxcJIFwZMukN DKUU9et2Q1Z0XyYPf+l6Fj41TIWiGwTD7twsZR69xwvaD9XqPiNWmZRFUng6Kb0oIi6w3gKo KO0chtco3exEPVaPN04zE= X-Talos-CUID: 9a23:MLnE2G4DAOnUf2QU29ss6Ek6I/oKS1Lmz1z1DmGmL2tVc4+ncArF X-Talos-MUID: 9a23:I4xg2AUZZZnlpYbq/BTo2TpGEJ5l2rb0GH0RqqkmouWZJwUlbg== X-IronPort-Anti-Spam-Filtered: true Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by rcdn-iport-9.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2024 16:40:57 +0000 Received: from alln-opgw-4.cisco.com (alln-opgw-4.cisco.com [173.37.147.252]) by rcdn-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id 431Gevc5013049 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 1 Apr 2024 16:40:57 GMT X-CSE-ConnectionGUID: 7sp4V+q+S5K29I+jY+3tuQ== X-CSE-MsgGUID: 089yI2CsTwywpXR1RLrMbw== 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,172,1708387200"; d="scan'208,217";a="27214248" Received: from mail-dm6nam10lp2100.outbound.protection.outlook.com (HELO NAM10-DM6-obe.outbound.protection.outlook.com) ([104.47.58.100]) by alln-opgw-4.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2024 16:40:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZeobGXEFr4xq28s9y9ruuV21NtP3JGcrUvisXStCq5QNGMmBMD7ovknw3H5qwr/aWxT6YkQBBcUEpp7uUUmqPzcag1Wu8kuoGkwZQFYMJ2KHi+t8EHwfA120Vb9QAYnZkqcabFpnhD27+MV+jXkD+p30ju+a6223BaZTgfwXupH6UmOUDuvis138rLVvFsh/apFKSNCQi7CkqmXXxMec2C40Y1rgd3IGMjMNP95JNADipzlhMCVVTXacEOrLOskkPzTcckgN2FlcN9LkKUMvZ28DFBad19u2ekVC0ZotL2vImprXRnRj/l3RLQtYeGIIYnS8i8QssjDPIMWlBCJ21g== 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=XUqNuom0IIPumJK4A1adDyovaAoy6+9g9QtxsG3gbJk=; b=C7cafZEm3s6XufB5yGGIC9mzc6k2+XiMQYtVUcjSl1odaOctbfuw2IjgFxPWcPBdVb8WfJ4t8ISRutbpk+4MZRKP+yuCCkv1R0BoDCSxaFehj+nuexuCGkggWCuNFipZ9sPZ11dXI5Jh+clR11zEZ3hPagU9wilpl4OsPZ7d4jiLtu2e3a+BWJe0Orhns/6VepcsTxWUI8YNUQziLY38omZ7ZlHb21Ehh6tH+ttEq6JQjWLdAQD0OjmKy29mNSoHU+0jEbQIEk1nL8VQCozAxUNHFHVRNaqz2A7ksnxY7Tesy9fW0kDkqrulisoIhQeQV0Bs4jQ0gZ1W6g5n2YEGTw== 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 CYYPR11MB8308.namprd11.prod.outlook.com (2603:10b6:930:b9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.25; Mon, 1 Apr 2024 16:40:55 +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; Mon, 1 Apr 2024 16:40:54 +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/gAHjZ+o= Date: Mon, 1 Apr 2024 16:40:54 +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_|CYYPR11MB8308:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: v0RSSDGzKodOMpkEh60zAJ6Fmrzf44AqHoXSFtxPiU6zdHOfENa9Buyv0WrXWrNu0phCLkKllTy1NrjvyRevxrduXJtsVs9ysiL2Rhv7vxjcTJXzV615n5lXIqv8UipCWqazW8zzxynXFvYGBis3FPCGcWAUnedUg1TGIRb9iTsdiNIgpEBe5O/XwC5CRVvVeVAfy9AgXvEQrzQJhuc4RoTwrkY4azwrJnuLYpUQ8nuXJhcYGSdia6D+LihE19QUUk6MO1regcY8jEaanL6C+mpipVqwjf5UpP6Xh5Kb7fvTNh8XlG2quSBd7I6Mt3sn+s47EkvePcIeXkG6Erl/kQ3rfwFlFUCxnZ5Mh8ooIfBqPd6yJtIkLXs/il7i4qDXnCUe7CeOsZO2o3Ylia+Zdll6nA8AzmQ1PnfaoWd+plTkGU79CccwHE5BLk8oDHsigmw3EP083ztRrBJLsoiUiVkV712it4vBaLKR/zW/c59CimlhR7l0O4r/rXm3Ak3ukwtBu9J8ri1+BEQjssG98Qx9urrEB+FoYTRJJV5LQRAMTOJTcInD/25wwdXFX8w29a0CH1PMGpax1lEFuTlM69fz13kLqtyStkaPb/nHlnc= 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?lzq01qDsXhjXVaYfH0kp3hwl2QcycRdVW3JSls7Q3vhO3DxiCrhS9Rmv?= =?Windows-1252?Q?JXxMARhMG2AIdjHlTr00ZcbTR8/gxtGZirofxJHHkBVnlSVlbm8FbnPa?= =?Windows-1252?Q?yD7ugMtzhmEl6cOjdtEoO1VN2hdsjZrM/UICeiWeU3mRZradyHyI90pw?= =?Windows-1252?Q?JS2ZCD7MoqzUnMj4Sw2h6ySMJzdV86QFlT2gd7fsKtreqU88wNzDqmZs?= =?Windows-1252?Q?P4W2vvwjvU+Zs9mUyTpb+T7DnHTXfP9+g191Vut5HPqy+FmiKOAqSCUT?= =?Windows-1252?Q?3Qn5Rj1j1pSr94Jl2JJmVLVpZJMZEfSW7Y2/3ivtNXqBGp4ekNClAcYX?= =?Windows-1252?Q?/UaHjGFPinFKdoO08JsCZRmUyEAlheHNGY5gh7DwKWV7dcqo0ztYqiRe?= =?Windows-1252?Q?X3xa1AK4rHO23IXBrFPkUfTOATWnrn8s2eN5NTI2ag5HNHtCcNS1vum+?= =?Windows-1252?Q?x2kuZQdNQAUu/ZnCYpbjZeQ3AUUZ0x8V8qR8vat8oMVdDtyJZJwA2GjT?= =?Windows-1252?Q?MKiijreFDTP5Ol+UfqMzXieBtSnLL/8n251sBT3uM8RNFjx7GOTsgM+U?= =?Windows-1252?Q?8NWyemCh2AJDggpvUeVi09InuXBP0MRzw7rpHrgeMTFui8Z7+kg/O5hw?= =?Windows-1252?Q?x8dpp33sSo7cjiojdR3Osf2js39Mvnq8DAcU/Ec7KKUI0wWVNh82GyFE?= =?Windows-1252?Q?0tMC5jZPKwdAUkTv8d9uTuVnr/W5xMWSqG9/3MyIXGAROPdQKwyN73Jn?= =?Windows-1252?Q?tS1cD43fNMRTuwtcEnrUkESdDmlv1WUDjP3Z61C4cxj8U4PfZBstgygw?= =?Windows-1252?Q?GqErNaTQkrRqnjqymFA/T3Vl4CnGZ9mdnWA1tBzPWpagM/TrA8SBPawU?= =?Windows-1252?Q?B8DwcWn4V6QghRJ2jovWd69sS3+gO5DQzR6tRQWzl1pB0UaRAAj42Vp6?= =?Windows-1252?Q?kyWkS4dxSOliVOVW5KWsVZluVQyyNae+VkQrXlB/X/ju/TPboGF+jRr2?= =?Windows-1252?Q?9ZvB60ClVQqAjsv/LNrE+KSPSXGthdKc5m+RsB0YiUG2GKkytOLQW9X/?= =?Windows-1252?Q?EAcnHsUiEzDcnEasOIqR/HZE966P6wQ1Cw6PXLnPDR/6UEb7TG0RRgQV?= =?Windows-1252?Q?HztjS8ayyEhRSXAbtRAcXsvpAVP49i8zBiS4Tj6F875v7ytTgc5yZl7C?= =?Windows-1252?Q?d5hue1PvQQ45EMjVEpaDgox0bDKGygPWvgF5v2T9Z2tgAemxXEJuDk5/?= =?Windows-1252?Q?f0myLXjIwmEWj7ykM1iMF8Zwt9x8Ga0syXlY2oDsjeJyqp/3WFXWhPBl?= =?Windows-1252?Q?wRjg3Mbl1M6ujNtUzsRlkK493LbWMSKxg+pxZfr8xC1XAoYPQBWbU1P3?= =?Windows-1252?Q?d4sYkO9qi/QkVID5Qsyk8TUVr+7J5O9NboDMHfDkVjSCUjkFTw/W5CWw?= =?Windows-1252?Q?k8uR2t6fA74vP9cDC0KS4sEoucIwarsapl9xJJxeXX9c702Xi+uYiH0D?= =?Windows-1252?Q?sCs3ZaFak4qI9jtIk/OOvjtdH3t+4ehB1HgaFzOioJJdlNpEj6uA8Xk9?= =?Windows-1252?Q?7VvVMVKorm8FR9R6r0aRetos/J8xyLtiIPjifT0XGmAE8hlN/11voPoB?= =?Windows-1252?Q?T5aLpfzjX/eV/gSh/u3rLxxzij2eHBlypW+BbAhhQdtrqMuecC/FrJm5?= =?Windows-1252?Q?itmERuLKCMLhb2Zl+GoVWTLv6G5SvVZr8tzIExG7g4Vq8kjS869kGQKc?= =?Windows-1252?Q?lmMuGLAzqBLM+vUYqq9Ie49qxJBa9iqvipykvjykIznmBaXy06MIY5+o?= =?Windows-1252?Q?HvfN5Q=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH0PR11MB4997DBBE69B4E95284D1BC8FD13F2PH0PR11MB4997namp_" 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: 754dc772-90d6-40c7-ae23-08dc526a8021 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2024 16:40:54.9265 (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: IK5v9h6EBwpqDA342uhBNRnoMHTI/f4pIhvblTRW8aQXZqLBwL/jx+xqGuD35L3DCJq4l0jfNfeh0QFqnTPtMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR11MB8308 X-Outbound-SMTP-Client: 173.37.147.252, alln-opgw-4.cisco.com X-Outbound-Node: rcdn-core-6.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_PH0PR11MB4997DBBE69B4E95284D1BC8FD13F2PH0PR11MB4997namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable OK, I found my issue. The input to the hash function should include all 4 parameters also in cas= e of symmetic: (SRC_IP^DST_IP , SRC_IP^DST_IP, SRC_PORT^DST_PORT, SRC_PORT^DST_PORT) Shaul. From: Shaul Hamoi (shamoi) Date: Sunday, 31 March 2024 at 14:48 To: sismis@cesnet.cz Cc: Balakrishnan.K1@tatacommunications.com , stephen@networkplumber.org , users@dp= dk.org Subject: Re: Symmetric RSS Hashing support in DPDK 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_PH0PR11MB4997DBBE69B4E95284D1BC8FD13F2PH0PR11MB4997namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

OK,  I found m= y issue.

 

The input to the ha= sh function should include all  4 parameters also in case of symmetic:

(SRC_IP^DST_IP ,&nb= sp; SRC_IP^DST_IP, SRC_PORT^DST_PORT, SRC_PORT^DST_PORT)

 

Shaul.

 

From: Shaul Hamoi (shamoi) <shamoi@cisc= o.com>
Date: Sunday, 31 March 2024 at 14:48
To: sismis@cesnet.cz <sismis@cesnet.cz>
Cc: Balakrishnan.K1@tatacommunications.com <Balakrishnan.K1@tatac= ommunications.com>, stephen@networkplumber.org <stephen@networkplumbe= r.org>, users@dpdk.org <users@dpdk.org>
Subject: Re: Symmetric RSS Hashing support in DPDK
=

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_PH0PR11MB4997DBBE69B4E95284D1BC8FD13F2PH0PR11MB4997namp_--