You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selftests/tc-testing: Add test for echo of big TC filters
Add a selftest that checks whether the kernel can successfully echo a
big tc filter, to test the fix introduced in commit:
369609f ("tc: Ensure we have enough buffer space when sending filter netlink notifications")
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Tested-by: Victor Nogueira <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Copy file name to clipboardExpand all lines: tools/testing/selftests/tc-testing/tc-tests/infra/actions.json
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -412,5 +412,27 @@
412
412
"teardown": [
413
413
"$TC qdisc del dev $DUMMY ingress"
414
414
]
415
+
},
416
+
{
417
+
"id": "33f4",
418
+
"name": "Check echo of big filter command",
419
+
"category": [
420
+
"infra",
421
+
"u32"
422
+
],
423
+
"plugins": {
424
+
"requires": "nsPlugin"
425
+
},
426
+
"setup": [
427
+
"$TC qdisc add dev $DUMMY parent root handle 10: fq_codel"
428
+
],
429
+
"cmdUnderTest": "bash -c '$TC -echo filter add dev $DUMMY parent 10: u32 match u32 0 0 $(for i in $(seq 32); do echo action pedit munge ip dport set 22; done) | grep \"added filter\"'",
0 commit comments