net/mlx5: fix completion buffer size
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 18 May 2017 10:44:45 +0000 (13:44 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:26 +0000 (10:41 +0100)
commit626e8bfb84d55a7234d9b79c35bd7005f076fd0d
treeceb5d27b4016d1757140898892dfc689d749ace6
parent74b7fc0a0ff151d7160171cfb0f712dcdd704505
net/mlx5: fix completion buffer size

Completion buffer size was computed wrongly, causing
completion polling to wraparound too early and miss entries.

Fixing it by using Direct Verbs to query the CQ info.

Fixes: 6218063b39a6 ("net/mlx5: refactor Rx data path")
Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_txq.c