Skip to contentSkip to conversation

net/ice/base: fix symm RSS hash not valid for inner IPv4/6

PATCH Applied Ting Xu 2 participants 2 messages Aug 3, 2022 – Aug 8, 2022 Network drivers

lore
Share & tools
lore

Ting Xu

author
#0 lore raw

PATCH 1/1 net/ice/base: fix symm RSS hash not valid for inner IPv4/6

Inner IPv4 and IPv6 symmetric RSS hash is not valid for raw pattern. This patch fixes the issue by adding the corresponding protocol ID for inner IPv4/6.

Fixes 0837da2e27ae ("net/ice/base: support add HW profile for RSS raw

flow")
Cc: [email protected]

---
 drivers/net/ice/base/ice_flow.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ice/base/ice_flow.c +4 -0
index bcbb9b12c4..0db474bd62 100644
@@ -4092,6 +4092,8 @@ ice_rss_cfg_raw_symm(struct ice_hw *hw,
 
 		switch (proto_id) {
 		case ICE_PROT_IPV4_OF_OR_S:
+		case ICE_PROT_IPV4_IL:
+		case ICE_PROT_IPV4_IL_IL:
 			len = ICE_FLOW_FLD_SZ_IPV4_ADDR /
 			      ICE_FLOW_FV_EXTRACT_SZ;
 			if (prof->fv[i].offset ==
@@ -4107,6 +4109,8 @@ ice_rss_cfg_raw_symm(struct ice_hw *hw,
 			i++;
 			continue;
 		case ICE_PROT_IPV6_OF_OR_S:
+		case ICE_PROT_IPV6_IL:
+		case ICE_PROT_IPV6_IL_IL:
 			len = ICE_FLOW_FLD_SZ_IPV6_ADDR /
 			      ICE_FLOW_FV_EXTRACT_SZ;
 			if (prof->fv[i].offset ==
Signature · 1 line
2.25.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 15 lines

-----Original Message-----
From: Xu, Ting <[email protected]>
Sent: Wednesday, August 3, 2022 10:20 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Xu, Ting <[email protected]>; [email protected]
Subject: [PATCH v1] net/ice/base: fix symm RSS hash not valid for inner IPv4/6

Inner IPv4 and IPv6 symmetric RSS hash is not valid for raw pattern. This patch fixes the issue by adding the corresponding protocol ID for inner IPv4/6.

Quoted 5 lines
Fixes 0837da2e27ae ("net/ice/base: support add HW profile for RSS raw

flow")
Cc: [email protected]

Applied to dpdk-next-net-intel.

Thanks
Qi