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 3E5DE43BDF for ; Fri, 8 Mar 2024 08:29:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05F1B40298; Fri, 8 Mar 2024 08:29:39 +0100 (CET) Received: from office2.cesnet.cz (office2.cesnet.cz [78.128.248.237]) by mails.dpdk.org (Postfix) with ESMTP id B4F9C40274 for ; Fri, 8 Mar 2024 08:29:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2-2020; t=1709882977; bh=U9iFTKv6PHkkWmpfY8CiwiTr5W+Qqrbthr0gvEYIf58=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=ceNu8MMib5faFRYx/vTdgQhLVHOqNsqJuztBbAsdeQ4W2droayXS+oMFhnb38U5gi 62aheznKTGvucm+DFAdyiI6jFFPEJT5QvC2EE794D5ip2dmF48WmwxvcZJqpuVRnMd Qw1NBZUnVkH8+J/DRlO0QdNh5R4tAV6zffzBY8k2F7g/ivu98pd4bwxFf2VePHpKl1 3xmkYDgAhz5tvucellqsTNG6DwyvtFtsG9V1o8ESKQC1/XrIYKDisE2uDFPlLhRQQ+ iZuraXfUGuWsJbk/tTKVj6ToDZUin/bzkBAohaRi2FpIjUXi57JUv1SCuSlZkRTUmp s5KEfErEwU9kA== Received: from [IPV6:2a02:a03f:c0af:c101:5993:e230:5a1c:f42c] (unknown [IPv6:2a02:a03f:c0af:c101:5993:e230:5a1c:f42c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id 7165411801CE; Fri, 8 Mar 2024 08:29:34 +0100 (CET) Message-ID: <90dc11cf-8c60-4b90-a3fc-43b2351b6c93@cesnet.cz> Date: Fri, 8 Mar 2024 08:29:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Symmetric RSS Hashing support in DPDK Content-Language: en-US To: Balakrishnan K , Stephen Hemminger Cc: "users@dpdk.org" References: <20240306070359.43b8f128@hermes.local> From: =?UTF-8?B?THVrw6HFoSDFoGnFoW1pxaE=?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 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 help 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 click 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 the traffic across core. >> Tried using rss config as below . >> action_rss_tcp.types = 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 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 that > 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