mlx4: fix available entries in Tx rings
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>
Mon, 23 Nov 2015 14:44:41 +0000 (15:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:49:27 +0000 (17:49 +0100)
commitcacd65c8bb073fd46eee9b8deed582b01be610e6
tree52e0d4329f78a71995142c5f9f221e8770f33034
parentecbfdbad6e707e1dbf44238e0317cc4ccf69e9b5
mlx4: 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: 7fae69eeff13 ("mlx4: new poll mode driver")

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