Daniel Borkmann
fbc907f0b1
net: filter: move filter accounting to filter core
...
This patch basically does two things, i) removes the extern keyword
from the include/linux/filter.h file to be more consistent with the
rest of Joe's changes, and ii) moves filter accounting into the filter
core framework.
Filter accounting mainly done through sk_filter_{un,}charge() take
care of the case when sockets are being cloned through sk_clone_lock()
so that removal of the filter on one socket won't result in eviction
as it's still referenced by the other.
These functions actually belong to net/core/filter.c and not
include/net/sock.h as we want to keep all that in a central place.
It's also not in fast-path so uninlining them is fine and even allows
us to get rd of sk_filter_release_rcu()'s EXPORT_SYMBOL and a forward
declaration.
Joint work with Alexei Starovoitov.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com >
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com >
Cc: Pavel Emelyanov <xemul@parallels.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2014-03-31 00:45:09 -04:00
..
2013-09-11 12:34:13 -07:00
2014-03-10 14:57:33 +02:00
2013-09-23 16:29:41 -04:00
2013-12-06 12:37:56 -05:00
2013-04-08 17:16:57 -04:00
2014-03-08 12:35:17 +01:00
2014-03-17 15:06:24 -04:00
2014-03-11 00:40:59 +01:00
2014-02-17 00:16:56 -05:00
2014-02-12 19:23:32 -05:00
2014-03-06 17:21:38 -05:00
2014-02-12 19:23:32 -05:00
2014-02-27 17:13:20 -05:00
2014-03-14 22:15:25 -04:00
2013-07-31 17:50:01 -07:00
2013-08-10 01:16:44 -07:00
2013-07-27 22:14:06 -07:00
2013-12-28 17:02:46 -05:00
2013-07-31 17:50:02 -07:00
2014-01-13 17:39:11 +01:00
2014-03-19 21:29:56 +01:00
2014-03-24 00:18:44 -04:00
2013-12-10 17:56:54 -05:00
2014-01-03 23:41:41 +01:00
2014-01-21 23:17:20 -08:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:50 -08:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00
2013-12-10 21:50:00 -05:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:49 -08:00
2014-02-09 17:32:49 -08:00
2013-01-09 23:59:53 -08:00
2014-03-27 15:09:07 -04:00
2013-11-07 19:28:58 -05:00
2014-02-04 20:19:51 -08:00
2013-09-20 14:49:33 -04:00
2013-03-26 12:32:13 -04:00
2013-10-03 15:36:37 -04:00
2014-03-12 15:31:18 -04:00
2014-02-12 07:02:11 +01:00
2013-09-20 14:49:33 -04:00
2013-09-20 14:49:33 -04:00
2014-01-06 15:51:53 -08:00
2014-01-06 20:28:34 -05:00
2013-01-27 22:46:33 -05:00
2013-09-20 14:49:33 -04:00
2014-02-06 09:34:58 +01:00
2014-03-14 22:15:26 -04:00
2014-03-14 22:15:26 -04:00
2014-03-28 16:54:50 -04:00
2013-09-21 14:01:38 -04:00
2013-10-19 19:45:34 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-05-28 23:49:07 -07:00
2013-10-23 17:01:41 -04:00
2013-10-08 23:19:24 -04:00
2013-10-19 19:45:35 -04:00
2014-01-17 17:56:33 -08:00
2013-12-28 17:03:20 -05:00
2013-10-09 13:04:03 -04:00
2014-03-27 15:09:07 -04:00
2014-02-26 15:51:01 -05:00
2014-01-04 20:10:24 -05:00
2013-09-21 14:01:38 -04:00
2014-02-20 13:13:50 -05:00
2013-11-11 00:19:35 -05:00
2014-03-06 15:19:43 -05:00
2014-01-21 16:59:19 -08:00
2014-02-09 17:32:50 -08:00
2013-09-21 14:01:39 -04:00
2013-09-21 14:01:38 -04:00
2013-04-29 15:41:56 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-01 22:22:43 -05:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-03 20:56:48 -05:00
2014-03-19 21:29:57 +01:00
2014-03-14 22:15:26 -04:00
2013-12-06 12:37:56 -05:00
2013-09-04 14:53:20 -04:00
2013-10-01 17:06:14 -04:00
2013-09-21 14:01:39 -04:00
2014-01-16 11:31:58 -08:00
2014-02-28 17:05:22 -05:00
2013-09-21 14:01:39 -04:00
2014-01-25 11:17:34 -08:00
2013-09-21 14:01:39 -04:00
2014-01-03 23:41:42 +01:00
2013-09-21 14:01:39 -04:00
2014-03-14 22:15:26 -04:00
2013-09-21 14:01:39 -04:00
2014-01-19 19:53:18 -08:00
2014-01-13 11:50:15 -08:00
2013-12-09 19:54:47 -05:00
2014-01-21 18:05:04 -08:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2014-01-21 23:17:20 -08:00
2014-02-25 17:29:25 +01:00
2013-10-10 00:08:07 -04:00
2013-09-23 01:51:08 -04:00
2014-03-24 12:45:01 -04:00
2014-02-18 18:15:42 -05:00
2014-01-13 11:50:14 -08:00
2013-09-23 01:51:09 -04:00
2013-10-01 17:06:14 -04:00
2014-03-31 00:45:09 -04:00
2013-12-19 18:51:20 -05:00
2013-09-23 01:51:09 -04:00
2013-10-21 18:43:02 -04:00
2014-03-25 20:29:20 -04:00
2014-01-19 19:53:18 -08:00
2013-11-07 02:14:33 -05:00
2013-09-23 16:29:40 -04:00
2013-07-27 22:14:06 -07:00
2014-01-21 18:05:04 -08:00
2013-09-23 16:29:40 -04:00
2013-09-23 16:29:41 -04:00
2014-02-17 16:42:39 -05:00
2013-09-23 16:29:41 -04:00
2014-03-18 14:09:07 -04:00