ice: Fix state bits on LLDP mode switch
authorDave Ertman <david.m.ertman@intel.com>
Sat, 21 Nov 2020 00:38:35 +0000 (16:38 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 22 Feb 2021 19:28:57 +0000 (11:28 -0800)
commit0d4907f65dc8fc5e897ad19956fca1acb3b33bc8
tree13c2a0e753d3e7536fd4a833e68d54ad342b1ead
parenta6aa7c8f998f4afddd73410aa043dad38162ce9e
ice: Fix state bits on LLDP mode switch

DCBX_CAP bits were not being adjusted when switching
between SW and FW controlled LLDP.

Adjust bits to correctly indicate which mode the
LLDP logic is in.

Fixes: b94b013eb626 ("ice: Implement DCBNL support")
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
drivers/net/ethernet/intel/ice/ice_ethtool.c