]> git.baikalelectronics.ru Git - kernel.git/commit
filter: refactor common filter attach code into __sk_attach_prog
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 2 Mar 2015 11:25:51 +0000 (12:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 19:51:38 +0000 (14:51 -0500)
commit83781b608974d56a46908286f7b131fb0d3ae8b1
tree39ae3283f118009d1a71b4e5b5e0a46b0a907688
parent868b6ad1d2d36a09a85f0ebbd29b887ec4be8d98
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>
net/core/filter.c