]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Poll link at the end of __bnxt_open_nic().
authorMichael Chan <mchan@broadcom.com>
Sat, 20 Feb 2016 00:43:19 +0000 (19:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Feb 2016 04:39:32 +0000 (23:39 -0500)
commit698ac265d5fabb7a03e4d3f9286cc12c21a68c3f
treee4fa7fbefacf5b86fcd91626e6c0c6a94f613678
parentb3b649ba78829282ffc9435bb3bc290dfd583863
bnxt_en: Poll link at the end of __bnxt_open_nic().

When shutting down the NIC, we shutdown async event processing before
freeing all the rings.  If there is a link change event during reset, the
driver may miss it and the link state may be incorrect after the NIC is
re-opened.  Poll the link at the end of __bnxt_open_nic() to get the
correct link status.

Signed-off-by Michael Chan <michael.chan@broadcom.com>

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c