mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
When the value for a MIB counter is required, mptcp_lib_get_counter is
called. It tries to use the cache, if available. If not it falls back to
calling 'nstat' directly by looking at the absolute counters.
That's an issue for tests that don't recreate the netns for each
subtest. In this case, 'nstat -a' will look at the counters for the
netns.
Instead, it should look at the increment for the current test, by using
the history recorded in /tmp/<ns>.nstat, if available, and not using
'-a' which was dumping the absolute values.
While at it, rename the previous 'hist' variable to 'cache' as it was
used to look at the cache, not the nstat history.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| config | ||
| diag.sh | ||
| Makefile | ||
| mptcp_connect_checksum.sh | ||
| mptcp_connect_mmap.sh | ||
| mptcp_connect_sendfile.sh | ||
| mptcp_connect_splice.sh | ||
| mptcp_connect.c | ||
| mptcp_connect.sh | ||
| mptcp_diag.c | ||
| mptcp_inq.c | ||
| mptcp_join.sh | ||
| mptcp_lib.sh | ||
| mptcp_sockopt.c | ||
| mptcp_sockopt.sh | ||
| pm_netlink.sh | ||
| pm_nl_ctl.c | ||
| settings | ||
| simult_flows.sh | ||
| userspace_pm.sh | ||