Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Alexei Starovoitov
On Fri, Nov 14, 2014 at 8:06 AM, Hannes Frederic Sowa wrote: > On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: >> On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa >> wrote: >> > On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: >> >> the current meaning of

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Hannes Frederic Sowa
On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: > On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa > wrote: > > On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: > >> the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: > >> either update existing map element

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Alexei Starovoitov
On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa wrote: > On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: >> the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: >> either update existing map element or create a new one. >> Initially the plan was to add a new command to

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Hannes Frederic Sowa
On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: > the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: > either update existing map element or create a new one. > Initially the plan was to add a new command to handle the case of > 'create new element if it didn't exist', but

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Hannes Frederic Sowa
On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: either update existing map element or create a new one. Initially the plan was to add a new command to handle the case of 'create new element if it didn't exist', but

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Alexei Starovoitov
On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa han...@stressinduktion.org wrote: On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: either update existing map element or create a new one. Initially the plan was to

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Hannes Frederic Sowa
On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa han...@stressinduktion.org wrote: On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: either update

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Alexei Starovoitov
On Fri, Nov 14, 2014 at 8:06 AM, Hannes Frederic Sowa han...@stressinduktion.org wrote: On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa han...@stressinduktion.org wrote: On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov