Skip to content

Commit

Permalink
net/ice/base: fix inner symmetric RSS hash in raw flow
Browse files Browse the repository at this point in the history
[ upstream commit 53e7c7f ]

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: 0837da2 ("net/ice/base: support add HW profile for RSS raw flow")

Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
tingxu1 authored and kevintraynor committed Oct 11, 2022
1 parent a991f64 commit a50e008
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ice/base/ice_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==
Expand All @@ -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 ==
Expand Down

0 comments on commit a50e008

Please sign in to comment.