[v2,04/20] net/ice/base: fix incorrect defines for DCBx
Checks
Commit Message
In all cases but one, CEE mode is defined as 0x01 and IEEE
mode is defined as 0x02. in past these values were swapped.
This is causing the DCB information sent from the FW agent to
be parsed with incorrect structures and resulting in incorrect values.
Change the defines to match what they are in the rest of the kernel.
Fixes: 97e32e8d4870 ("net/ice/base: complete pending LLDP MIB")
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Signed-off-by: Qiming Yang <qiming.yang@intel.com>
---
drivers/net/ice/base/ice_adminq_cmd.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -2002,8 +2002,8 @@ struct ice_aqc_lldp_get_mib {
#define ICE_AQ_LLDP_DCBX_S 6
#define ICE_AQ_LLDP_DCBX_M (0x3 << ICE_AQ_LLDP_DCBX_S)
#define ICE_AQ_LLDP_DCBX_NA 0
-#define ICE_AQ_LLDP_DCBX_IEEE 1
-#define ICE_AQ_LLDP_DCBX_CEE 2
+#define ICE_AQ_LLDP_DCBX_CEE 1
+#define ICE_AQ_LLDP_DCBX_IEEE 2
/* The following bytes are reserved for the Get LLDP MIB command (0x0A00)
* and in the LLDP MIB Change Event (0x0A01). They are valid for the
* Get LLDP MIB (0x0A00) response only.