From c04e7f5a7080e2fa91aa2cf9a01a40760edecbe7 Mon Sep 17 00:00:00 2001 From: Shougang Wang Date: Mon, 6 Jul 2020 09:37:05 +0000 Subject: [PATCH] net/ice: fix 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") Cc: stable@dpdk.org Signed-off-by: Shougang Wang Acked-by: Qi Zhang --- drivers/net/ice/ice_generic_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c index ad103d0e88..80ef0e3230 100644 --- a/drivers/net/ice/ice_generic_flow.c +++ b/drivers/net/ice/ice_generic_flow.c @@ -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.");