mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-07 22:23:00 +00:00

Added new test cases for FQ, FQ_CODEL, FQ_PIE, and HHF qdiscs to verify queue trimming behavior when the qdisc limit is dynamically reduced. Each test injects packets, reduces the qdisc limit, and checks that the new limit is enforced. This is still best effort since timing qdisc backlog is not easy. Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
827 B
JSON
25 lines
827 B
JSON
[
|
|
{
|
|
"id": "6158",
|
|
"name": "PIE test qdisc limit trimming",
|
|
"category": ["qdisc", "pie"],
|
|
"plugins": {"requires": ["nsPlugin", "scapyPlugin"]},
|
|
"setup": [
|
|
"$TC qdisc add dev $DEV1 handle 1: root pie 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 pie limit 1",
|
|
"expExitCode": "0",
|
|
"verifyCmd": "$TC qdisc show dev $DEV1",
|
|
"matchPattern": "qdisc pie 1: root refcnt [0-9]+ limit 1p",
|
|
"matchCount": "1",
|
|
"teardown": ["$TC qdisc del dev $DEV1 handle 1: root"]
|
|
}
|
|
]
|