DPDK usage discussions
 help / color / mirror / Atom feed
From: Vishal Mohan <vishal.mohan@tatacommunications.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] DPDK 20.11 - i40e 2 tuple RSS configuration
Date: Thu, 27 May 2021 07:39:56 +0000	[thread overview]
Message-ID: <SG2PR04MB31736D4D8D37AED61DD7BA31E4239@SG2PR04MB3173.apcprd04.prod.outlook.com> (raw)
In-Reply-To: <SG2PR04MB3173B935587AE7E8599C7DF9E4239@SG2PR04MB3173.apcprd04.prod.outlook.com>

I'm trying to implement RSS with 2 tuple (src ip, dst ip) hashing with X710 - quad port in DPDK 20.11 with no success. I was able to implement the same in DPDK 17.11 with a combination of RSS flags  given below and rte_eth_dev_filter_ctrl():

.rss_hf = (ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_OTHER | ETH_RSS_FRAG_IPV4 |
ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV4_TCP)

and selecting input fields as dst and src ip for every rss_hf flag using rte_eth_dev_filter_ctrl().

In DPDK 20.11, I believe there is no explicit usage of using rte_eth_dev_filter_ctrl() instead we can configure the hashing with the generic rte_flow api. I did configure a flow validate and create the same, but the hashing is not working as expected. Without flags ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV4_TCP no hashing takes place and with those flags included in .rss_hf, 5 tuple hashing takes place.

When using rte_flow api, any flags given in rte_flow_action_rss.types has no effect on the final RSS hash result. Also the RSS hashing in the given testpmd isn't working when it is configured in "ip" (2 tuple) mode.

Any inputs for configuring RSS hashing for 2 tuple is much appreciated.


Thanks & Regards,
 Vishal Mohan

       reply	other threads:[~2021-05-27  7:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SG2PR04MB3173B935587AE7E8599C7DF9E4239@SG2PR04MB3173.apcprd04.prod.outlook.com>
2021-05-27  7:39 ` Vishal Mohan [this message]
2021-05-27  8:11   ` Xing, Beilei
2021-05-27  9:45     ` Vishal Mohan
2021-05-28  1:23       ` Xing, Beilei
2021-05-28  3:36         ` Zhang, AlvinX
2021-05-28  6:56         ` Zhang, AlvinX
2021-05-28  8:47           ` Vishal Mohan
2021-05-30 14:22             ` Vishal Mohan
2021-05-31  1:52               ` Zhang, AlvinX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SG2PR04MB31736D4D8D37AED61DD7BA31E4239@SG2PR04MB3173.apcprd04.prod.outlook.com \
    --to=vishal.mohan@tatacommunications.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).