selftests: mptcp: check MP_FAIL response mibs
authorGeliang Tang <geliang.tang@suse.com>
Tue, 26 Apr 2022 21:57:16 +0000 (14:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2022 09:45:54 +0000 (10:45 +0100)
commit1f7d325f7d4944db022358a6f0dfe4fc206a6ced
tree828a39504704e5b7cd037c4a0b93f7b18e4fb06e
parent49fa1919d6bcdcf3cf3d080c1943f537f6ed5e70
selftests: mptcp: check MP_FAIL response mibs

This patch extends chk_fail_nr to check the MP_FAIL response mibs.

Add a new argument invert for chk_fail_nr to allow it can check the
MP_FAIL TX and RX mibs from the opposite direction.

When the infinite map is received before the MP_FAIL response, the
response will be lost. A '-' can be added into fail_tx or fail_rx to
represent that MP_FAIL response TX or RX can be lost when doing the
checks.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/mptcp_join.sh