summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/verifier.c
diff options
context:
space:
mode:
authorViet Hoang Tran <hoang.tran@uclouvain.be>2019-04-15 11:54:55 +0200
committerAlexei Starovoitov <ast@kernel.org>2019-04-17 04:24:20 +0200
commit725721a6506eea53bfde81a34e91a06d6162c216 (patch)
treede84ddb9807311eae13b1fe9cf1c6da32eed66c6 /kernel/bpf/verifier.c
parentselftests: bpf: add VRF test cases to lwt_ip_encap test. (diff)
downloadlinux-725721a6506eea53bfde81a34e91a06d6162c216.tar.xz
linux-725721a6506eea53bfde81a34e91a06d6162c216.zip
bpf: allow clearing all sock_ops callback flags
The helper function bpf_sock_ops_cb_flags_set() can be used to both set and clear the sock_ops callback flags. However, its current behavior is not consistent. BPF program may clear a flag if more than one were set, or replace a flag with another one, but cannot clear all flags. This patch also updates the documentation to clarify the ability to clear flags of this helper function. Signed-off-by: Hoang Tran <hoang.tran@uclouvain.be> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/verifier.c')
0 files changed, 0 insertions, 0 deletions