Re: [PATCH v2 net-next 1/6] bpf: LRU List

2016-11-14 Thread Alexei Starovoitov
On Fri, Nov 11, 2016 at 10:55:06AM -0800, Martin KaFai Lau wrote: > Introduce bpf_lru_list which will provide LRU capability to > the bpf_htab in the later patch. > > * General Thoughts: > 1. Target use case. Read is more often than update. >(i.e. bpf_lookup_elem() is more often than bpf_upda

[PATCH v2 net-next 1/6] bpf: LRU List

2016-11-11 Thread Martin KaFai Lau
Introduce bpf_lru_list which will provide LRU capability to the bpf_htab in the later patch. * General Thoughts: 1. Target use case. Read is more often than update. (i.e. bpf_lookup_elem() is more often than bpf_update_elem()). If bpf_prog does a bpf_lookup_elem() first and then an in-place