From: Matthieu Baerts <matthieu.bae...@tessares.net>

Not to be impacted by packets sent between sub-tests.

Signed-off-by: Matthieu Baerts <matthieu.bae...@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martin...@linux.intel.com>
---
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh 
b/tools/testing/selftests/net/mptcp/mptcp_connect.sh
index 65b3b983efc2..385cdc98aed8 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh
@@ -426,6 +426,13 @@ do_transfer()
                sleep 1
        fi
 
+       NSTAT_HISTORY=/tmp/${listener_ns}.nstat ip netns exec ${listener_ns} \
+               nstat -n
+       if [ ${listener_ns} != ${connector_ns} ]; then
+               NSTAT_HISTORY=/tmp/${connector_ns}.nstat ip netns exec 
${connector_ns} \
+                       nstat -n
+       fi
+
        local stat_synrx_last_l=$(get_mib_counter "${listener_ns}" 
"MPTcpExtMPCapableSYNRX")
        local stat_ackrx_last_l=$(get_mib_counter "${listener_ns}" 
"MPTcpExtMPCapableACKRX")
        local stat_cookietx_last=$(get_mib_counter "${listener_ns}" 
"TcpExtSyncookiesSent")
-- 
2.31.1

Reply via email to