net/mlx4: remove Tx completion elements counter
authorMatan Azrad <matan@mellanox.com>
Wed, 6 Dec 2017 17:57:56 +0000 (17:57 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitec82dddad08ed635b3ffe3b55ab8d24f4c751432
treecfdb8cf44f67f2a7ec934ceb71b0782aaebfd288
parent50163aec51eb39e683a4b3a34aafef94ea54b772
net/mlx4: remove Tx completion elements counter

This counter saved the descriptor elements which are waiting to be
completed and was used to know if completion function should be
called.

This completion check can be done by other elements management
variables and we can prevent this counter management.

Remove this counter and replace the completion check easily by other
elements management variables.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_rxtx.c
drivers/net/mlx4/mlx4_rxtx.h
drivers/net/mlx4/mlx4_txq.c