Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit aea0bb4f authored by Thomas Graf's avatar Thomas Graf Committed by Jesse Gross
Browse files

openvswitch: Pad OVS_PACKET_ATTR_PACKET if linear copy was performed



While the zerocopy method is correctly omitted if user space
does not support unaligned Netlink messages. The attribute is
still not padded correctly as skb_zerocopy() will not ensure
padding and the attribute size is no longer pre calculated
though nla_reserve() which ensured padding previously.

This patch applies appropriate padding if a linear data copy
was performed in skb_zerocopy().

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Acked-by: default avatarZoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: default avatarJesse Gross <jesse@nicira.com>
parent bce3ea81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment