Re: [PATCH v2 1/3] bpf: allow zero-initializing hash map seed

2018-11-06 Thread Song Liu
On Thu, Oct 25, 2018 at 8:12 AM Lorenz Bauer wrote: > > On Tue, 9 Oct 2018 at 01:08, Song Liu wrote: > > > > > --- a/include/uapi/linux/bpf.h > > > +++ b/include/uapi/linux/bpf.h > > > @@ -253,6 +253,8 @@ enum bpf_attach_type { > > > #define BPF_F_NO_COMMON_LRU(1U << 1) > > > /* Specify

Re: [PATCH v2 1/3] bpf: allow zero-initializing hash map seed

2018-10-25 Thread Lorenz Bauer
On Tue, 9 Oct 2018 at 01:08, Song Liu wrote: > > > --- a/include/uapi/linux/bpf.h > > +++ b/include/uapi/linux/bpf.h > > @@ -253,6 +253,8 @@ enum bpf_attach_type { > > #define BPF_F_NO_COMMON_LRU(1U << 1) > > /* Specify numa node during map creation */ > > #define BPF_F_NUMA_NODE

Re: [PATCH v2 1/3] bpf: allow zero-initializing hash map seed

2018-10-08 Thread Song Liu
On Mon, Oct 8, 2018 at 3:34 AM Lorenz Bauer wrote: > > Add a new flag BPF_F_ZERO_SEED, which forces a hash map > to initialize the seed to zero. This is useful when doing > performance analysis both on individual BPF programs, as > well as the kernel's hash table implementation. > >

[PATCH v2 1/3] bpf: allow zero-initializing hash map seed

2018-10-08 Thread Lorenz Bauer
Add a new flag BPF_F_ZERO_SEED, which forces a hash map to initialize the seed to zero. This is useful when doing performance analysis both on individual BPF programs, as well as the kernel's hash table implementation. Signed-off-by: Lorenz Bauer --- include/uapi/linux/bpf.h | 2 ++