diff options
| author | Kuniyuki Iwashima <[email protected]> | 2021-06-12 12:32:17 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-06-15 16:01:05 +0000 |
| commit | 1cd62c21572c1df6e7090ea4cabf4cf509616dbb (patch) | |
| tree | a170e49c2fcd683a4d964fcccaf7221328376723 /net/ipv6/tcp_ipv6.c | |
| parent | tcp: Keep TCP_CLOSE sockets in the reuseport group. (diff) | |
| download | kernel-1cd62c21572c1df6e7090ea4cabf4cf509616dbb.tar.gz kernel-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 <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
