Re: Error when loading BPF_CGROUP_INET_EGRESS program with bpftool

2019-10-19 Thread Fejes Ferenc
Sorry for the late reply. I have some time to try it again. I downloaded a fresh Ubuntu 19.10 image, which have bpftool included from the linux-tools-generic package. Then tried to load a program with 0 or 1 return code: both works. After that I tried to load the original program, with return code

Re: Error when loading BPF_CGROUP_INET_EGRESS program with bpftool

2019-08-13 Thread Andrii Nakryiko
On Mon, Aug 12, 2019 at 1:48 PM Fejes Ferenc wrote: > > Thanks for the answer, I really appreciate it. I tried omitting Please reply inline, no top posting on kernel mailing lists. > "cgroup/skb" to let libbpf guess the attach type, but I got the same > error. Really interesting, because I got t

Re: Error when loading BPF_CGROUP_INET_EGRESS program with bpftool

2019-08-12 Thread Fejes Ferenc
Thanks for the answer, I really appreciate it. I tried omitting "cgroup/skb" to let libbpf guess the attach type, but I got the same error. Really interesting, because I got the error > libbpf: failed to load program 'cgroup_skb/egress' wich is weird because it shows that libbpf guess the program t

Re: Error when loading BPF_CGROUP_INET_EGRESS program with bpftool

2019-08-12 Thread Andrii Nakryiko
On Mon, Aug 12, 2019 at 1:59 AM Fejes Ferenc wrote: > > Greetings! > > I found a strange error when I tried to load a BPF_CGROUP_INET_EGRESS > prog with bpftool. Loading the same program from C code with > bpf_prog_load_xattr works without problem. > > The error message I got: > bpftool prog loada

Error when loading BPF_CGROUP_INET_EGRESS program with bpftool

2019-08-12 Thread Fejes Ferenc
Greetings! I found a strange error when I tried to load a BPF_CGROUP_INET_EGRESS prog with bpftool. Loading the same program from C code with bpf_prog_load_xattr works without problem. The error message I got: bpftool prog loadall hbm_kern.o /sys/fs/bpf/hbm type cgroup/skb libbpf: load bpf progra