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 via email to