]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Resolve bad operstate value
authorLama Kayal <lkayal@nvidia.com>
Sun, 19 Sep 2021 11:55:45 +0000 (14:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Sep 2021 12:21:04 +0000 (13:21 +0100)
commit157ffb196339518aab7dfe9f2edbe1af0030564a
tree75bde591ff29052cee7a6dcc7cf267e36763ccb6
parentd1a84a0435564e6a2bc922982295f16bb3ba0487
net/mlx4_en: Resolve bad operstate value

Any link state change that's done prior to net device registration
isn't reflected on the state, thus the operational state is left
obsolete, with 'UNKNOWN' status.

To resolve the issue, query link state from FW upon open operations
to ensure operational state is updated.

Fixes: eebe24d1aff7 ("mlx4_en: Add driver for Mellanox ConnectX 10GbE NIC")
Signed-off-by: Lama Kayal <lkayal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h