]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix DCB rebuild after reset
authorDave Ertman <david.m.ertman@intel.com>
Thu, 6 Feb 2020 09:19:59 +0000 (01:19 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 12 Feb 2020 19:48:10 +0000 (11:48 -0800)
commit79c5c7e08c16eb960e312501ab73270b38d2e724
tree9375eed346604c7a8c02504a1e3ca2e9806abde8
parent7c9fc9e347f45a073d17b9afd580c56d9193abb2
ice: Fix DCB rebuild after reset

The function ice_dcb_rebuild had some logic
flaws in it, and also didn't differentiate
between FW and SW modes needs.

For FW flow, the willing setting was being
forced to OFF and left that way.  Unwilling
in DCB FW mode is not a supported model.

Leave the config alone and use the return value
from the set command to determine if setting the
config was successful.

The SW DCB flow does not need to need to register
for MIB change events (as they are not used in
SW mode).

Use !is_sw_lldp checks to only perform FW specific
task while in FW mode.

Also adding a reapplication of the current DCB
config after a link event.  Some NVMs are not
maintaining their DCB configs across link events.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c
drivers/net/ethernet/intel/ice/ice_main.c