Re: [PATCH bpf-next] bpf: better availability probing for seg6 helpers

2018-07-11 Thread Daniel Borkmann
On 07/10/2018 09:20 PM, Daniel Borkmann wrote: > On 07/10/2018 06:54 PM, Mathieu Xhonneux wrote: >> 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

Re: [PATCH bpf-next] bpf: better availability probing for seg6 helpers

2018-07-10 Thread Daniel Borkmann
On 07/10/2018 06:54 PM, Mathieu Xhonneux wrote: > 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 easi

[PATCH bpf-next] bpf: better availability probing for seg6 helpers

2018-07-10 Thread Mathieu Xhonneux
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: M