diff options
author | Kuniyuki Iwashima <kuniyu@amazon.co.jp> | 2021-06-12 14:32:17 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-06-15 18:01:05 +0200 |
commit | 1cd62c21572c1df6e7090ea4cabf4cf509616dbb (patch) | |
tree | a170e49c2fcd683a4d964fcccaf7221328376723 /samples/watch_queue | |
parent | tcp: Keep TCP_CLOSE sockets in the reuseport group. (diff) | |
download | linux-1cd62c21572c1df6e7090ea4cabf4cf509616dbb.tar.xz linux-1cd62c21572c1df6e7090ea4cabf4cf509616dbb.zip |
tcp: Add reuseport_migrate_sock() to select a new listener.
reuseport_migrate_sock() does the same check done in
reuseport_listen_stop_sock(). If the reuseport group is capable of
migration, reuseport_migrate_sock() selects a new listener by the child
socket hash and increments the listener's sk_refcnt beforehand. Thus, if we
fail in the migration, we have to decrement it later.
We will support migration by eBPF in the later commits.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/bpf/20210612123224.12525-5-kuniyu@amazon.co.jp
Diffstat (limited to 'samples/watch_queue')
0 files changed, 0 insertions, 0 deletions