Alignment of dev_addr[] field in the struct net_device
Subsystems (2)
Increase of MAX_ADDR_LEN to 8 broke that...
Ivan.
include/linux/netdevice.h +2 -2
@@ -298,8 +298,8 @@ struct net_device/* Interface address info. */ unsigned char broadcast[MAX_ADDR_LEN ];/* hw bcast add */ -unsigned char pad;/* make dev_addr aligned to 8 bytes */ -unsigned char dev_addr[MAX_ADDR_LEN ];/* hw address */ + unsigned char dev_addr[MAX_ADDR_LEN] __attribute__((aligned(8))); +/* hw address, aligned to 8 bytes */ unsigned char addr_len;/* hardware address length */ struct dev_mc_list *mc_list;/* Multicast mac addresses */
Quoted 1 line · Ivan Kokshaysky
Increase of
MAX_ADDR_LENto 8 broke that...
Thank you for this fix.
Later,
David S. Miller
[email protected]