]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: mptcp: join: dump stats from history
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Fri, 14 Nov 2025 18:12:08 +0000 (19:12 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Nov 2025 03:27:46 +0000 (19:27 -0800)
commit658e531417801cd8d9aac630cee712e160ab5380
tree520c1a2fbfccd4dcf8db4535e9fff0310f7e462f
parent2e6daf6b9bc86e3fe0e3217def16aaaaf0924801
selftests: mptcp: join: dump stats from history

In case of errors, dump the stats from history instead of using nstat.

There are multiple advantages to that:

- The same filters from pr_err_stats are used, e.g. the unused 'rate'
  column is not displayed.

- The counters are closer to the ones from when the test stopped.

- While at it, the errors can be better presented: error colours, a
  small indentation to distinguish the different parts, extra new lines.

Even if it should only happen in rare cases -- internal errors, or netns
issues -- if no history is available, 'nstat' is used like before, just
in case.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251114-net-next-mptcp-sft-count-cache-stats-timeout-v1-4-863cb04e1b7b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh
tools/testing/selftests/net/mptcp/mptcp_lib.sh