commit | 61d769807f273fda962866f3d4c677cda9974d3c | [log] [tgz] |
---|---|---|
author | Mathieu Xhonneux <m.xhonneux@gmail.com> | Tue Jul 10 16:54:02 2018 +0000 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Wed Jul 11 22:29:18 2018 +0200 |
tree | 71f5166effba9c75f9adb54939cf48d4633fbdff | |
parent | 59ee4129a279070d8e2f9dc1660330f6593c7808 [diff] |
bpf: fix availability probing for seg6 helpers bpf_lwt_seg6_* helpers require CONFIG_IPV6_SEG6_BPF, and currently return -EOPNOTSUPP to indicate unavailability. This patch forces the BPF verifier to reject programs using these helpers when !CONFIG_IPV6_SEG6_BPF, allowing users to more easily probe if they are available or not. Signed-off-by: Mathieu Xhonneux <m.xhonneux@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>