net/mlx5: fix completion queue overflow for large burst
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 5 Aug 2019 13:03:54 +0000 (13:03 +0000)
committerRaslan Darawsheh <rasland@mellanox.com>
Tue, 6 Aug 2019 15:42:12 +0000 (17:42 +0200)
commitf32a3f5216a33839799932451dde305759082efb
treef64006837b51e767fb59f2b2c409ccd6f46943f1
parent3502b059251517785bd3232a97f56fb239606183
net/mlx5: fix completion queue overflow for large burst

There is the limit on completion descriptor fetch to improve
latency. If burst size is large there might be not enough
resources freed in completion processing. This fix reiterates
sending loop and allows multiple completion descriptor fetch
and processing.

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