net/mlx5: fix link status initialization
authorShahaf Shuler <shahafs@mellanox.com>
Tue, 10 Apr 2018 06:13:36 +0000 (09:13 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:43:30 +0000 (00:43 +0200)
commita85a606ca501296c81c4b3a5e6b359c7ad7e0a77
treed96db0c3a496db54297f2c8fe51cb6b3bd2fbcbf
parentde1df14e6e6ecfe84e125ccfd5f9109e69147e0f
net/mlx5: fix link status initialization

Following commit 7ba5320baa32 ("net/mlx5: fix link status behavior")
The initial link status is no longer set as part of the port start.

When LSC interrupts are enabled, ethdev layer reads the link status
directly from the device data instead of using the PMD callback.
This may cause application to query the link as down while in fact it was
already up before the DPDK application start (and no interrupt to fix
it).

Fixes: 7ba5320baa32 ("net/mlx5: fix link status behavior")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5.c