net/hinic: allocate IO memory with socket id
[dpdk.git] / drivers / net / mlx5 / mlx5_rss.c
index 891d764..653b069 100644 (file)
@@ -7,7 +7,6 @@
 #include <stdint.h>
 #include <errno.h>
 #include <string.h>
-#include <assert.h>
 
 /* Verbs header. */
 /* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */
@@ -22,8 +21,8 @@
 #include <rte_malloc.h>
 #include <rte_ethdev_driver.h>
 
-#include "mlx5.h"
 #include "mlx5_defs.h"
+#include "mlx5.h"
 #include "mlx5_rxtx.h"
 
 /**
@@ -218,11 +217,12 @@ mlx5_dev_rss_reta_update(struct rte_eth_dev *dev,
                pos = i % RTE_RETA_GROUP_SIZE;
                if (((reta_conf[idx].mask >> i) & 0x1) == 0)
                        continue;
-               assert(reta_conf[idx].reta[pos] < priv->rxqs_n);
+               MLX5_ASSERT(reta_conf[idx].reta[pos] < priv->rxqs_n);
                (*priv->reta_idx)[i] = reta_conf[idx].reta[pos];
        }
        if (dev->data->dev_started) {
                mlx5_dev_stop(dev);
+               priv->skip_default_rss_reta = 1;
                return mlx5_dev_start(dev);
        }
        return 0;