Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Andrii Nakryiko
On Thu, Oct 29, 2020 at 4:38 AM Jesper Dangaard Brouer wrote: > > On Wed, 28 Oct 2020 19:50:51 -0700 > Andrii Nakryiko wrote: > > > On Wed, Oct 28, 2020 at 7:34 PM Stephen Hemminger > > wrote: > > > > > > On Wed, 28 Oct 2020 19:27:20 -0700 > > > Andrii Nakryiko wrote: > > > > > > > On Wed, Oct

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Jesper Dangaard Brouer
On Wed, 28 Oct 2020 19:50:51 -0700 Andrii Nakryiko wrote: > On Wed, Oct 28, 2020 at 7:34 PM Stephen Hemminger > wrote: > > > > On Wed, 28 Oct 2020 19:27:20 -0700 > > Andrii Nakryiko wrote: > > > > > On Wed, Oct 28, 2020 at 7:06 PM Hangbin Liu wrote: > > > > > > > > On Wed, Oct 28, 2020 at

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Toke Høiland-Jørgensen
Hangbin Liu writes: > On Wed, Oct 28, 2020 at 09:00:41PM -0600, David Ahern wrote: >> >> nope. you need to be able to handle this. Ubuntu 20.10 was just >> >> released, and it has a version of libbpf. If you are going to integrate >> >> libbpf into other packages like iproute2, it needs to just w

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Hangbin Liu
On Wed, Oct 28, 2020 at 09:00:41PM -0600, David Ahern wrote: > >> nope. you need to be able to handle this. Ubuntu 20.10 was just > >> released, and it has a version of libbpf. If you are going to integrate > >> libbpf into other packages like iproute2, it needs to just work with > >> that version.

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Hangbin Liu
On Wed, Oct 28, 2020 at 09:00:41PM -0600, David Ahern wrote: > >>> You need to update libbpf to latest version. > >> > >> nope. you need to be able to handle this. Ubuntu 20.10 was just > >> released, and it has a version of libbpf. If you are going to integrate > >> libbpf into other packages like

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Hangbin Liu
On Wed, Oct 28, 2020 at 08:20:55PM -0600, David Ahern wrote: > >> root@u2010-sfo3:~/iproute2.git# make -j 4 > >> ... > >> /usr/bin/ld: ../lib/libutil.a(bpf_libbpf.o): in function `load_bpf_object': > >> bpf_libbpf.c:(.text+0x3cb): undefined reference to > >> `bpf_program__section_name' > >> /usr/bi

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread David Ahern
On 10/28/20 8:45 PM, Hangbin Liu wrote: > On Wed, Oct 28, 2020 at 08:20:55PM -0600, David Ahern wrote: root@u2010-sfo3:~/iproute2.git# make -j 4 ... /usr/bin/ld: ../lib/libutil.a(bpf_libbpf.o): in function `load_bpf_object': bpf_libbpf.c:(.text+0x3cb): undefined reference to >>>

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Andrii Nakryiko
On Wed, Oct 28, 2020 at 7:34 PM Stephen Hemminger wrote: > > On Wed, 28 Oct 2020 19:27:20 -0700 > Andrii Nakryiko wrote: > > > On Wed, Oct 28, 2020 at 7:06 PM Hangbin Liu wrote: > > > > > > On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > > > > fails to compile on Ubuntu 20.10: > >

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-29 Thread Andrii Nakryiko
On Wed, Oct 28, 2020 at 7:33 PM David Ahern wrote: > > On 10/28/20 8:27 PM, Andrii Nakryiko wrote: > > On Wed, Oct 28, 2020 at 7:06 PM Hangbin Liu wrote: > >> > >> On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > >>> fails to compile on Ubuntu 20.10: > >>> > >>> root@u2010-sfo3:~/ip

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread Stephen Hemminger
On Wed, 28 Oct 2020 19:27:20 -0700 Andrii Nakryiko wrote: > On Wed, Oct 28, 2020 at 7:06 PM Hangbin Liu wrote: > > > > On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > > > fails to compile on Ubuntu 20.10: > > > > > > root@u2010-sfo3:~/iproute2.git# ./configure > > > TC scheduler

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread David Ahern
On 10/28/20 8:27 PM, Andrii Nakryiko wrote: > On Wed, Oct 28, 2020 at 7:06 PM Hangbin Liu wrote: >> >> On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: >>> fails to compile on Ubuntu 20.10: >>> >>> root@u2010-sfo3:~/iproute2.git# ./configure >>> TC schedulers >>> ATM yes >>> IPT us

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread Stephen Hemminger
On Thu, 29 Oct 2020 10:06:37 +0800 Hangbin Liu wrote: > On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > > fails to compile on Ubuntu 20.10: > > > > root@u2010-sfo3:~/iproute2.git# ./configure > > TC schedulers > > ATMyes > > IPTusing xtables > > IPSET yes > >

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread David Ahern
On 10/28/20 8:06 PM, Hangbin Liu wrote: > On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: >> fails to compile on Ubuntu 20.10: >> >> root@u2010-sfo3:~/iproute2.git# ./configure >> TC schedulers >> ATM yes >> IPT using xtables >> IPSET yes >> >> iptables modules directory: /usr/lib/

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread Andrii Nakryiko
On Wed, Oct 28, 2020 at 7:06 PM Hangbin Liu wrote: > > On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > > fails to compile on Ubuntu 20.10: > > > > root@u2010-sfo3:~/iproute2.git# ./configure > > TC schedulers > > ATM yes > > IPT using xtables > > IPSET yes > > > > iptables mod

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread Hangbin Liu
On Wed, Oct 28, 2020 at 05:02:34PM -0600, David Ahern wrote: > fails to compile on Ubuntu 20.10: > > root@u2010-sfo3:~/iproute2.git# ./configure > TC schedulers > ATM yes > IPT using xtables > IPSET yes > > iptables modules directory: /usr/lib/x86_64-linux-gnu/xtables > libc has setns: yes

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread David Ahern
On 10/28/20 7:25 AM, Hangbin Liu wrote: > This series converts iproute2 to use libbpf for loading and attaching > BPF programs when it is available. This means that iproute2 will > correctly process BTF information and support the new-style BTF-defined > maps, while keeping compatibility with the o

[PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread Hangbin Liu
This series converts iproute2 to use libbpf for loading and attaching BPF programs when it is available. This means that iproute2 will correctly process BTF information and support the new-style BTF-defined maps, while keeping compatibility with the old internal map definition syntax. This is achi

Re: [PATCHv2 iproute2-next 0/5] iproute2: add libbpf support

2020-10-28 Thread Alexei Starovoitov
On Wed, Oct 28, 2020 at 09:25:24PM +0800, Hangbin Liu wrote: > This series converts iproute2 to use libbpf for loading and attaching > BPF programs when it is available. This means that iproute2 will > correctly process BTF information and support the new-style BTF-defined > maps, while keeping com