]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Fix VF virtual link state.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 11 Nov 2016 05:11:43 +0000 (00:11 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:07:54 +0000 (13:07 -0500)
commitf2d4dd2735893828c05421431baa1d5da05cabc4
tree7f376e1d2a22d68be716b384d464a5b61dd0fddc
parentbf3f78cbfc67dfd6ad7176891e264c1d14c17134
bnxt_en: Fix VF virtual link state.

Orabug: 24567991

If the physical link is down and the VF virtual link is set to "enable",
the current code does not always work.  If the link is down but the
cable is attached, the firmware returns LINK_SIGNAL instead of
NO_LINK.  The current code is treating LINK_SIGNAL as link up.
The fix is to treat link as down when the link_status != LINK.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 73b9bad63ae3c902ce64221d10a0d371d059748d)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c