Skip to content

Commit

Permalink
i40e: use BIT macro to specify the cloud filter field flags
Browse files Browse the repository at this point in the history
The macros used to specify the cloud filter fields are intended to be
individual bits. Declare them using the BIT() macro to make their
intention a little more clear.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Jacob Keller authored and Jeff Kirsher committed Sep 11, 2019
1 parent 22afe2c commit 846fcc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/net/ethernet/intel/i40e/i40e.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ struct i40e_fdir_filter {
u32 fd_id;
};

#define I40E_CLOUD_FIELD_OMAC 0x01
#define I40E_CLOUD_FIELD_IMAC 0x02
#define I40E_CLOUD_FIELD_IVLAN 0x04
#define I40E_CLOUD_FIELD_TEN_ID 0x08
#define I40E_CLOUD_FIELD_IIP 0x10
#define I40E_CLOUD_FIELD_OMAC BIT(0)
#define I40E_CLOUD_FIELD_IMAC BIT(1)
#define I40E_CLOUD_FIELD_IVLAN BIT(2)
#define I40E_CLOUD_FIELD_TEN_ID BIT(3)
#define I40E_CLOUD_FIELD_IIP BIT(4)

#define I40E_CLOUD_FILTER_FLAGS_OMAC I40E_CLOUD_FIELD_OMAC
#define I40E_CLOUD_FILTER_FLAGS_IMAC I40E_CLOUD_FIELD_IMAC
Expand Down

0 comments on commit 846fcc7

Please sign in to comment.