Skip to content
Commit a10e1466 authored by Vitalii Demianets's avatar Vitalii Demianets Committed by David S. Miller
Browse files

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: default avatarVitalii Demianets <vitas@nppfactor.kiev.ua>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca067070
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment