summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2020-07-22 18:17:19 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-07-26 05:16:01 +0200
commitc8a2983c4df06c4cd11bea6abfa7e2947bd3113b (patch)
treeabeea2f58802f33b291ecca87738ab23d3e21f56 /tools/testing
parenttools/bpftool: Strip BPF .o files before skeleton generation (diff)
downloadlinux-c8a2983c4df06c4cd11bea6abfa7e2947bd3113b.tar.xz
linux-c8a2983c4df06c4cd11bea6abfa7e2947bd3113b.zip
udp: Don't discard reuseport selection when group has connections
When BPF socket lookup prog selects a socket that belongs to a reuseport group, and the reuseport group has connected sockets in it, the socket selected by reuseport will be discarded, and socket returned by BPF socket lookup will be used instead. Modify this behavior so that the socket selected by reuseport running after BPF socket lookup always gets used. Ignore the fact that the reuseport group might have connections because it is only relevant when scoring sockets during regular hashtable-based lookup. Fixes: 72f7e9440e9b ("udp: Run SK_LOOKUP BPF program on socket lookup") Fixes: 6d4201b1386b ("udp6: Run SK_LOOKUP BPF program on socket lookup") Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp> Link: https://lore.kernel.org/bpf/20200722161720.940831-2-jakub@cloudflare.com
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions