diff options
Diffstat (limited to 'include/net/bonding.h')
| -rw-r--r-- | include/net/bonding.h | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/include/net/bonding.h b/include/net/bonding.h index 791800ddd6d9..6360c259da6d 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -34,6 +34,9 @@  #define BOND_DEFAULT_MIIMON	100 +#ifndef __long_aligned +#define __long_aligned __attribute__((aligned((sizeof(long))))) +#endif  /*   * Less bad way to call ioctl from within the kernel; this needs to be   * done some other way to get the call out of interrupt context. @@ -138,7 +141,9 @@ struct bond_params {  	struct reciprocal_value reciprocal_packets_per_slave;  	u16 ad_actor_sys_prio;  	u16 ad_user_port_key; -	u8 ad_actor_system[ETH_ALEN]; + +	/* 2 bytes of padding : see ether_addr_equal_64bits() */ +	u8 ad_actor_system[ETH_ALEN + 2];  };  struct bond_parm_tbl { |