]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: check epoll readiness during reuseport migration
authorZhenzhong Wu <jt26wzz@gmail.com>
Wed, 22 Apr 2026 02:45:54 +0000 (10:45 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Apr 2026 18:54:44 +0000 (11:54 -0700)
commitc01cfc4886752c86f6d48c58f7b103a01b0caeca
treee91c856a42ea878f7c6b8799f7aff64091684145
parent3864c6ba1e041bc75342353a70fa2a2c6f909923
selftests/bpf: check epoll readiness during reuseport migration

Inside migrate_dance(), add epoll checks around shutdown() to
verify that the target listener is not ready before shutdown()
and becomes ready immediately after shutdown() triggers migration.

Cover TCP_ESTABLISHED and TCP_SYN_RECV. Exclude TCP_NEW_SYN_RECV
as it depends on later handshake completion.

Suggested-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Zhenzhong Wu <jt26wzz@gmail.com>
Link: https://patch.msgid.link/20260422024554.130346-3-jt26wzz@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c