]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
batman-adv: fix header alignment by unrolling batadv_header
authorSimon Wunderlich <sw@simonwunderlich.de>
Mon, 2 Dec 2013 19:38:31 +0000 (20:38 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 28 Dec 2013 11:51:16 +0000 (12:51 +0100)
commita40d9b075c21f06872de3f05cc2eb3d06665e2ff
tree85aefae654246aa4f89e046bb0bca6b5b85b76f6
parent46b76e0b8b5e21fa5a2387d6f72b193514e7f722
batman-adv: fix header alignment by unrolling batadv_header

The size of the batadv_header of 3 is problematic on some architectures
which automatically pad all structures to a 32 bit boundary. To not lose
performance by packing this struct, better embed it into the various
host structures.

Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/distributed-arp-table.c
net/batman-adv/fragmentation.c
net/batman-adv/icmp_socket.c
net/batman-adv/main.c
net/batman-adv/network-coding.c
net/batman-adv/packet.h
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/soft-interface.c