diff options
author | Kuniyuki Iwashima <[email protected]> | 2021-06-12 21:32:17 +0900 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-06-15 18:01:05 +0200 |
commit | 1cd62c21572c1df6e7090ea4cabf4cf509616dbb (patch) | |
tree | a170e49c2fcd683a4d964fcccaf7221328376723 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 333bb73f620e1a5f2e0b8df2c0d25300fab36d89 (diff) |
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 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions