mlx5: fix available entries in Tx rings
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>
Mon, 23 Nov 2015 14:44:48 +0000 (15:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:49:27 +0000 (17:49 +0100)
commit4f52bbfb0e1aa91ea388db10abda78eab7b0b1df
tree1a22e2a9cca11310f4d575988864d06cfac3e8d2
parentcacd65c8bb073fd46eee9b8deed582b01be610e6
mlx5: fix available entries in Tx rings

The number of available entries in TX rings is taken before performing
completion, effectively making rings smaller than they are and causing
TX performance issues under load.

Fixes: 2e22920b85d9 ("mlx5: support non-scattered Tx and Rx")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c