Thread (49 messages) 49 messages, 5 authors, 2020-01-21

RE: [PATCH bpf-next v2 09/11] bpf: Allow selecting reuseport socket from a SOCKMAP

From: John Fastabend <john.fastabend@gmail.com>
Date: 2020-01-12 01:00:26
Also in: bpf

Jakub Sitnicki wrote:
SOCKMAP now supports storing references to listening sockets. Nothing keeps
us from using it as an array of sockets to select from in SK_REUSEPORT
programs.

Whitelist the map type with the BPF helper for selecting socket.

The restriction that the socket has to be a member of a reuseport group
still applies. Socket from a SOCKMAP that does not have sk_reuseport_cb set
is not a valid target and we signal it with -EINVAL.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
---
Acked-by: John Fastabend <john.fastabend@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help