]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ipvs: reorder keys in connection structure
authorJulian Anastasov <ja@ssi.bg>
Thu, 21 Mar 2013 09:58:11 +0000 (11:58 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Apr 2013 22:23:45 +0000 (00:23 +0200)
commit1845ed0bb29fa7864781021e0c8d06af318f358a
tree022aa226f2c66912dcd79c61606d21782e759e7f
parent088339a57d6042a8a19a3d5794594b558cd7b624
ipvs: reorder keys in connection structure

__ip_vs_conn_in_get and ip_vs_conn_out_get are
hot places. Optimize them, so that ports are matched first.
By moving net and fwmark below, on 32-bit arch we can fit
caddr in 32-byte cache line and all addresses in 64-byte
cache line.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_conn.c