]> 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)
commit04054c9ed6fa30d83bb9c6276a7fdabf0f539d8a
tree5cc1f7c0d6b77cba6133fb867532708ac4ae670e
parent892699b16aa249bb502e1dc76e6e3cd413ac65d6
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