Re: [PATCH bpf-next v7 3/6] bpf: Add IPv6 Segment Routing helpers

2018-06-05 Thread Mathieu Xhonneux
2018-05-30 13:00 GMT+02:00 Daniel Borkmann : >> Instead of doing this inside the helper you can reject the program already >> in the lwt_*_func_proto() by returning NULL when !CONFIG_IPV6_SEG6_BPF. That >> way programs get rejected at verification time instead of runtime, so the >> user can probe a

Re: [PATCH bpf-next v7 3/6] bpf: Add IPv6 Segment Routing helpers

2018-05-30 Thread Daniel Borkmann
On 05/24/2018 12:18 PM, Daniel Borkmann wrote: > On 05/20/2018 03:58 PM, Mathieu Xhonneux wrote: >> The BPF seg6local hook should be powerful enough to enable users to >> implement most of the use-cases one could think of. After some thinking, >> we figured out that the following actions should be

Re: [PATCH bpf-next v7 3/6] bpf: Add IPv6 Segment Routing helpers

2018-05-24 Thread Daniel Borkmann
On 05/20/2018 03:58 PM, Mathieu Xhonneux wrote: > The BPF seg6local hook should be powerful enough to enable users to > implement most of the use-cases one could think of. After some thinking, > we figured out that the following actions should be possible on a SRv6 > packet, requiring 3 specific he

[PATCH bpf-next v7 3/6] bpf: Add IPv6 Segment Routing helpers

2018-05-20 Thread Mathieu Xhonneux
The BPF seg6local hook should be powerful enough to enable users to implement most of the use-cases one could think of. After some thinking, we figured out that the following actions should be possible on a SRv6 packet, requiring 3 specific helpers : - bpf_lwt_seg6_store_bytes: Modify non-sensi