Commit 5fbea888 authored by Matthieu Baerts (NGI0)'s avatar Matthieu Baerts (NGI0) Committed by Jakub Kicinski
Browse files

selftests: mptcp: add -m with ss in case of errors



Recently, we had an issue where getting info about the memory would have
helped better understanding what went wrong.

Let add it just in case for later.

Reviewed-by: default avatarGeliang Tang <geliang@kernel.org>
Signed-off-by: default avatarMatthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250114-net-next-mptcp-st-more-debug-err-v1-4-2ffb16a6cf35@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8c6bb011
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -118,11 +118,11 @@ mptcp_lib_pr_err_stats() {
	echo -en "${MPTCP_LIB_COLOR_RED}"
	{
		printf "\nnetns %s (listener) socket stat for %d:\n" "${lns}" "${port}"
		ip netns exec "${lns}" ss -Menita -o "sport = :${port}"
		ip netns exec "${lns}" ss -Menitam -o "sport = :${port}"
		cat "${lstat}"

		printf "\nnetns %s (connector) socket stat for %d:\n" "${cns}" "${port}"
		ip netns exec "${cns}" ss -Menita -o "dport = :${port}"
		ip netns exec "${cns}" ss -Menitam -o "dport = :${port}"
		[ "${lstat}" != "${cstat}" ] && cat "${cstat}"
	} 1>&2
	echo -en "${MPTCP_LIB_COLOR_RESET}"