Skip to contentSkip to conversation

net/iavf: remove unreachable hash action case

PATCH In review Artem Novikov 2 participants 2 messages Jun 8 – Jun 9 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

Fixes 7be10c3004be ("net/iavf: add RSS configuration for VF")
---
 drivers/net/intel/iavf/iavf_hash.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/intel/iavf/iavf_hash.c +0 -2
index 217f0500ab..7ce7b86d8e 100644
@@ -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
#1 lore raw
Quoted 21 lines · Artem Novikov

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.

Fixes 7be10c3004be ("net/iavf: add RSS configuration for VF")
---
 drivers/net/intel/iavf/iavf_hash.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/intel/iavf/iavf_hash.c +0 -0
index 217f0500ab..7ce7b86d8e 100644

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