Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-26 Thread Quentin Monnet
2018-11-26 11:08 UTC-0800 ~ Vlad Dumitrescu > On Fri, Nov 23, 2018 at 2:51 AM Quentin Monnet > wrote: >> >> 2018-11-21 09:28 UTC-0800 ~ Stanislav Fomichev >>> On 11/21, Quentin Monnet wrote: 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > On 11/20, Alexei Starovoitov wrote: >> On

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-26 Thread Vlad Dumitrescu
On Fri, Nov 23, 2018 at 2:51 AM Quentin Monnet wrote: > > 2018-11-21 09:28 UTC-0800 ~ Stanislav Fomichev > > On 11/21, Quentin Monnet wrote: > >> 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > >>> On 11/20, Alexei Starovoitov wrote: > On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel Borkm

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-23 Thread Quentin Monnet
2018-11-21 09:28 UTC-0800 ~ Stanislav Fomichev On 11/21, Quentin Monnet wrote: 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev On 11/20, Alexei Starovoitov wrote: On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel Borkmann wrote: On 11/21/2018 12:04 AM, Alexei Starovoitov wrote: On Tue, Nov 2

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-21 Thread Stanislav Fomichev
On 11/21, Quentin Monnet wrote: > 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > > On 11/20, Alexei Starovoitov wrote: > >> On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel Borkmann wrote: > >>> On 11/21/2018 12:04 AM, Alexei Starovoitov wrote: > On Tue, Nov 20, 2018 at 01:19:05PM -0800, St

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Quentin Monnet
2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > On 11/20, Alexei Starovoitov wrote: >> On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel Borkmann wrote: >>> On 11/21/2018 12:04 AM, Alexei Starovoitov wrote: On Tue, Nov 20, 2018 at 01:19:05PM -0800, Stanislav Fomichev wrote: > On 11/20, Al

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Stanislav Fomichev
On 11/20, Alexei Starovoitov wrote: > On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel Borkmann wrote: > > On 11/21/2018 12:04 AM, Alexei Starovoitov wrote: > > > On Tue, Nov 20, 2018 at 01:19:05PM -0800, Stanislav Fomichev wrote: > > >> On 11/20, Alexei Starovoitov wrote: > > >>> On Mon, Nov 19, 2

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Alexei Starovoitov
On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel Borkmann wrote: > On 11/21/2018 12:04 AM, Alexei Starovoitov wrote: > > On Tue, Nov 20, 2018 at 01:19:05PM -0800, Stanislav Fomichev wrote: > >> On 11/20, Alexei Starovoitov wrote: > >>> On Mon, Nov 19, 2018 at 04:46:25PM -0800, Stanislav Fomichev wr

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Daniel Borkmann
On 11/21/2018 12:04 AM, Alexei Starovoitov wrote: > On Tue, Nov 20, 2018 at 01:19:05PM -0800, Stanislav Fomichev wrote: >> On 11/20, Alexei Starovoitov wrote: >>> On Mon, Nov 19, 2018 at 04:46:25PM -0800, Stanislav Fomichev wrote: [Recent commit 23499442c319 ("bpf: libbpf: retry map creation w

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Alexei Starovoitov
On Tue, Nov 20, 2018 at 01:19:05PM -0800, Stanislav Fomichev wrote: > On 11/20, Alexei Starovoitov wrote: > > On Mon, Nov 19, 2018 at 04:46:25PM -0800, Stanislav Fomichev wrote: > > > [Recent commit 23499442c319 ("bpf: libbpf: retry map creation without > > > the name") fixed this issue for maps, l

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Stanislav Fomichev
On 11/20, Alexei Starovoitov wrote: > On Mon, Nov 19, 2018 at 04:46:25PM -0800, Stanislav Fomichev wrote: > > [Recent commit 23499442c319 ("bpf: libbpf: retry map creation without > > the name") fixed this issue for maps, let's do the same for programs.] > > > > Since commit 88cda1c9da02 ("bpf: li

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-20 Thread Alexei Starovoitov
On Mon, Nov 19, 2018 at 04:46:25PM -0800, Stanislav Fomichev wrote: > [Recent commit 23499442c319 ("bpf: libbpf: retry map creation without > the name") fixed this issue for maps, let's do the same for programs.] > > Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support > to specify B

Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-19 Thread Y Song
On Mon, Nov 19, 2018 at 4:52 PM Stanislav Fomichev wrote: > > [Recent commit 23499442c319 ("bpf: libbpf: retry map creation without > the name") fixed this issue for maps, let's do the same for programs.] > > Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support > to specify BPF obj n

[PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-19 Thread Stanislav Fomichev
[Recent commit 23499442c319 ("bpf: libbpf: retry map creation without the name") fixed this issue for maps, let's do the same for programs.] Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support to specify BPF obj name"), libbpf unconditionally sets bpf_attr->name for programs. Pre v4