[PATCH] net/iavf: remove unreachable hash action case

Artem Novikov naa at amicon.ru
Thu Jun 4 18:13:53 CEST 2026


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")
Cc: stable at dpdk.org
Cc: jia.guo at intel.com

Signed-off-by: Artem Novikov <naa at amicon.ru>
---
 drivers/net/intel/iavf/iavf_hash.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/intel/iavf/iavf_hash.c b/drivers/net/intel/iavf/iavf_hash.c
index 217f0500ab..7ce7b86d8e 100644
--- a/drivers/net/intel/iavf/iavf_hash.c
+++ b/drivers/net/intel/iavf/iavf_hash.c
@@ -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,
-- 
2.43.0



More information about the dev mailing list