]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Mark correctly aligned headers not as __packed
authorSven Eckelmann <sven@narfation.org>
Mon, 5 Nov 2012 20:25:26 +0000 (21:25 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 7 Nov 2012 19:00:17 +0000 (20:00 +0100)
commit91ca3eafb983fc22850c67cc37c936c3d1fca44d
tree052488fe9d8be43336a99837f7d380f083e52437
parentb520584866d46e0529ee01cc503739042542451f
batman-adv: Mark correctly aligned headers not as __packed

Headers which are already perfectly aligned and create a 4 byte boundary
non-ethernet header payload can have the __packed attribute removed. The
__packed attribute doesn't change the appeareance of the packet for these
headers because no extra padding is necessary to align the data members. The
compiler will also create slightly faster code for loads of multi-byte members.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/packet.h