Skip to content

Commit e95274d

Browse files
committed
selftests: tc-testing: reduce rshift value
After previous change rshift >= 32 is no longer allowed. Modify the test to use 31, the test doesn't seem to send any traffic so the exact value shouldn't matter. Reviewed-by: Eric Dumazet <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a039e54 commit e95274d

File tree

1 file changed

+2
-2
lines changed
  • tools/testing/selftests/tc-testing/tc-tests/filters

1 file changed

+2
-2
lines changed

tools/testing/selftests/tc-testing/tc-tests/filters/flow.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@
7878
"setup": [
7979
"$TC qdisc add dev $DEV1 ingress"
8080
],
81-
"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key dst rshift 0xff",
81+
"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key dst rshift 0x1f",
8282
"expExitCode": "0",
8383
"verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow",
84-
"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst rshift 255 baseclass",
84+
"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst rshift 31 baseclass",
8585
"matchCount": "1",
8686
"teardown": [
8787
"$TC qdisc del dev $DEV1 ingress"

0 commit comments

Comments
 (0)