net/mlx5: fix completion queue drain loop
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 5 Aug 2019 13:03:51 +0000 (13:03 +0000)
committerRaslan Darawsheh <rasland@mellanox.com>
Tue, 6 Aug 2019 15:42:12 +0000 (17:42 +0200)
commitda1df1ccabade0df6d46e481268657a9993815af
tree111cf982a488c76fb5844185b707dfe2b20d5552
parent7014ef5bbab879923e4dfb801d493a8acd756c4a
net/mlx5: fix completion queue drain loop

The completion loop speed optimizations for error-free
operations are done - no CQE field fetch on each loop
iteration. Also, code size is oprimized - the flush
buffers routine is invoked once.

Fixes: 318ea4cfa1b1 ("net/mlx5: fix Tx completion descriptors fetching loop")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h