123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403[ { "id": "983b", "name": "Create FQ with default setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "38a1", "name": "Create FQ with limit packet setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq limit 3000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 3000p", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "0a18", "name": "Create FQ with flow_limit setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq flow_limit 300", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 300p", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "2390", "name": "Create FQ with quantum setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq quantum 9000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*quantum 9000b", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "845b", "name": "Create FQ with initial_quantum setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq initial_quantum 900000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p buckets.*initial_quantum 900000b", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "10f7", "name": "Create FQ with invalid initial_quantum setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq initial_quantum 0x80000000", "expExitCode": "2", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root.*initial_quantum 2048Mb", "matchCount": "0", "teardown": [ ] }, { "id": "9398", "name": "Create FQ with maxrate setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq maxrate 100000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p buckets.*maxrate 100Kbit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "342c", "name": "Create FQ with nopacing setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq nopacing", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*nopacing", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "6391", "name": "Create FQ with refill_delay setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq refill_delay 100ms", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*refill_delay 100ms", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "238b", "name": "Create FQ with low_rate_threshold setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq low_rate_threshold 10000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*low_rate_threshold 10Kbit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "7582", "name": "Create FQ with orphan_mask setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq orphan_mask 255", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*orphan_mask 255", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "4894", "name": "Create FQ with timer_slack setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq timer_slack 100", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*timer_slack 100ns", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "324c", "name": "Create FQ with ce_threshold setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq ce_threshold 100", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "424a", "name": "Create FQ with horizon time setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq horizon 100", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*horizon 100us", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "89e1", "name": "Create FQ with horizon_cap setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq horizon_cap", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*horizon_cap", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "32e1", "name": "Delete FQ with valid handle", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$TC qdisc add dev $DUMMY handle 1: root fq" ], "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p", "matchCount": "0", "teardown": [ ] }, { "id": "49b0", "name": "Replace FQ with limit setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$TC qdisc add dev $DUMMY handle 1: root fq" ], "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root fq limit 5000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 5000p", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "9478", "name": "Change FQ with limit setting", "category": [ "qdisc", "fq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$TC qdisc add dev $DUMMY handle 1: root fq" ], "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root fq limit 100", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 100p", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" ] }, { "id": "9479", "name": "FQ test qdisc limit trimming", "category": ["qdisc", "fq"], "plugins": {"requires": ["nsPlugin", "scapyPlugin"]}, "setup": [ "$TC qdisc add dev $DEV1 handle 1: root fq limit 10" ], "scapy": [ { "iface": "$DEV0", "count": 10, "packet": "Ether(type=0x800)/IP(src='10.0.0.10',dst='10.0.0.20')/TCP(sport=5000,dport=10)" } ], "cmdUnderTest": "$TC qdisc change dev $DEV1 handle 1: root fq limit 1", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DEV1", "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 1p", "matchCount": "1", "teardown": ["$TC qdisc del dev $DEV1 handle 1: root"] } ]