net/ice: fix symmetric rule creating
PATCH 1/1 net/ice: fix symmetric rule creating
Only allow to create symmetric rule for L3/L4.
Fixes 38d632cbdc88("net/ice: refactor PF RSS")
Signed-off-by Xuan Ding <[email protected]>
--- drivers/net/ice/ice_hash.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/ice/ice_hash.c +7 -0
@@ -868,6 +868,13 @@ ice_any_invalid_rss_type(enum rte_eth_hash_function rss_func,if (rss_type & (ETH_RSS_L3_SRC_ONLY |ETH_RSS_L3_DST_ONLY |ETH_RSS_L4_SRC_ONLY |ETH_RSS_L4_DST_ONLY ))return true; + +if (!(rss_type & + (ETH_RSS_IPV4 |ETH_RSS_IPV6 | +ETH_RSS_NONFRAG_IPV4_UDP |ETH_RSS_NONFRAG_IPV6_UDP | +ETH_RSS_NONFRAG_IPV4_TCP |ETH_RSS_NONFRAG_IPV6_TCP | +ETH_RSS_NONFRAG_IPV4_SCTP |ETH_RSS_NONFRAG_IPV6_SCTP ))) +return true; }/* check invalid combination */
Signature · 1 line
2.17.1
Quoted 10 lines
-----Original Message-----
From: Ding, Xuan <[email protected]>
Sent: Thursday, January 21, 2021 3:27 PM
To: Zhang, Qi Z <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Ding, Xuan <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix symmetric rule creating
Quoted 4 lines
Only allow to create symmetric rule for L3/L4.
Fixes 38d632cbdc88("net/ice: refactor PF RSS")
Fix on current release, no need to CC stable.
Quoted 2 lines
Signed-off-by Xuan Ding <[email protected]>
Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi