net/mlx5: fix Tx completion descriptors fetching loop
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 29 Jul 2019 12:41:03 +0000 (12:41 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jul 2019 16:05:10 +0000 (18:05 +0200)
commit318ea4cfa1b1c1393181a0a70ba8fd9776de341a
tree62e08ff74c9dbab0f35fb251c3b6539b2e9c05c0
parent17ed314c6c0b269c92941e41aee3622f5726e1fa
net/mlx5: fix Tx completion descriptors fetching loop

This patch limits the amount of fetched and processed
completion descriptors in one tx_burst routine call.

The completion processing involves the buffer freeing
which may be time consuming and introduce the significant
latency, so limiting the amount of processed completions
mitigates the latency issue.

Fixes: 18a1c20044c0 ("net/mlx5: implement Tx burst template")

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