Re: [PATCH bpf v3] bpf: zero-fill re-used per-cpu map element

2020-11-03 Thread Andrii Nakryiko
On Tue, Nov 3, 2020 at 7:49 AM David Verbeiren wrote: > > Zero-fill element values for all other cpus than current, just as > when not using prealloc. This is the only way the bpf program can > ensure known initial values for all cpus ('onallcpus' cannot be > set when coming from the bpf program).

[PATCH bpf v3] bpf: zero-fill re-used per-cpu map element

2020-11-03 Thread David Verbeiren
Zero-fill element values for all other cpus than current, just as when not using prealloc. This is the only way the bpf program can ensure known initial values for all cpus ('onallcpus' cannot be set when coming from the bpf program). The scenario is: bpf program inserts some elements in a per-cpu