]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: add the MP_PRIO testcases
authorGeliang Tang <geliangtang@gmail.com>
Sat, 9 Jan 2021 00:48:02 +0000 (16:48 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 10 Jan 2021 02:18:44 +0000 (18:18 -0800)
commit163148cb459ba9dabc31c3efd2927f12d9c134f3
tree4342a9bf2e6bb8680455185983dc4a302707e9d0
parentadf3a5139e9130f3fd961e14fd21246151267084
selftests: mptcp: add the MP_PRIO testcases

This patch added the MP_PRIO testcases:

Add a new argument bkup for run_tests and do_transfer, it can be set as
"backup" or "nobackup", the default value is "".

Add a new function chk_prio_nr to check the MP_PRIO related MIB counters.

The output looks like this:

29 single subflow, backup      syn[ ok ] - synack[ ok ] - ack[ ok ]
                               ptx[ ok ] - prx   [ ok ]
30 single address, backup      syn[ ok ] - synack[ ok ] - ack[ ok ]
                               add[ ok ] - echo  [ ok ]
                               ptx[ ok ] - prx   [ ok ]

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh