Re: [PATCH bpf-next v3 2/4] bpf: sockmap, add hash map support

2018-04-29 Thread John Fastabend
On 04/29/2018 09:16 AM, Alexei Starovoitov wrote: > On Sat, Apr 28, 2018 at 08:41:28PM -0700, John Fastabend wrote: >> Sockmap is currently backed by an array and enforces keys to be >> four bytes. This works well for many use cases and was originally >> modeled after devmap which also uses four by

Re: [PATCH bpf-next v3 2/4] bpf: sockmap, add hash map support

2018-04-29 Thread Alexei Starovoitov
On Sat, Apr 28, 2018 at 08:41:28PM -0700, John Fastabend wrote: > Sockmap is currently backed by an array and enforces keys to be > four bytes. This works well for many use cases and was originally > modeled after devmap which also uses four bytes keys. However, > this has become limiting in larger