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)
commitd5ca99054f8e25384390d41c0123d930eed510b6
tree5cc1f7c0d6b77cba6133fb867532708ac4ae670e
parentb0d28207ced88b3909547d8299f679353a87fd35
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