]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest: net: Add test for TCP flow failover with ECMP routes.
authorKuniyuki Iwashima <kuniyu@google.com>
Thu, 30 Apr 2026 20:09:01 +0000 (20:09 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 2 May 2026 00:58:44 +0000 (17:58 -0700)
commitd1ae37dc6881a6a9113c8545cdbba731393d8dcd
treeca03169789297c7b4be717aa53c1a644ef72eadc
parent4bc852006b62eae8ea77e797192d089367e854ff
selftest: net: Add test for TCP flow failover with ECMP routes.

Without the previous commit, TCP failed to switch to alternative
IPv6 routes immediately upon carrier loss.

It would persist with the dead route until reaching the threshold
net.ipv4.tcp_retries1, leading to unnecessary delays in failover.

Let's add a selftest for this scenario to ensure TCP fails over
immediately upon a carrier loss event.

Before:
  TEST: TCP IPv4 failover                                             [ OK ]
  TEST: TCP IPv6 failover                                             [FAIL]

After:
  TEST: TCP IPv4 failover                                             [ OK ]
  TEST: TCP IPv6 failover                                             [ OK ]

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Sagarika Sharma <sharmasagarika@google.com>
Link: https://patch.msgid.link/20260430200909.527827-3-sharmasagarika@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/tcp_ecmp_failover.sh [new file with mode: 0755]