Skip to contentSkip to conversation

net/ice: add invalid RSS combinations

PATCH Applied Liulingyu 2 participants 2 messages Apr 8, 2021 – Apr 13, 2021 Network drivers

lore
Share & tools
lore

Liulingyu

author
#0 lore raw

PATCH 1/1 net/ice: add invalid RSS combinations

When create a rule with following invalid RSS type combinations, it should fails.

Invalid RSS combinations list:
- ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_TCP
- ETH_RSS_IPV6 | ETH_RSS_NONFRAG_IPV6_TCP

This patch adds these combinations in 'invalid_rss_comb' array to do valid check, if the combination check failed, the rule will be created failed.

---
 drivers/net/ice/ice_hash.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ice/ice_hash.c +2 -0
index 7d7e7052da..e56cdf9941 100644
@@ -826,7 +826,9 @@ static void ice_refine_hash_cfg(struct ice_rss_hash_cfg *hash_cfg,
 
 static uint64_t invalid_rss_comb[] = {
 	ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_UDP,
+	ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_TCP,
 	ETH_RSS_IPV6 | ETH_RSS_NONFRAG_IPV6_UDP,
+	ETH_RSS_IPV6 | ETH_RSS_NONFRAG_IPV6_TCP,
 	RTE_ETH_RSS_L3_PRE40 |
 	RTE_ETH_RSS_L3_PRE56 |
 	RTE_ETH_RSS_L3_PRE96
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Liu, Lingyu <[email protected]>
Sent: Thursday, April 8, 2021 11:55 PM
To: [email protected]; Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>
Cc: Liu, Lingyu <[email protected]>
Subject: [PATCH v1] net/ice: add invalid RSS combinations

When create a rule with following invalid RSS type combinations, it should fails.

Quoted 8 lines

Invalid RSS combinations list:
- ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_TCP
- ETH_RSS_IPV6 | ETH_RSS_NONFRAG_IPV6_TCP

This patch adds these combinations in 'invalid_rss_comb' array to do valid check, if the combination check failed, the rule will be created failed.

Renamed to "Lingyu Liu <[email protected]>" to align with the required format.

Acked: Qi Zhang <[email protected]>

Applied to dpdk-next-net-intel.

Thanks
Qi