From a15255b4cbad8b6c4f4488dac3392f75a67f5901 Mon Sep 17 00:00:00 2001 From: Jeff Guo Date: Thu, 16 Jul 2020 15:29:00 +0800 Subject: [PATCH] net/ice: fix IPv6 NAT-T ESP 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") Signed-off-by: Jeff Guo Acked-by: Qi Zhang --- drivers/net/ice/ice_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index af29ab6c96..05388b412c 100644 --- a/drivers/net/ice/ice_hash.c +++ b/drivers/net/ice/ice_hash.c @@ -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 |= -- 2.20.1