aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/act_bpf.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-12-04 23:19:40 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-05 15:33:10 -0500
commit8d829bdb97dc3a0c9c8090b9b168ca46ea99c8d8 (patch)
tree4deaf4dfba72008674fb3718e01699c89b8f8ad8 /net/sched/act_bpf.c
parentbpf: remove type arg from __is_valid_{,xdp_}access (diff)
downloadlinux-dev-8d829bdb97dc3a0c9c8090b9b168ca46ea99c8d8.tar.xz
linux-dev-8d829bdb97dc3a0c9c8090b9b168ca46ea99c8d8.zip
bpf, cls: consolidate prog deletion path
Commit 18cdb37ebf4c ("net: sched: do not use tcf_proto 'tp' argument from call_rcu") removed the last usage of tp from cls_bpf_delete_prog(), so also remove it from the function as argument to not give a wrong impression. tp is illegal to access from this callback, since it could already have been freed. Refactor the deletion code a bit, so that cls_bpf_destroy() can call into the same code for prog deletion as cls_bpf_delete() op, instead of having it unnecessarily duplicated. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_bpf.c')
0 files changed, 0 insertions, 0 deletions