]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_flow.c
net/mlx5: fix empty RSS flow action
[dpdk.git] / drivers / net / mlx5 / mlx5_flow.c
index 8d62f85e138edbda6153790b3c38f53a11a0c87e..1784e64fa9d95ed00837baf282ff8fc9678ba552 100644 (file)
@@ -506,6 +506,13 @@ priv_flow_validate(struct priv *priv,
                                actions->conf;
                        uint16_t n;
 
+                       if (!rss || !rss->num) {
+                               rte_flow_error_set(error, EINVAL,
+                                                  RTE_FLOW_ERROR_TYPE_ACTION,
+                                                  actions,
+                                                  "no valid queues");
+                               return -rte_errno;
+                       }
                        if (action->queues_n == 1) {
                                uint16_t found = 0;