include: Convert ethernet mac address declarations to use ETH_ALEN
It's convenient to have ethernet mac addresses use ETH_ALEN to be able to grep for them a bit easier and also to ensure that the addresses are __aligned(2). Add #include <linux/if_ether.h> as necessary. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e216975ad9
commit
574e2af7c0
@@ -34,6 +34,7 @@
|
||||
#define MLX4_QP_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#include <linux/mlx4/device.h>
|
||||
|
||||
@@ -143,7 +144,7 @@ struct mlx4_qp_path {
|
||||
u8 feup;
|
||||
u8 fvl_rx;
|
||||
u8 reserved4[2];
|
||||
u8 dmac[6];
|
||||
u8 dmac[ETH_ALEN];
|
||||
};
|
||||
|
||||
enum { /* fl */
|
||||
@@ -318,7 +319,7 @@ struct mlx4_wqe_datagram_seg {
|
||||
__be32 dqpn;
|
||||
__be32 qkey;
|
||||
__be16 vlan;
|
||||
u8 mac[6];
|
||||
u8 mac[ETH_ALEN];
|
||||
};
|
||||
|
||||
struct mlx4_wqe_lso_seg {
|
||||
|
Reference in New Issue
Block a user