Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-25 Thread Daniel Borkmann
On 9/25/20 6:50 PM, Andrii Nakryiko wrote: On Fri, Sep 25, 2020 at 8:52 AM Daniel Borkmann wrote: On 9/25/20 5:42 PM, Daniel Borkmann wrote: On 9/25/20 12:17 AM, Daniel Borkmann wrote: On 9/24/20 10:53 PM, Andrii Nakryiko wrote: On Thu, Sep 24, 2020 at 11:22 AM Daniel Borkmann wrote: Port

Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-25 Thread Andrii Nakryiko
On Fri, Sep 25, 2020 at 8:52 AM Daniel Borkmann wrote: > > On 9/25/20 5:42 PM, Daniel Borkmann wrote: > > On 9/25/20 12:17 AM, Daniel Borkmann wrote: > >> On 9/24/20 10:53 PM, Andrii Nakryiko wrote: > >>> On Thu, Sep 24, 2020 at 11:22 AM Daniel Borkmann > >>> wrote: > > Port of tail_ca

Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-25 Thread Daniel Borkmann
On 9/25/20 5:42 PM, Daniel Borkmann wrote: On 9/25/20 12:17 AM, Daniel Borkmann wrote: On 9/24/20 10:53 PM, Andrii Nakryiko wrote: On Thu, Sep 24, 2020 at 11:22 AM Daniel Borkmann wrote: Port of tail_call_static() helper function from Cilium's BPF code base [0] to libbpf, so others can easil

Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-25 Thread Daniel Borkmann
On 9/25/20 12:17 AM, Daniel Borkmann wrote: On 9/24/20 10:53 PM, Andrii Nakryiko wrote: On Thu, Sep 24, 2020 at 11:22 AM Daniel Borkmann wrote: Port of tail_call_static() helper function from Cilium's BPF code base [0] to libbpf, so others can easily consume it as well. We've been using this

Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-24 Thread Yonghong Song
On 9/24/20 11:21 AM, Daniel Borkmann wrote: Port of tail_call_static() helper function from Cilium's BPF code base [0] to libbpf, so others can easily consume it as well. We've been using this in production code for some time now. The main idea is that we guarantee that the kernel's BPF infras

Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-24 Thread Daniel Borkmann
On 9/24/20 10:53 PM, Andrii Nakryiko wrote: On Thu, Sep 24, 2020 at 11:22 AM Daniel Borkmann wrote: Port of tail_call_static() helper function from Cilium's BPF code base [0] to libbpf, so others can easily consume it as well. We've been using this in production code for some time now. The mai

Re: [PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-24 Thread Andrii Nakryiko
On Thu, Sep 24, 2020 at 11:22 AM Daniel Borkmann wrote: > > Port of tail_call_static() helper function from Cilium's BPF code base [0] > to libbpf, so others can easily consume it as well. We've been using this > in production code for some time now. The main idea is that we guarantee > that the k

[PATCH bpf-next 4/6] bpf, libbpf: add bpf_tail_call_static helper for bpf programs

2020-09-24 Thread Daniel Borkmann
Port of tail_call_static() helper function from Cilium's BPF code base [0] to libbpf, so others can easily consume it as well. We've been using this in production code for some time now. The main idea is that we guarantee that the kernel's BPF infrastructure and JIT (here: x86_64) can patch the JIT