]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 17:37:31 +0000 (12:37 -0500)
commit7be4292cc7179e30dd0d05179e7eeb142ce97960
tree0b0517adc1561c013fed7cc059cb4d2796dd78a6
parent17b044276681b0650b5085177ba2e0cb2bb9f76e
bnxt_en: Fix VF virtual link state.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c