[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1526661066-11138-1-git-send-email-vladbu@mellanox.com>
Date: Fri, 18 May 2018 19:31:06 +0300
From: Vlad Buslov <vladbu@...lanox.com>
To: linux-kselftest@...r.kernel.org
Cc: shuah@...nel.org, davem@...emloft.net, lucasb@...atatu.com,
jhs@...atatu.com, xiyou.wangcong@...il.com, chrism@...lanox.com,
linux-kernel@...r.kernel.org, Vlad Buslov <vladbu@...lanox.com>
Subject: [PATCH] tc-testing: fix ip address in u32 test
Fix expected ip address to actually match configured ip address.
Fix test to expect single matched filter.
Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
---
tools/testing/selftests/tc-testing/tc-tests/filters/tests.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json b/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
index 5fa02d8..99a5ffc 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
@@ -12,8 +12,8 @@
"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 1 u32 match ip src 127.0.0.1/32 flowid 1:1 action ok",
"expExitCode": "0",
"verifyCmd": "$TC filter show dev $DEV1 parent ffff:",
- "matchPattern": "match 7f000002/ffffffff at 12",
- "matchCount": "0",
+ "matchPattern": "match 7f000001/ffffffff at 12",
+ "matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 ingress"
]
--
2.7.5
Powered by blists - more mailing lists