Thread (16 messages) flat view 16 messages, 3 authors, 2019-02-28

Re: [PATCH bpf-next 4/5] samples: bpf: use libbpf where easy

From: Jakub Kicinski <hidden>
Date: 2019-02-28 00:21:51
Also in: bpf

On Wed, 27 Feb 2019 16:05:45 -0800, Andrii Nakryiko wrote:
quoted
        if (object) {
-               assert(!load_bpf_file((char *)object));
-               return prog_fd[0];
+               assert(!bpf_prog_load(object, 0, &obj, &prog_fd));  
Here and in few more places below: is it possible to specify correct
bpf_prog_type instead of 0?
Some of them yes, some of them no.  There are objects with multiple
program types IIRC.  This program type argument is only used for
checking if kernel versions are needed, and they are provided in
samples so it doesn't matter.

I'll try to add where possible.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help