Re: [PATCH bpf-next v5 2/5] bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap

2019-02-01 Thread Peter Oskolkov
On Thu, Jan 31, 2019 at 5:47 PM Willem de Bruijn wrote: > > On Thu, Jan 31, 2019 at 5:04 PM Daniel Borkmann wrote: > > > > On 01/31/2019 12:51 AM, Peter Oskolkov wrote: > > > This patch implements BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap > > > BPF helper. It enables BPF programs (specifically,

Re: [PATCH bpf-next v5 2/5] bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap

2019-01-31 Thread Willem de Bruijn
On Thu, Jan 31, 2019 at 5:04 PM Daniel Borkmann wrote: > > On 01/31/2019 12:51 AM, Peter Oskolkov wrote: > > This patch implements BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap > > BPF helper. It enables BPF programs (specifically, BPF_PROG_TYPE_LWT_IN > > and BPF_PROG_TYPE_LWT_XMIT prog types) to a

Re: [PATCH bpf-next v5 2/5] bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap

2019-01-31 Thread Daniel Borkmann
On 01/31/2019 12:51 AM, Peter Oskolkov wrote: > This patch implements BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap > BPF helper. It enables BPF programs (specifically, BPF_PROG_TYPE_LWT_IN > and BPF_PROG_TYPE_LWT_XMIT prog types) to add IP encapsulation headers > to packets (e.g. IP/GRE, GUE, IPIP).

[PATCH bpf-next v5 2/5] bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap

2019-01-30 Thread Peter Oskolkov
This patch implements BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap BPF helper. It enables BPF programs (specifically, BPF_PROG_TYPE_LWT_IN and BPF_PROG_TYPE_LWT_XMIT prog types) to add IP encapsulation headers to packets (e.g. IP/GRE, GUE, IPIP). This is useful when thousands of different short-liv