]> git.baikalelectronics.ru Git - kernel.git/commit
net: ppp: use sk_unattached_filter api
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 28 Mar 2014 17:58:23 +0000 (18:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Mar 2014 04:45:09 +0000 (00:45 -0400)
commit04dc1e52881b3d8ef0112fb3e4833ded95f4c777
tree768ccdcbc54ce05bcae257a0600f350cd0b1c5c5
parentf7e5b1ec0345cd1f63491fbf2a9d5fc31db0a3db
net: ppp: use sk_unattached_filter api

For the ppp driver, there are currently two open-coded BPF filters in use,
that is, pass_filter and active_filter. Migrate both to make proper use
of sk_unattached_filter_{create,destroy} API so that the actual BPF code
is decoupled from direct access, and filters can be jited as a side-effect
by the internal filter compiler.

Joint work with Alexei Starovoitov.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linux-ppp@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c