Skip to content

Commit

Permalink
Squash to "selftests: mptcp: add mptcp_lib_get_counter"
Browse files Browse the repository at this point in the history
Please add this line into the commit log:

'''
Use this helper in test_prio() in userspace_pm.sh too instead of
open-coding.
'''

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
geliangtang authored and intel-lab-lkp committed Nov 6, 2023
1 parent bbb2b19 commit 518fcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/net/mptcp/userspace_pm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ test_prio()

# Check TX
print_test "MP_PRIO TX"
count=$(ip netns exec "$ns2" nstat -as | grep MPTcpExtMPPrioTx | awk '{print $2}')
count=$(mptcp_lib_get_counter "$ns2" "MPTcpExtMPPrioTx")
[ -z "$count" ] && count=0
if [ $count != 1 ]; then
test_fail "Count != 1: ${count}"
Expand All @@ -884,7 +884,7 @@ test_prio()

# Check RX
print_test "MP_PRIO RX"
count=$(ip netns exec "$ns1" nstat -as | grep MPTcpExtMPPrioRx | awk '{print $2}')
count=$(mptcp_lib_get_counter "$ns1" "MPTcpExtMPPrioRx")
[ -z "$count" ] && count=0
if [ $count != 1 ]; then
test_fail "Count != 1: ${count}"
Expand Down

0 comments on commit 518fcf2

Please sign in to comment.