From: Qi Zhang Date: Thu, 29 Aug 2019 02:36:37 +0000 (+0800) Subject: net/ice/base: fix for RSS hash on inner UDP port X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=12f6ea93f060e87c8cf211486d44fdb4cc4235f5;p=dpdk.git net/ice/base: fix for RSS hash on inner UDP port Before this patch, only outer IP with inner UDP port can appear in RSS hash, because the extraction sequence uses outer IP protocol ID with Inner UDP protocol ID. ICE_PROT_UDP_OF always extracts the TUNNELED UDP port values (i.e., 4789 for VXLAN). ICE_PROT_UDP_IL_OR_S will extract NON-TUNNELED UDP port or inner UDP port. Fixes: aa1cd410fa64 ("net/ice/base: add flow module") Cc: stable@dpdk.org Signed-off-by: Zhirun Yan Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Xiaolong Ye --- diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c index 477cf5dfe4..9a35a11d5c 100644 --- a/drivers/net/ice/base/ice_flow.c +++ b/drivers/net/ice/base/ice_flow.c @@ -670,7 +670,7 @@ ice_flow_xtract_fld(struct ice_hw *hw, struct ice_flow_prof_params *params, break; case ICE_FLOW_FIELD_IDX_UDP_SRC_PORT: case ICE_FLOW_FIELD_IDX_UDP_DST_PORT: - prot_id = seg == 0 ? ICE_PROT_UDP_IL_OR_S : ICE_PROT_UDP_OF; + prot_id = ICE_PROT_UDP_IL_OR_S; break; case ICE_FLOW_FIELD_IDX_SCTP_SRC_PORT: case ICE_FLOW_FIELD_IDX_SCTP_DST_PORT: