Skip to contentSkip to conversation

net/ice: fix ipv6 nat-t esp issue

PATCH Applied Jeff Guo 2 participants 2 messages Jul 16, 2020 Network drivers

lore
Share & tools
lore

Jeff Guo

author
#0 lore raw

PATCH 1/1 net/ice: fix ipv6 nat-t esp issue

The hash for ipv6 nat-t esp should be enable as ipv4 nat-t esp.

Fixes dadf70e5c30a (net/ice: enable additional input set for RSS hash)
---
 drivers/net/ice/ice_hash.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ice/ice_hash.c +2 -1
index af29ab6c9..05388b412 100644
@@ -1102,7 +1102,8 @@ ice_hash_parse_action(struct ice_pattern_match_item *pattern_match_item,
 
 			/* update hash field for nat-t esp. */
 			if (rss_type == ETH_RSS_ESP &&
-			    (m->eth_rss_hint & ETH_RSS_NONFRAG_IPV4_UDP)) {
+			    (m->eth_rss_hint & ETH_RSS_NONFRAG_IPV4_UDP ||
+			     m->eth_rss_hint & ETH_RSS_NONFRAG_IPV6_UDP)) {
 				hash_meta->hash_flds &=
 				~(BIT_ULL(ICE_FLOW_FIELD_IDX_ESP_SPI));
 				hash_meta->hash_flds |=
Signature · 1 line
2.20.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Guo, Jia <[email protected]>
Sent: Thursday, July 16, 2020 3:29 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: [email protected]; Su, Simei <[email protected]>; Guo, Jia <[email protected]>
Subject: [dpdk-dev v1] net/ice: fix ipv6 nat-t esp issue

Quoted 5 lines

The hash for ipv6 nat-t esp should be enable as ipv4 nat-t esp.

Fixes dadf70e5c30a (net/ice: enable additional input set for RSS hash)

Applied to dpdk-next-net-intel.

Thanks
Qi