net/mlx5: retry on link update failure
authorMoti Haimovsky <motih@mellanox.com>
Wed, 16 Oct 2019 07:34:03 +0000 (10:34 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:10 +0000 (16:43 +0200)
commit06ee15784871cc457d62b6c965bc8cdac40f9703
treee67865509183341ae3016a6a613ae469d1604761
parentf3d0c07b095d7d83ff81abd40990b55372295f46
net/mlx5: retry on link update failure

mlx5_link_update immediately returns when called with no-wait parameter
and its call for retrieving the link status returns with EAGAIN error.
This is too harsh on busy systems where a first call fails with EAGAIN
from time to time.
This patch adds a (very limited) retry on such cases in order to allow
retrieving the link status.

Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_ethdev.c