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 09:32:12 +00:00
2011-03-27 23:34:59 -07:00
2011-03-22 11:33:55 -07:00
2011-03-23 10:42:00 +01:00
2011-03-18 23:38:50 -07:00
2011-03-29 12:09:30 -07:00
2011-03-23 12:24:23 -07:00
2011-03-26 15:58:50 -04:00
2011-03-25 17:41:20 +02:00
2011-04-04 17:04:03 +02:00
2011-03-26 14:15:06 +00:00
2011-03-19 22:27:06 -07:00
2011-03-24 13:52:42 -04:00
2011-03-30 02:35:08 -07:00
2011-03-21 22:59:08 -04:00
2011-03-30 16:53:38 -07:00
2011-03-22 17:43:59 -07:00
2011-03-23 19:47:19 -07:00
2011-03-23 19:47:06 -07:00
2011-03-22 17:44:00 -07:00
2011-03-22 17:44:10 -07:00
2011-03-22 17:44:10 -07:00
2011-03-22 17:44:10 -07:00
2011-03-30 17:14:33 -07:00
2011-03-21 22:59:08 -04:00
2011-03-22 17:44:15 -07:00
2011-03-23 19:47:02 -07:00
2011-03-22 19:25:05 -07:00
2011-03-21 12:13:10 -04:00
2011-03-23 22:16:41 +01:00
2011-03-24 13:54:30 +00:00
2011-03-21 10:14:27 +01:00
2011-03-22 17:44:11 -07:00
2011-03-27 23:35:24 -07:00
2011-03-23 19:46:17 -07:00
2011-03-21 10:05:22 -07:00
2011-03-28 15:31:05 -07:00
2011-03-22 08:35:35 +01:00
2011-03-22 17:44:05 -07:00
2011-03-17 14:31:46 +01:00
2011-03-20 14:50:53 +01:00
2011-03-18 15:14:45 -07:00
2011-03-28 06:05:21 -04:00
2011-03-30 00:35:34 +02:00
2011-03-23 19:47:08 -07:00
2011-03-30 00:37:41 +02:00
2011-03-29 14:48:19 +02:00
2011-03-20 21:13:43 -04:00
2011-03-20 20:08:48 -04:00
2011-03-24 08:36:10 +01:00
2011-03-22 16:17:32 -07:00
2011-03-22 04:53:54 -03:00
2011-03-22 17:44:14 -07:00
2011-03-18 16:54:31 +00:00
2011-03-22 17:44:01 -07:00
2011-03-17 13:08:30 -03:00
2011-03-22 17:43:59 -07:00
2011-03-25 21:00:29 -07:00
2011-03-18 22:33:38 -07:00
2011-03-22 04:53:56 -03:00
2011-03-23 19:46:25 -07:00
2011-03-22 17:44:03 -07:00
2011-03-24 17:49:37 -07:00
2011-03-18 09:04:20 -04:00
2011-04-02 22:48:47 -07:00
2011-03-24 17:03:14 -04:00
2011-03-23 15:29:04 -04:00
2011-03-27 17:48:07 +02:00
2011-03-24 17:03:14 -04:00
2011-03-23 14:55:56 -06:00
2011-03-22 04:53:46 -03:00
2011-03-23 19:46:28 -07:00
2011-03-22 17:44:03 -07:00
2011-03-24 10:16:26 -07:00
2011-03-23 10:42:08 +01:00
2011-03-21 09:40:43 -07:00
2011-03-21 09:38:02 -07:00
2011-03-23 16:07:22 +01:00
2011-03-23 19:46:57 -07:00
2011-03-23 22:16:41 +01:00
2011-03-23 19:46:37 -07:00
2011-03-22 17:44:00 -07:00
2011-03-24 21:16:31 -04:00
2011-03-23 19:46:18 -07:00
2011-03-23 19:46:23 -07:00
2011-03-23 19:46:41 -07:00
2011-03-23 19:46:43 -07:00
2011-03-22 17:44:03 -07:00
2011-03-25 17:59:38 -07:00
2011-03-23 19:47:02 -07:00
2011-03-22 17:44:15 -07:00
2011-03-29 23:34:08 -07:00
2011-03-22 20:48:04 +02:00
2011-03-22 17:16:34 +09:00
2011-03-23 07:48:42 -07:00
2011-03-28 06:05:24 -04:00
2011-03-22 15:47:22 +09:00
2011-03-24 10:16:26 -07:00
2011-03-21 00:40:29 -04:00
2011-03-23 22:16:41 +01:00
2011-03-22 16:17:32 -07:00
2011-03-22 17:44:09 -07:00
2011-03-23 19:47:03 -07:00
2011-03-22 04:53:37 -03:00
2011-03-22 04:53:33 -03:00
2011-03-22 04:54:51 -03:00
2011-03-28 12:53:29 +01:00
2011-03-22 17:44:05 -07:00
2011-03-24 21:17:51 -04:00
2011-03-22 17:44:17 -07:00