Files
kernel_arpi/include/linux
Daniel Borkmann e62d2df084 net: ptp: use sk_unattached_filter_create() for BPF
This patch migrates an open-coded sk_run_filter() implementation with
proper use of the BPF API, that is, sk_unattached_filter_create(). This
migration is needed, as we will be internally transforming the filter
to a different representation, and therefore needs to be decoupled.

It is okay to do so as skb_timestamping_init() is called during
initialization of the network stack in core initcall via sock_init().
This would effectively also allow for PTP filters to be jit compiled if
bpf_jit_enable is set.

For better readability, there are also some newlines introduced, also
ptp_classify.h is only in kernel space.

Joint work with Alexei Starovoitov.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Cc: Richard Cochran <richard.cochran@omicron.at>
Cc: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-31 00:45:09 -04:00
..
2014-03-28 16:29:35 -04:00
2014-01-24 22:39:54 +01:00
2014-02-13 10:08:52 +05:30
2014-03-10 11:44:42 -04:00
2014-03-10 11:44:42 -04:00
2014-03-10 17:26:19 -07:00
2014-03-04 07:55:47 -08:00
2014-01-26 22:48:35 +01:00
2014-02-25 07:37:52 -08:00
2014-01-25 08:55:09 +01:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2014-01-25 03:14:05 -05:00
2014-01-27 19:27:53 -05:00
2014-01-22 19:36:57 +01:00
2014-01-28 13:20:09 -08:00
2014-01-27 21:02:39 -08:00
2014-02-14 13:39:29 -08:00
2014-01-30 16:56:55 -08:00