Eric Dumazet
7f5c6d4f66
netfilter: get rid of atomic ops in fast path
...
We currently use a percpu spinlock to 'protect' rule bytes/packets
counters, after various attempts to use RCU instead.
Lately we added a seqlock so that get_counters() can run without
blocking BH or 'writers'. But we really only need the seqcount in it.
Spinlock itself is only locked by the current/owner cpu, so we can
remove it completely.
This cleanups api, using correct 'writer' vs 'reader' semantic.
At replace time, the get_counters() call makes sure all cpus are done
using the old table.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-04 17:04:03 +02:00
..
2011-03-20 15:35:01 +01:00
2011-03-21 20:39:24 -07:00
2011-02-19 19:17:35 -08:00
2011-03-15 20:17:44 +01:00
2011-03-15 20:16:20 +01:00
2010-06-25 14:46:56 +02:00
2010-05-13 15:02:08 +02:00
2011-01-18 18:12:24 +01:00
2011-03-15 13:03:27 -07:00
2011-02-01 16:06:30 +01:00
2011-01-14 15:45:56 +01:00
2010-11-15 19:45:13 +01:00
2010-05-13 15:02:08 +02:00
2008-01-31 19:28:07 -08:00
2011-03-12 15:08:51 -08:00
2008-01-31 19:28:07 -08:00
2011-01-14 15:45:56 +01:00
2010-05-13 15:02:08 +02:00
2008-04-14 11:15:52 +02:00
2011-01-18 18:12:24 +01:00
2011-02-04 14:28:58 -08:00
2010-02-15 18:13:33 +01:00
2010-11-12 17:33:17 +01:00
2009-11-12 02:05:06 -08:00
2010-03-30 22:02:32 +09:00
2010-11-12 17:33:17 +01:00
2011-02-28 18:02:33 +01:00
2010-02-15 17:45:08 +01:00
2010-02-15 17:45:08 +01:00
2010-11-15 19:45:13 +01:00
2010-03-30 22:02:32 +09:00
2010-10-21 08:21:34 -07:00
2011-01-18 18:12:24 +01:00
2011-01-19 19:10:49 +01:00
2010-05-13 15:02:08 +02:00
2011-01-19 16:00:07 +01:00
2010-05-13 15:02:08 +02:00
2011-03-03 21:27:42 -08:00
2011-01-18 16:08:30 +01:00
2009-09-30 16:12:20 -07:00
2011-02-17 11:32:38 +01:00
2011-02-15 21:59:37 +01:00
2011-01-18 15:27:28 +01:00
2010-05-13 15:02:08 +02:00
2011-04-04 17:04:03 +02:00
2011-03-15 20:17:44 +01:00
2011-03-16 18:32:13 +01:00
2010-07-15 17:20:46 +02:00
2010-11-15 13:57:56 +01:00
2010-06-08 16:09:52 +02:00
2010-05-11 18:33:37 +02:00
2010-06-25 14:44:07 +02:00
2011-03-15 13:26:32 +01:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:31:17 +02:00
2011-02-14 17:28:55 +01:00
2011-01-18 06:33:54 +01:00
2010-10-21 10:12:48 +11:00
2010-05-11 18:35:27 +02:00
2011-02-03 00:05:43 +01:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:35:27 +02:00
2010-08-19 17:16:25 -07:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:31:17 +02:00
2011-01-18 06:33:54 +01:00
2011-02-04 14:28:58 -08:00
2011-01-13 10:30:27 +09:00
2011-01-18 06:33:54 +01:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2010-05-11 18:31:17 +02:00
2011-01-18 16:08:30 +01:00
2010-06-08 16:09:52 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-07-23 14:07:47 +02:00
2010-05-11 18:33:37 +02:00
2010-06-11 18:37:08 -07:00
2010-05-11 18:33:37 +02:00
2010-10-15 15:53:27 +02:00
2010-02-10 17:50:47 +01:00
2010-06-09 14:47:40 +02:00
2010-10-21 10:12:48 +11:00
2011-02-01 15:56:00 +01:00
2011-02-17 11:32:38 +01:00
2010-06-08 16:09:52 +02:00
2010-06-01 12:00:41 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2011-03-12 15:08:51 -08:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:35:27 +02:00
2011-03-12 15:08:54 -08:00
2010-05-13 15:16:27 +02:00
2011-02-17 11:32:38 +01:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:33:37 +02:00