Re: [PATCH bpf-next 00/16] Add libbpf full support for BPF-to-BPF calls

2020-08-21 Thread Andrii Nakryiko
On Fri, Aug 21, 2020 at 4:00 PM Alexei Starovoitov wrote: > > On Thu, Aug 20, 2020 at 04:12:34PM -0700, Andrii Nakryiko wrote: > > Currently, libbpf supports a limited form of BPF-to-BPF subprogram calls. > > The > > restriction is that entry-point BPF program should use *all* of defined > > sub-

Re: [PATCH bpf-next 00/16] Add libbpf full support for BPF-to-BPF calls

2020-08-21 Thread Alexei Starovoitov
On Thu, Aug 20, 2020 at 04:12:34PM -0700, Andrii Nakryiko wrote: > Currently, libbpf supports a limited form of BPF-to-BPF subprogram calls. The > restriction is that entry-point BPF program should use *all* of defined > sub-programs in BPF .o file. If any of the subprograms is not used, such > ent

[PATCH bpf-next 00/16] Add libbpf full support for BPF-to-BPF calls

2020-08-20 Thread Andrii Nakryiko
Currently, libbpf supports a limited form of BPF-to-BPF subprogram calls. The restriction is that entry-point BPF program should use *all* of defined sub-programs in BPF .o file. If any of the subprograms is not used, such entry-point BPF program will be rejected by verifier as containing unreachab