]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:36:53 +0000 (17:36 -0700)
commit64dff714041aeb773499dcc05a061adc9b7e4db4
treeb0f5d8d2aa0f3046b8e94c8833f29ab3fd1597ee
parentc3f495825a28f0b51c8f1d40072c36bf387139c2
bnxt_en: Poll link at the end of __bnxt_open_nic().

Orabug: 23221795

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>
(cherry picked from commit 035a1539ab63bfdb284bdf6e8459e35897c60564)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c