commit | 49b31e576a0a264872aa06dbc1ce6cd0cb9db278 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Mon Mar 02 12:25:51 2015 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 02 14:51:38 2015 -0500 |
tree | 39ae3283f118009d1a71b4e5b5e0a46b0a907688 | |
parent | 70c836a4d15f12aa50195937083b30a6945c2556 [diff] |
filter: refactor common filter attach code into __sk_attach_prog Both sk_attach_filter() and sk_attach_bpf() are setting up sk_filter, charging skmem and attaching it to the socket after we got the eBPF prog up and ready. Lets refactor that into a common helper. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>