Skip to contentSkip to conversation

net/ice: fix incorrect error log in generic flow

PATCH Applied Shougang Wang 2 participants 2 messages Jul 6, 2020 – Jul 7, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix incorrect error log in generic flow

When create a rss rule with void action, the error log is "Invalid input set". This patch fix the issue by adding check for the type of first actions item.

Fixes 7615a6895009 ("net/ice: rework for generic flow enabling")
---
 drivers/net/ice/ice_generic_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_generic_flow.c +1 -1
index ad103d0e8..80ef0e323 100644
@@ -1873,7 +1873,7 @@ ice_flow_process_filter(struct rte_eth_dev *dev,
 		return -rte_errno;
 	}
 
-	if (!actions) {
+	if (!actions || actions->type == RTE_FLOW_ACTION_TYPE_END) {
 		rte_flow_error_set(error, EINVAL,
 				   RTE_FLOW_ERROR_TYPE_ACTION_NUM,
 				   NULL, "NULL action.");
Signature · 1 line
2.17.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines

-----Original Message-----
From: Wang, ShougangX <[email protected]>
Sent: Monday, July 6, 2020 5:37 PM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Wang, ShougangX <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix incorrect error log in generic flow

Quoted 7 lines

When create a rss rule with void action, the error log is "Invalid input set". This patch fix the issue by adding check for the type of first actions item.

Fixes 7615a6895009 ("net/ice: rework for generic flow enabling")

Applied to dpdk-next-net-intel.

Thanks
Qi