net/iavf: remove unreachable hash action case
PATCH 1/1 net/iavf: remove unreachable hash action case
The hash action parser stops iterating when it reaches RTE_FLOW_ACTION_TYPE_END. The switch below uses action_type copied directly from action->type inside that loop, so the END case cannot be selected.
Remove the unreachable case. No functional change.
--- drivers/net/intel/iavf/iavf_hash.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/intel/iavf/iavf_hash.c +0 -2
@@ -1490,8 +1490,6 @@ iavf_hash_parse_action(struct iavf_pattern_match_item *match_item, rss_type, pattern_hint);break ; -case RTE_FLOW_ACTION_TYPE_END : -break ;default : rte_flow_error_set(error, EINVAL,
Signature · 1 line
2.43.0
Quoted 21 lines · Artem Novikov
The hash action parser stops iterating when it reaches
RTE_FLOW_ACTION_TYPE_END. The switch below usesaction_typecopied directly fromaction->typeinside that loop, so the END case cannot be selected.Remove the unreachable case. No functional change.
Fixes 7be10c3004be ("net/iavf: add RSS configuration for VF")Signed-off-by Artem Novikov <[email protected]>--- drivers/net/intel/iavf/iavf_hash.c | 2 -- 1 file changed, 2 deletions(-)drivers/net/intel/iavf/iavf_hash.c +0
-0
drivers/net/intel/iavf/iavf_hash.c iavf_hash_parse_action(struct iavf_pattern_match_item *match_item, · line 1495
Quoted 8 lines
drivers/net/intel/iavf/iavf_hash.c +0
-2@@ -1490,8 +1490,6 @@ iavf_hash_parse_action(struct iavf_pattern_match_item *match_item, rss_type, pattern_hint);break ; -case RTE_FLOW_ACTION_TYPE_END : -break ;default : rte_flow_error_set(error, EINVAL,
This code is no longer present, following the recent rework of Intel driver flow parsing, done by Anatoly. Therefore marking this as "not applicable" in patchwork.
Thanks,
/Bruce