linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/skbprio.json

[
    {
        "id": "283e",
        "name": "Create skbprio with default setting",
        "category": [
            "qdisc",
            "skbprio"
        ],
        "plugins": {
            "requires": "nsPlugin"
        },
        "setup": [
        ],
        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root skbprio",
        "expExitCode": "0",
        "verifyCmd": "$TC qdisc show dev $DUMMY",
        "matchPattern": "qdisc skbprio 1: root refcnt [0-9]+ limit 64",
        "matchCount": "1",
        "teardown": [
            "$TC qdisc del dev $DUMMY handle 1: root"
        ]
    },
    {
        "id": "c086",
        "name": "Create skbprio with limit setting",
        "category": [
            "qdisc",
            "skbprio"
        ],
        "plugins": {
            "requires": "nsPlugin"
        },
        "setup": [
        ],
        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root skbprio limit 1",
        "expExitCode": "0",
        "verifyCmd": "$TC qdisc show dev $DUMMY",
        "matchPattern": "qdisc skbprio 1: root refcnt [0-9]+ limit 1",
        "matchCount": "1",
        "teardown": [
            "$TC qdisc del dev $DUMMY handle 1: root"
        ]
    },
    {
        "id": "6733",
        "name": "Change skbprio with limit setting",
        "category": [
            "qdisc",
            "skbprio"
        ],
        "plugins": {
            "requires": "nsPlugin"
        },
        "setup": [
            "$TC qdisc add dev $DUMMY handle 1: root skbprio"
        ],
        "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root skbprio limit 32",
        "expExitCode": "0",
        "verifyCmd": "$TC qdisc show dev $DUMMY",
        "matchPattern": "qdisc skbprio 1: root refcnt [0-9]+ limit 32",
        "matchCount": "1",
        "teardown": [
            "$TC qdisc del dev $DUMMY handle 1: root"
        ]
    },
    {
        "id": "2958",
        "name": "Show skbprio class",
        "category": [
            "qdisc",
            "skbprio"
        ],
        "plugins": {
            "requires": "nsPlugin"
        },
        "setup": [
        ],
        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root skbprio",
        "expExitCode": "0",
        "verifyCmd": "$TC class show dev $DUMMY",
        "matchPattern": "class skbprio 1:",
        "matchCount": "64",
        "teardown": [
            "$TC qdisc del dev $DUMMY handle 1: root"
        ]
    }
]