Stephen Hemminger 942e4a2bd6 netfilter: revised locking for x_tables
The x_tables are organized with a table structure and a per-cpu copies
of the counters and rules. On older kernels there was a reader/writer 
lock per table which was a performance bottleneck. In 2.6.30-rc, this
was converted to use RCU and the counters/rules which solved the performance
problems for do_table but made replacing rules much slower because of
the necessary RCU grace period.

This version uses a per-cpu set of spinlocks and counters to allow to
table processing to proceed without the cache thrashing of a global
reader lock and keeps the same performance for table updates.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-04-28 22:36:33 -07:00
..
2008-10-29 12:52:50 -07:00
2008-11-25 17:59:27 -08:00
2008-11-25 17:35:18 -08:00
2008-11-25 17:59:27 -08:00
2008-10-29 12:52:50 -07:00
2009-01-31 00:51:49 -08:00
2008-11-25 17:30:50 -08:00
2009-04-14 02:21:41 -07:00
2008-11-25 17:51:01 -08:00
2008-06-11 21:00:38 -07:00
2008-11-25 17:35:18 -08:00
2008-11-25 17:35:18 -08:00
2008-11-25 17:59:52 -08:00