]> git.baikalelectronics.ru Git - kernel.git/commit
bonding,llc: Fix structure sizeof incompatibility for some PDUs
authorVitalii Demianets <vitas@nppfactor.kiev.ua>
Thu, 12 May 2011 23:04:29 +0000 (23:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2011 19:13:24 +0000 (15:13 -0400)
commita53284654f4bfbd4899a987dd8798c8a1bf1c6af
treebf5ad736713e1fcb80fadb05825184b44d50c87e
parent779bb5fa7021bf74135899ed0d43c0ae3f67fe61
bonding,llc: Fix structure sizeof incompatibility for some PDUs

With some combinations of arch/compiler (e.g. arm-linux-gcc) the sizeof
operator on structure returns value greater than expected. In cases when the
structure is used for mapping PDU fields it may lead to unexpected results
(such as holes and alignment problems in skb data). __packed prevents this
undesired behavior.

Signed-off-by: Vitalii Demianets <vitas@nppfactor.kiev.ua>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.h
include/net/llc_pdu.h