aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing
diff options
context:
space:
mode:
authorDavide Caratti <dcaratti@redhat.com>2019-06-28 11:03:43 -0700
committerDavid S. Miller <davem@davemloft.net>2019-07-01 19:15:46 -0700
commit95b9395ba103ec0cc40bebb71a08231b5e226a76 (patch)
tree88f7b417e9a8c7061b04e7ba0a77c3884b4f018b /tools/testing/selftests/tc-testing
parentidr: introduce idr_for_each_entry_continue_ul() (diff)
downloadlinux-dev-95b9395ba103ec0cc40bebb71a08231b5e226a76.tar.xz
linux-dev-95b9395ba103ec0cc40bebb71a08231b5e226a76.zip
selftests: add a test case for cls_lower handle overflow
Reported-by: Li Shuang <shuali@redhat.com> Signed-off-by: Davide Caratti <dcaratti@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing')
-rw-r--r--tools/testing/selftests/tc-testing/tc-tests/filters/tests.json19
1 files changed, 19 insertions, 0 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 e2f92cefb8d5..16559c436f21 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
@@ -39,6 +39,25 @@
]
},
{
+ "id": "2ff3",
+ "name": "Add flower with max handle and then dump it",
+ "category": [
+ "filter",
+ "flower"
+ ],
+ "setup": [
+ "$TC qdisc add dev $DEV2 ingress"
+ ],
+ "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 parent ffff: handle 0xffffffff flower action ok",
+ "expExitCode": "0",
+ "verifyCmd": "$TC filter show dev $DEV2 ingress",
+ "matchPattern": "filter protocol ip pref 1 flower.*handle 0xffffffff",
+ "matchCount": "1",
+ "teardown": [
+ "$TC qdisc del dev $DEV2 ingress"
+ ]
+ },
+ {
"id": "d052",
"name": "Add 1M filters with the same action",
"category": [