[PATCH net-next 0/9] bpf: hash map pre-alloc

2016-03-06 Thread Alexei Starovoitov
Hi, this path set switches bpf hash map to use pre-allocation by default and introduces BPF_F_NO_PREALLOC flag to keep old behavior for cases where full map pre-allocation is too memory expensive. Some time back Daniel Wagner reported crashes when bpf hash map is used to compute time intervals

[PATCH net-next 0/9] bpf: hash map pre-alloc

2016-03-06 Thread Alexei Starovoitov
Hi, this path set switches bpf hash map to use pre-allocation by default and introduces BPF_F_NO_PREALLOC flag to keep old behavior for cases where full map pre-allocation is too memory expensive. Some time back Daniel Wagner reported crashes when bpf hash map is used to compute time intervals