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)
commit3730e6c6d7a5852d1e3b5a75192668f51d256999
treeccfde03e8f4d9dc0d57cae6111070848e58087f4
parentac180a21f621fd2f8c8af97d6fa1e36f8bcebc1f
net/mlx5: change error-prone code on Tx path

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>
drivers/net/mlx5/mlx5_rxtx.c