Re: [RFC PATCH bpf-next 3/8] libbpf: refactor map initialization

2019-06-17 Thread Andrii Nakryiko
On Sat, Jun 15, 2019 at 2:03 PM Song Liu wrote: > > On Mon, Jun 10, 2019 at 9:35 PM Andrii Nakryiko wrote: > > > > User and global data maps initialization has gotten pretty complicated > > and unnecessarily convoluted. This patch splits out the logic for global > > data map and user-defined map

Re: [RFC PATCH bpf-next 3/8] libbpf: refactor map initialization

2019-06-15 Thread Song Liu
On Sat, Jun 15, 2019 at 2:02 PM Song Liu wrote: > > On Mon, Jun 10, 2019 at 9:35 PM Andrii Nakryiko wrote: > > > > User and global data maps initialization has gotten pretty complicated > > and unnecessarily convoluted. This patch splits out the logic for global > > data map and user-defined map

Re: [RFC PATCH bpf-next 3/8] libbpf: refactor map initialization

2019-06-15 Thread Song Liu
On Mon, Jun 10, 2019 at 9:35 PM Andrii Nakryiko wrote: > > User and global data maps initialization has gotten pretty complicated > and unnecessarily convoluted. This patch splits out the logic for global > data map and user-defined map initialization. It also removes the > restriction of pre-calc

[PATCH bpf-next 3/8] libbpf: refactor map initialization

2019-06-10 Thread Andrii Nakryiko
User and global data maps initialization has gotten pretty complicated and unnecessarily convoluted. This patch splits out the logic for global data map and user-defined map initialization. It also removes the restriction of pre-calculating how many maps will be initialized, instead allowing to kee

[RFC PATCH bpf-next 3/8] libbpf: refactor map initialization

2019-06-10 Thread Andrii Nakryiko
User and global data maps initialization has gotten pretty complicated and unnecessarily convoluted. This patch splits out the logic for global data map and user-defined map initialization. It also removes the restriction of pre-calculating how many maps will be initialized, instead allowing to kee

[RFC PATCH bpf-next 3/8] libbpf: refactor map initialization

2019-05-31 Thread Andrii Nakryiko
User and global data maps initialization has gotten pretty complicated and unnecessarily convoluted. This patch splits out the logic for global data map and user-defined map initialization. It also removes the restriction of pre-calculating how many maps will be initialized, instead allowing to kee