]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Pack struct sw_flow_key.
authorJarno Rajahalme <jarno@ovn.org>
Thu, 9 Feb 2017 19:22:01 +0000 (11:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 03:59:34 +0000 (22:59 -0500)
commitba8b60ca3517ecf1e97866ed88e9354f8f8cc626
treee1a5001b3df43bc608a143fc16c6a7f2ff039807
parenta0d83751972efb3a7f273edaf9c4ecd9fc6dddae
openvswitch: Pack struct sw_flow_key.

struct sw_flow_key has two 16-bit holes. Move the most matched
conntrack match fields there.  In some typical cases this reduces the
size of the key that needs to be hashed into half and into one cache
line.

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>
net/openvswitch/conntrack.c
net/openvswitch/conntrack.h
net/openvswitch/flow.h
net/openvswitch/flow_netlink.c