[Intel-wired-lan] [PATCH S37 01/15] ice: Fix DCB rebuild after reset
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Jan 24 23:17:07 UTC 2020
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Wednesday, January 22, 2020 7:20 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S37 01/15] ice: Fix DCB rebuild after reset
>
> From: Dave Ertman <david.m.ertman at intel.com>
>
> 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 at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 82 ++++++++------------
> drivers/net/ethernet/intel/ice/ice_main.c | 1 +
> 2 files changed, 35 insertions(+), 48 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list