]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Unionize ovs_key_ct_label with a u32 array.
authorJarno Rajahalme <jarno@ovn.org>
Thu, 9 Feb 2017 19:21:55 +0000 (11:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 03:59:34 +0000 (22:59 -0500)
commit170b2d9cedce03ccafacab69f2211006dbffc40d
tree9bbc36a568cbbf89d80051d26a9e6f174d3c46e2
parent1fcb746c66c6640f11dcff294b78b1d9190deb91
openvswitch: Unionize ovs_key_ct_label with a u32 array.

Make the array of labels in struct ovs_key_ct_label an union, adding a
u32 array of the same byte size as the existing u8 array.  It is
faster to loop through the labels 32 bits at the time, which is also
the alignment of netlink attributes.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/openvswitch.h
net/openvswitch/conntrack.c