net/mlx4: separate Tx segment cases
authorMatan Azrad <matan@mellanox.com>
Thu, 2 Nov 2017 16:42:49 +0000 (16:42 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 Nov 2017 19:22:09 +0000 (20:22 +0100)
commitdae76a678cf8b36e1fefecc8c68f70613c275a02
tree5c5611f8d9a14e53baf28fb8fee7079ca27d48e8
parent4d8e284df295741e4b30d96ac0552b7b8669a3f0
net/mlx4: separate Tx segment cases

Optimize single segment case by processing it in different block which
prevents checks, calculations and barriers relevant only for multi
segment case.

Call a dedicated function for handling multi segments case.

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