summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxq.c
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2018-01-25 09:19:46 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-29 10:04:28 +0100
commitc1236ad7076a6b31f432a15d70b324cf49129b18 (patch)
tree553f07f3684b80f150c16590609e4c86ffd30994 /drivers/net/mlx5/mlx5_rxq.c
parent0fb2c9842b206ffbf255690b2674ddca8f24646a (diff)
downloaddpdk-c1236ad7076a6b31f432a15d70b324cf49129b18.zip
dpdk-c1236ad7076a6b31f432a15d70b324cf49129b18.tar.gz
dpdk-c1236ad7076a6b31f432a15d70b324cf49129b18.tar.xz
net/mlx5: use RSS table max size from config
Maximum indirection table size has not been updated accordingly. Fixes: 7fe24446e946 ("net/mlx5: add device configuration structure") Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxq.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c
index 545896e..ca6cd3a 100644
--- a/drivers/net/mlx5/mlx5_rxq.c
+++ b/drivers/net/mlx5/mlx5_rxq.c
@@ -1202,7 +1202,7 @@ mlx5_priv_ind_table_ibv_new(struct priv *priv, uint16_t queues[],
struct mlx5_ind_table_ibv *ind_tbl;
const unsigned int wq_n = rte_is_power_of_2(queues_n) ?
log2above(queues_n) :
- log2above(priv->ind_table_max_size);
+ log2above(priv->config.ind_table_max_size);
struct ibv_wq *wq[1 << wq_n];
unsigned int i;
unsigned int j;