net/mlx5: change error-prone code on Tx path
authorYongseok Koh <yskoh@mellanox.com>
Tue, 9 May 2017 20:49:31 +0000 (13:49 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 May 2017 16:05:18 +0000 (18:05 +0200)
In the main loop of mlx5_tx_burst(), pointers/indexes are advanced at the
beginning. Therefore, those should be rolled back if checking resource
availability fails and breaks the loop. And some of them are even
redundant.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>

No differences found