]> git.baikalelectronics.ru Git - 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)
commit4bc6a4616ef9d17d4d17401882010ab6196e7056
tree022aa226f2c66912dcd79c61606d21782e759e7f
parent1bd5b92d75b7a048fe61834f595c8915497831b2
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