OSDN Git Service

bnxt_en: Clear DCB settings after firmware reset.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 8 Mar 2020 22:45:50 +0000 (18:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2020 04:54:46 +0000 (21:54 -0700)
commit843d699d79a1ca7fc5d61bf4cf7a85b5879a8ff6
tree080b81b4915fe66975f58df486755774f968e9b2
parent389a877a3b20c1bc058143dfc4d95fd754fb0240
bnxt_en: Clear DCB settings after firmware reset.

The driver stores a copy of the DCB settings that have been applied to
the firmware.  After firmware reset, the firmware settings are gone and
will revert back to default.  Clear the driver's copy so that if there
is a DCBNL request to get the settings, the driver will retrieve the
current settings from the firmware.  lldpad keeps the DCB settings in
userspace and will re-apply the settings if it is running.

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