diff options
author | Michael Chan <mchan@broadcom.com> | 2016-02-20 00:43:19 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-20 04:39:32 (GMT) |
commit | 035a1539ab63bfdb284bdf6e8459e35897c60564 (patch) | |
tree | e4fa7fbefacf5b86fcd91626e6c0c6a94f613678 /drivers/net/ethernet | |
parent | 8d2c3ab4445640957d136caa3629857d63544a2a (diff) | |
download | linux-035a1539ab63bfdb284bdf6e8459e35897c60564.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 82f4e6d..9b56058 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -4662,6 +4662,7 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) /* Enable TX queues */ bnxt_tx_enable(bp); mod_timer(&bp->timer, jiffies + bp->current_interval); + bnxt_update_link(bp, true); return 0; |