igbvf: use BIT() macro instead of shifts
To prevent signed bitshift issues, and improve code readability, use the BIT() macro. Also make use of GENMASK or the unsigned postfix where this is more appropriate than BIT() Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

vanhempi
12b28b4108
commit
0ed2dbf4f4
@@ -287,8 +287,8 @@ struct igbvf_info {
|
||||
};
|
||||
|
||||
/* hardware capability, feature, and workaround flags */
|
||||
#define IGBVF_FLAG_RX_CSUM_DISABLED (1 << 0)
|
||||
#define IGBVF_FLAG_RX_LB_VLAN_BSWAP (1 << 1)
|
||||
#define IGBVF_FLAG_RX_CSUM_DISABLED BIT(0)
|
||||
#define IGBVF_FLAG_RX_LB_VLAN_BSWAP BIT(1)
|
||||
#define IGBVF_RX_DESC_ADV(R, i) \
|
||||
(&((((R).desc))[i].rx_desc))
|
||||
#define IGBVF_TX_DESC_ADV(R, i) \
|
||||
|
Viittaa uudesa ongelmassa
Block a user