Commit c02e0fd3 authored by Jesse Brandeburg's avatar Jesse Brandeburg Committed by Jeff Kirsher

i40e: use kernel specific defines

Replace uses of I40E_LENGTH_OF_ADDRESS with ETH_ALEN.
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 5e823066
...@@ -77,8 +77,6 @@ ...@@ -77,8 +77,6 @@
struct i40e_hw; struct i40e_hw;
typedef void (*I40E_ADMINQ_CALLBACK)(struct i40e_hw *, struct i40e_aq_desc *); typedef void (*I40E_ADMINQ_CALLBACK)(struct i40e_hw *, struct i40e_aq_desc *);
#define I40E_ETH_LENGTH_OF_ADDRESS 6
/* Data type manipulation macros. */ /* Data type manipulation macros. */
#define I40E_DESC_UNUSED(R) \ #define I40E_DESC_UNUSED(R) \
...@@ -240,9 +238,9 @@ struct i40e_hw_capabilities { ...@@ -240,9 +238,9 @@ struct i40e_hw_capabilities {
struct i40e_mac_info { struct i40e_mac_info {
enum i40e_mac_type type; enum i40e_mac_type type;
u8 addr[I40E_ETH_LENGTH_OF_ADDRESS]; u8 addr[ETH_ALEN];
u8 perm_addr[I40E_ETH_LENGTH_OF_ADDRESS]; u8 perm_addr[ETH_ALEN];
u8 san_addr[I40E_ETH_LENGTH_OF_ADDRESS]; u8 san_addr[ETH_ALEN];
u16 max_fcoeq; u16 max_fcoeq;
}; };
......
...@@ -142,7 +142,7 @@ struct i40e_virtchnl_vsi_resource { ...@@ -142,7 +142,7 @@ struct i40e_virtchnl_vsi_resource {
u16 num_queue_pairs; u16 num_queue_pairs;
enum i40e_vsi_type vsi_type; enum i40e_vsi_type vsi_type;
u16 qset_handle; u16 qset_handle;
u8 default_mac_addr[I40E_ETH_LENGTH_OF_ADDRESS]; u8 default_mac_addr[ETH_ALEN];
}; };
/* VF offload flags */ /* VF offload flags */
#define I40E_VIRTCHNL_VF_OFFLOAD_L2 0x00000001 #define I40E_VIRTCHNL_VF_OFFLOAD_L2 0x00000001
...@@ -265,7 +265,7 @@ struct i40e_virtchnl_queue_select { ...@@ -265,7 +265,7 @@ struct i40e_virtchnl_queue_select {
*/ */
struct i40e_virtchnl_ether_addr { struct i40e_virtchnl_ether_addr {
u8 addr[I40E_ETH_LENGTH_OF_ADDRESS]; u8 addr[ETH_ALEN];
u8 pad[2]; u8 pad[2];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment