net/mlx4: remove unnecessary Tx wraparound checks
authorMatan Azrad <matan@mellanox.com>
Wed, 6 Dec 2017 17:57:50 +0000 (17:57 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit6e1a01b220f4ff2fd162f4291e299274221e8005
tree923eb6954d91cd4a32d455136690ff93ebd3a4c5
parente3ecea72a85626a0708625b7ad9a290ebdecfe24
net/mlx4: remove unnecessary Tx wraparound checks

There is no need to check Tx queue wraparound for segments which are
not at the beginning of a Tx block. Especially relevant in a single
segment case.

Remove unnecessary aforementioned checks from Tx path.

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