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

2018-04-02 Thread John Fastabend
On 04/02/2018 08:54 AM, Alexei Starovoitov wrote: > On Sun, Apr 01, 2018 at 08:01:10AM -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

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

2018-04-02 Thread Alexei Starovoitov
On Sun, Apr 01, 2018 at 08:01:10AM -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

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

2018-04-01 Thread John Fastabend
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 use cases where a hash would be more appropriate. For example users