[bpf-next PATCH 0/3] Hash support for sock

2018-04-27 Thread John Fastabend
In the original sockmap implementation we got away with using an array similar to devmap. However, unlike devmap where an ifindex has a nice 1:1 function into the map we have found some use cases with sockets need to be referenced using longer keys. This series adds support for a sockhash map type

Re: [bpf-next PATCH 0/3] Hash support for sock

2018-04-27 Thread John Fastabend
On 04/27/2018 03:54 PM, Alexei Starovoitov wrote: > On Fri, Apr 27, 2018 at 10:51 PM, John Fastabend > wrote: >> In the original sockmap implementation we got away with using an >> array similar to devmap. However, unlike devmap where an ifindex >> has a nice 1:1 function into the map we have foun

Re: [bpf-next PATCH 0/3] Hash support for sock

2018-04-27 Thread Alexei Starovoitov
On Fri, Apr 27, 2018 at 10:51 PM, John Fastabend wrote: > In the original sockmap implementation we got away with using an > array similar to devmap. However, unlike devmap where an ifindex > has a nice 1:1 function into the map we have found some use cases > with sockets need to be referenced usi

[bpf-next PATCH 0/3] Hash support for sock

2018-04-27 Thread John Fastabend
In the original sockmap implementation we got away with using an array similar to devmap. However, unlike devmap where an ifindex has a nice 1:1 function into the map we have found some use cases with sockets need to be referenced using longer keys. This series adds support for a sockhash map type