Re: [PATCH bpf-next] bpf: sk_storage: Prefer to get a free cache_idx

2020-06-18 Thread Alexei Starovoitov
On Wed, Jun 17, 2020 at 10:01 PM John Fastabend wrote: > > Martin KaFai Lau wrote: > > The cache_idx is currently picked by RR. There is chance that > > the same cache_idx will be picked by multiple sk_storage_maps while > > other cache_idx is still unused. e.g. It could happen when the > > sk_s

RE: [PATCH bpf-next] bpf: sk_storage: Prefer to get a free cache_idx

2020-06-17 Thread John Fastabend
Martin KaFai Lau wrote: > The cache_idx is currently picked by RR. There is chance that > the same cache_idx will be picked by multiple sk_storage_maps while > other cache_idx is still unused. e.g. It could happen when the > sk_storage_map is recreated during the restart of the user > space proce

[PATCH bpf-next] bpf: sk_storage: Prefer to get a free cache_idx

2020-06-17 Thread Martin KaFai Lau
The cache_idx is currently picked by RR. There is chance that the same cache_idx will be picked by multiple sk_storage_maps while other cache_idx is still unused. e.g. It could happen when the sk_storage_map is recreated during the restart of the user space process. This patch tracks the usage c