Re: [PATCH bpf-next] tools: bpftool: add map create command

2018-10-15 Thread Jakub Kicinski
On Mon, 15 Oct 2018 12:58:07 -0700, Alexei Starovoitov wrote: > > > > fprintf(stderr, > > > > "Usage: %s %s { show | list } [MAP]\n" > > > > + " %s %s create FILE type TYPE key KEY_SIZE > > > > value VALUE_SIZE \\\n" > > > > + "

Re: [PATCH bpf-next] tools: bpftool: add map create command

2018-10-15 Thread Alexei Starovoitov
On Mon, Oct 15, 2018 at 09:49:08AM -0700, Jakub Kicinski wrote: > On Fri, 12 Oct 2018 23:16:59 -0700, Alexei Starovoitov wrote: > > On Fri, Oct 12, 2018 at 11:06:14AM -0700, Jakub Kicinski wrote: > > > Add a way of creating maps from user space. The command takes > > > as parameters most of the

Re: [PATCH bpf-next] tools: bpftool: add map create command

2018-10-15 Thread Jakub Kicinski
On Fri, 12 Oct 2018 23:16:59 -0700, Alexei Starovoitov wrote: > On Fri, Oct 12, 2018 at 11:06:14AM -0700, Jakub Kicinski wrote: > > Add a way of creating maps from user space. The command takes > > as parameters most of the attributes of the map creation system > > call command. After map is

Re: [PATCH bpf-next] tools: bpftool: add map create command

2018-10-13 Thread Alexei Starovoitov
On Fri, Oct 12, 2018 at 11:06:14AM -0700, Jakub Kicinski wrote: > Add a way of creating maps from user space. The command takes > as parameters most of the attributes of the map creation system > call command. After map is created its pinned to bpffs. This makes > it possible to easily and

[PATCH bpf-next] tools: bpftool: add map create command

2018-10-12 Thread Jakub Kicinski
Add a way of creating maps from user space. The command takes as parameters most of the attributes of the map creation system call command. After map is created its pinned to bpffs. This makes it possible to easily and dynamically (without rebuilding programs) test various corner cases related