netfilter: xt_rateest: Better struct xt_rateest layout
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 8 Jun 2010 12:11:19 +0000 (14:11 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 8 Jun 2010 12:11:19 +0000 (14:11 +0200)
commit339bb99e4a8ba1f8960eed21d50be808b35ad22a
tree077f679c919b00331569622e035a822e94492377
parente12f8e29a8526172b7715881503bae636d60bdd8
netfilter: xt_rateest: Better struct xt_rateest layout

We currently dirty two cache lines in struct xt_rateest, this hurts SMP
performance.

This patch moves lock/bstats/rstats at beginning of structure so that
they share a single cache line.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/xt_rateest.h