net/mlx5: poll completion queue once per a call
authorYongseok Koh <yskoh@mellanox.com>
Thu, 20 Jul 2017 15:48:35 +0000 (08:48 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
commit54d3fe948dba0f7fe1479827a08e39d6c671a3fc
tree39f0e9731524a849e4eb6ba0cb0d231653728b1a
parent0aeb7077d171760b729e132a32a73e833f0b957d
net/mlx5: poll completion queue once per a call

mlx5_tx_complete() polls completion queue multiple times until it
encounters an invalid entry. As Tx completions are suppressed by
MLX5_TX_COMP_THRESH, it is waste of cycles to expect multiple
completions in a poll. And freeing too many buffers in a call can
cause high jitter.
This patch improves throughput a little.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/net/mlx5/mlx5_rxtx.h