When evaluating the capabilities field, the ICE_AQC_BIT_ROCEV2_LAG and
ICE_AQC_BIT_SRIOV_LAG defines were both not using the BIT operator,
instead simply setting a hex value that set the correct bits.  While
not inaccurate, this method is misleading, and when it is expanded in
the following implementation it becomes even more confusing.

Switch to using the BIT() operator to clarify what is being checked.

Reviewed-by: Przemek Kitszel <przemyslaw.kits...@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktio...@intel.com>
Reviewed-by: Marcin Szycik <marcin.szy...@linux.intel.com>
Signed-off-by: Dave Ertman <david.m.ert...@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_adminq_cmd.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_adminq_cmd.h 
b/drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
index 2eaa4ab8e791..b3298063f1bd 100644
--- a/drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
+++ b/drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
@@ -133,8 +133,8 @@ struct ice_aqc_list_caps_elem {
 #define ICE_AQC_CAPS_TX_SCHED_TOPO_COMP_MODE           0x0085
 #define ICE_AQC_CAPS_NAC_TOPOLOGY                      0x0087
 #define ICE_AQC_CAPS_FW_LAG_SUPPORT                    0x0092
-#define ICE_AQC_BIT_ROCEV2_LAG                         0x01
-#define ICE_AQC_BIT_SRIOV_LAG                          0x02
+#define ICE_AQC_BIT_ROCEV2_LAG                         BIT(0)
+#define ICE_AQC_BIT_SRIOV_LAG                          BIT(1)
 
        u8 major_ver;
        u8 minor_ver;
-- 
2.49.0

Reply via email to