]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add support for fw managed link down feature.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 25 Apr 2021 17:45:20 +0000 (13:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:37:38 +0000 (18:37 -0700)
commitd7c3ca2ee0324e0cedef6392ef7c27b2ba46388b
tree5cc1f7c0d6b77cba6133fb867532708ac4ae670e
parent6cc72afeb03f09f5283d25690a4f464d9d8b3d36
bnxt_en: Add support for fw managed link down feature.

In the current code, the driver will not shutdown the link during
IFDOWN if there are still VFs sharing the port.  Newer firmware will
manage the link down decision when the port is shared by VFs, so
we can just call firmware to shutdown the port unconditionally and
let firmware make the final decision.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
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
drivers/net/ethernet/broadcom/bnxt/bnxt.h