]> git.baikalelectronics.ru Git - kernel.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)
commitc7730cd591c1d625679372b74c9cb84240b836ed
tree85aefae654246aa4f89e046bb0bca6b5b85b76f6
parent8f4b81ed074dd34836ed2db24337ef05cc7d01fc
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