On Mon, Jan 27, 2020 at 01:55 PM CET, Jakub Sitnicki wrote:
Make SOCKMAP a generic collection for listening as well as established
sockets. This lets us use SOCKMAP BPF maps with reuseport BPF programs.
The biggest advantage of SOCKMAP over REUSEPORT_SOCKARRAY is that the
former allows the socket can be in more than one map at the same time.
However, until SOCKMAP gets extended to work with UDP, it is not a drop in
replacement for REUSEPORT_SOCKARRAY.
Having a BPF map type that can hold listening sockets, and can gracefully
co-exist with reuseport BPF is important if, in the future, we want to have
BPF programs that run at socket lookup time [0]. Cover letter for v1 of
this series tells the full background story of how we got here [1].
v5 is a rebase onto recent bpf-next. Patches 1 & 2 has conflicts. I carried
over the Acks.
Well, this is embarassing.
Please don't apply. I have some uncomitted local changes. Will roll v6.