xref: /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/pie.json (revision ab93e0dd72c37d378dd936f031ffb83ff2bd87ce)
1*16ce349bSCong Wang[
2*16ce349bSCong Wang    {
3*16ce349bSCong Wang        "id": "6158",
4*16ce349bSCong Wang        "name": "PIE test qdisc limit trimming",
5*16ce349bSCong Wang        "category": ["qdisc", "pie"],
6*16ce349bSCong Wang        "plugins": {"requires": ["nsPlugin", "scapyPlugin"]},
7*16ce349bSCong Wang        "setup": [
8*16ce349bSCong Wang            "$TC qdisc add dev $DEV1 handle 1: root pie limit 10"
9*16ce349bSCong Wang        ],
10*16ce349bSCong Wang        "scapy": [
11*16ce349bSCong Wang            {
12*16ce349bSCong Wang                "iface": "$DEV0",
13*16ce349bSCong Wang                "count": 10,
14*16ce349bSCong Wang                "packet": "Ether(type=0x800)/IP(src='10.0.0.10',dst='10.0.0.20')/TCP(sport=5000,dport=10)"
15*16ce349bSCong Wang            }
16*16ce349bSCong Wang        ],
17*16ce349bSCong Wang        "cmdUnderTest": "$TC qdisc change dev $DEV1 handle 1: root pie limit 1",
18*16ce349bSCong Wang        "expExitCode": "0",
19*16ce349bSCong Wang        "verifyCmd": "$TC qdisc show dev $DEV1",
20*16ce349bSCong Wang        "matchPattern": "qdisc pie 1: root refcnt [0-9]+ limit 1p",
21*16ce349bSCong Wang        "matchCount": "1",
22*16ce349bSCong Wang        "teardown": ["$TC qdisc del dev $DEV1 handle 1: root"]
23*16ce349bSCong Wang    }
24*16ce349bSCong Wang]
25