From ec537626025d73d68ed3dae73bac77b58446cf87 Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 22:35:47 -0800 Subject: [PATCH 1/9] test(nlcapgen): tcswrite capture space, 114 rows (gotc 18C) The qdisc and class writes of increment 15's nine kinds (drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs, etf): every add body, change, replace and delete, the classful kinds' classes, a batch, the plan's leads (W27, W30-W36, W39-W41, W3) and 45 refusals, each write with a readback. Two batches on one boot agree on every row. Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gotc-status.md | 7 + nix/microvms/workbench/tcswrite.rows.jsonl | 117 ++++++++ .../7_3_1/ws/tcswrite/ec-001/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-001/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-001/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-001/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-001/ip.pcap | Bin 0 -> 320 bytes .../testdata/7_3_1/ws/tcswrite/ec-001/ip.rc | 1 + .../tcswrite/ec-001/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-002/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-002/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-002/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-002/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-002/ip.pcap | Bin 0 -> 320 bytes .../testdata/7_3_1/ws/tcswrite/ec-002/ip.rc | 1 + .../tcswrite/ec-002/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-003/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-003/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-003/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-003/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-003/ip.pcap | Bin 0 -> 320 bytes .../testdata/7_3_1/ws/tcswrite/ec-003/ip.rc | 1 + .../tcswrite/ec-003/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-004/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-004/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-004/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-004/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-004/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-004/ip.rc | 1 + .../tcswrite/ec-004/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-005/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-005/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-005/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-005/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-005/ip.pcap | Bin 0 -> 320 bytes .../testdata/7_3_1/ws/tcswrite/ec-005/ip.rc | 1 + .../tcswrite/ec-005/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-006/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-006/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-006/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-006/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-006/ip.pcap | Bin 0 -> 320 bytes .../testdata/7_3_1/ws/tcswrite/ec-006/ip.rc | 1 + .../tcswrite/ec-006/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-007/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-007/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-007/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-007/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-007/ip.pcap | Bin 0 -> 320 bytes .../testdata/7_3_1/ws/tcswrite/ec-007/ip.rc | 1 + .../tcswrite/ec-007/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-008/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-008/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-008/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-008/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-008/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-008/ip.rc | 1 + .../tcswrite/ec-008/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-009/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-009/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-009/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-009/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-009/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-009/ip.rc | 1 + .../tcswrite/ec-009/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-010/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-010/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-010/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-010/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-010/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-010/ip.rc | 1 + .../tcswrite/ec-010/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-011/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-011/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-011/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-011/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-011/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-011/ip.rc | 1 + .../tcswrite/ec-011/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-012/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-012/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-012/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-012/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-012/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-012/ip.rc | 1 + .../tcswrite/ec-012/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-013/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-013/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-013/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-013/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-013/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-013/ip.rc | 1 + .../tcswrite/ec-013/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-014/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-014/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-014/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-014/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-014/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-014/ip.rc | 1 + .../tcswrite/ec-014/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-015/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-015/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-015/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-015/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-015/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-015/ip.rc | 1 + .../tcswrite/ec-015/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-016/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-016/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-016/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-016/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-016/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-016/ip.rc | 1 + .../tcswrite/ec-016/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-017/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-017/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-017/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-017/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-017/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-017/ip.rc | 1 + .../tcswrite/ec-017/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-018/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-018/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-018/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-018/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-018/ip.pcap | Bin 0 -> 388 bytes .../testdata/7_3_1/ws/tcswrite/ec-018/ip.rc | 1 + .../tcswrite/ec-018/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-019/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-019/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-019/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-019/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-019/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-019/ip.rc | 1 + .../tcswrite/ec-019/netlink_route_dump.pcap | Bin 0 -> 624 bytes .../7_3_1/ws/tcswrite/ec-020/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-020/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-020/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-020/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-020/ip.pcap | Bin 0 -> 352 bytes .../testdata/7_3_1/ws/tcswrite/ec-020/ip.rc | 1 + .../tcswrite/ec-020/netlink_route_dump.pcap | Bin 0 -> 636 bytes .../7_3_1/ws/tcswrite/ec-021/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-021/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-021/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-021/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-021/ip.pcap | Bin 0 -> 472 bytes .../testdata/7_3_1/ws/tcswrite/ec-021/ip.rc | 1 + .../tcswrite/ec-021/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-022/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-022/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-022/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-022/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-022/ip.pcap | Bin 0 -> 472 bytes .../testdata/7_3_1/ws/tcswrite/ec-022/ip.rc | 1 + .../tcswrite/ec-022/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-023/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-023/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-023/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-023/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-023/ip.pcap | Bin 0 -> 472 bytes .../testdata/7_3_1/ws/tcswrite/ec-023/ip.rc | 1 + .../tcswrite/ec-023/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-024/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-024/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-024/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-024/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-024/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-024/ip.rc | 1 + .../tcswrite/ec-024/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-025/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-025/dump.out | 14 + .../testdata/7_3_1/ws/tcswrite/ec-025/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-025/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-025/ip.pcap | Bin 0 -> 412 bytes .../testdata/7_3_1/ws/tcswrite/ec-025/ip.rc | 1 + .../tcswrite/ec-025/netlink_route_dump.pcap | Bin 0 -> 3348 bytes .../7_3_1/ws/tcswrite/ec-026/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-026/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-026/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-026/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-026/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-026/ip.rc | 1 + .../tcswrite/ec-026/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-027/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-027/dump.out | 16 + .../testdata/7_3_1/ws/tcswrite/ec-027/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ec-027/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-027/ip.pcap | Bin 0 -> 584 bytes .../testdata/7_3_1/ws/tcswrite/ec-027/ip.rc | 1 + .../tcswrite/ec-027/netlink_route_dump.pcap | Bin 0 -> 2384 bytes .../7_3_1/ws/tcswrite/ec-028/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-028/dump.out | 16 + .../testdata/7_3_1/ws/tcswrite/ec-028/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ec-028/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-028/ip.pcap | Bin 0 -> 608 bytes .../testdata/7_3_1/ws/tcswrite/ec-028/ip.rc | 1 + .../tcswrite/ec-028/netlink_route_dump.pcap | Bin 0 -> 2384 bytes .../7_3_1/ws/tcswrite/ec-029/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-029/dump.out | 15 + .../testdata/7_3_1/ws/tcswrite/ec-029/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-029/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-029/ip.pcap | Bin 0 -> 484 bytes .../testdata/7_3_1/ws/tcswrite/ec-029/ip.rc | 1 + .../tcswrite/ec-029/netlink_route_dump.pcap | Bin 0 -> 2364 bytes .../7_3_1/ws/tcswrite/ec-030/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-030/dump.out | 16 + .../testdata/7_3_1/ws/tcswrite/ec-030/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ec-030/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-030/ip.pcap | Bin 0 -> 624 bytes .../testdata/7_3_1/ws/tcswrite/ec-030/ip.rc | 1 + .../tcswrite/ec-030/netlink_route_dump.pcap | Bin 0 -> 2384 bytes .../7_3_1/ws/tcswrite/ec-031/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-031/dump.out | 16 + .../testdata/7_3_1/ws/tcswrite/ec-031/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ec-031/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-031/ip.pcap | Bin 0 -> 624 bytes .../testdata/7_3_1/ws/tcswrite/ec-031/ip.rc | 1 + .../tcswrite/ec-031/netlink_route_dump.pcap | Bin 0 -> 2384 bytes .../7_3_1/ws/tcswrite/ec-032/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-032/dump.out | 16 + .../testdata/7_3_1/ws/tcswrite/ec-032/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ec-032/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-032/ip.pcap | Bin 0 -> 624 bytes .../testdata/7_3_1/ws/tcswrite/ec-032/ip.rc | 1 + .../tcswrite/ec-032/netlink_route_dump.pcap | Bin 0 -> 2384 bytes .../7_3_1/ws/tcswrite/ec-033/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-033/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-033/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-033/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-033/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-033/ip.rc | 1 + .../tcswrite/ec-033/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-034/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-034/dump.out | 2 + .../testdata/7_3_1/ws/tcswrite/ec-034/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-034/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-034/ip.pcap | Bin 0 -> 348 bytes .../testdata/7_3_1/ws/tcswrite/ec-034/ip.rc | 1 + .../tcswrite/ec-034/netlink_route_dump.pcap | Bin 0 -> 656 bytes .../7_3_1/ws/tcswrite/ec-035/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-035/dump.out | 2 + .../testdata/7_3_1/ws/tcswrite/ec-035/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-035/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-035/ip.pcap | Bin 0 -> 348 bytes .../testdata/7_3_1/ws/tcswrite/ec-035/ip.rc | 1 + .../tcswrite/ec-035/netlink_route_dump.pcap | Bin 0 -> 656 bytes .../7_3_1/ws/tcswrite/ec-036/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-036/dump.out | 2 + .../testdata/7_3_1/ws/tcswrite/ec-036/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-036/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-036/ip.pcap | Bin 0 -> 348 bytes .../testdata/7_3_1/ws/tcswrite/ec-036/ip.rc | 1 + .../tcswrite/ec-036/netlink_route_dump.pcap | Bin 0 -> 656 bytes .../7_3_1/ws/tcswrite/ec-037/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-037/dump.out | 2 + .../testdata/7_3_1/ws/tcswrite/ec-037/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-037/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-037/ip.pcap | Bin 0 -> 348 bytes .../testdata/7_3_1/ws/tcswrite/ec-037/ip.rc | 1 + .../tcswrite/ec-037/netlink_route_dump.pcap | Bin 0 -> 656 bytes .../7_3_1/ws/tcswrite/ec-038/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-038/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-038/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-038/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-038/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-038/ip.rc | 1 + .../tcswrite/ec-038/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-039/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-039/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-039/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-039/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-039/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-039/ip.rc | 1 + .../tcswrite/ec-039/netlink_route_dump.pcap | Bin 0 -> 492 bytes .../7_3_1/ws/tcswrite/ec-040/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-040/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-040/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-040/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-040/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-040/ip.rc | 1 + .../tcswrite/ec-040/netlink_route_dump.pcap | Bin 0 -> 492 bytes .../7_3_1/ws/tcswrite/ec-041/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-041/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-041/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-041/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-041/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-041/ip.rc | 1 + .../tcswrite/ec-041/netlink_route_dump.pcap | Bin 0 -> 492 bytes .../7_3_1/ws/tcswrite/ec-042/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-042/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-042/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-042/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-042/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-042/ip.rc | 1 + .../tcswrite/ec-042/netlink_route_dump.pcap | Bin 0 -> 492 bytes .../7_3_1/ws/tcswrite/ec-043/cmd.json | 61 ++++ .../7_3_1/ws/tcswrite/ec-043/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-043/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-043/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-043/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-043/ip.rc | 1 + .../tcswrite/ec-043/netlink_route_dump.pcap | Bin 0 -> 476 bytes .../7_3_1/ws/tcswrite/ec-044/class.out | 1 + .../7_3_1/ws/tcswrite/ec-044/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-044/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-044/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-044/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-044/ip.pcap | Bin 0 -> 324 bytes .../testdata/7_3_1/ws/tcswrite/ec-044/ip.rc | 1 + .../tcswrite/ec-044/netlink_route_class.pcap | Bin 0 -> 492 bytes .../tcswrite/ec-044/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-045/class.out | 1 + .../7_3_1/ws/tcswrite/ec-045/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-045/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-045/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-045/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-045/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-045/ip.rc | 1 + .../tcswrite/ec-045/netlink_route_class.pcap | Bin 0 -> 492 bytes .../tcswrite/ec-045/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-046/class.out | 1 + .../7_3_1/ws/tcswrite/ec-046/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-046/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-046/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-046/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-046/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-046/ip.rc | 1 + .../tcswrite/ec-046/netlink_route_class.pcap | Bin 0 -> 492 bytes .../tcswrite/ec-046/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-047/class.out | 1 + .../7_3_1/ws/tcswrite/ec-047/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-047/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-047/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-047/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-047/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-047/ip.rc | 1 + .../tcswrite/ec-047/netlink_route_class.pcap | Bin 0 -> 492 bytes .../tcswrite/ec-047/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-048/class.out | 1 + .../7_3_1/ws/tcswrite/ec-048/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-048/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-048/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-048/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-048/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-048/ip.rc | 1 + .../tcswrite/ec-048/netlink_route_class.pcap | Bin 0 -> 492 bytes .../tcswrite/ec-048/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-049/class.out | 0 .../7_3_1/ws/tcswrite/ec-049/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-049/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-049/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-049/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-049/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-049/ip.rc | 1 + .../tcswrite/ec-049/netlink_route_class.pcap | Bin 0 -> 296 bytes .../tcswrite/ec-049/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-050/class.out | 1 + .../7_3_1/ws/tcswrite/ec-050/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-050/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-050/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-050/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-050/ip.pcap | Bin 0 -> 324 bytes .../testdata/7_3_1/ws/tcswrite/ec-050/ip.rc | 1 + .../tcswrite/ec-050/netlink_route_class.pcap | Bin 0 -> 508 bytes .../tcswrite/ec-050/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-051/class.out | 1 + .../7_3_1/ws/tcswrite/ec-051/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-051/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-051/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-051/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-051/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-051/ip.rc | 1 + .../tcswrite/ec-051/netlink_route_class.pcap | Bin 0 -> 508 bytes .../tcswrite/ec-051/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-052/class.out | 1 + .../7_3_1/ws/tcswrite/ec-052/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-052/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-052/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-052/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-052/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-052/ip.rc | 1 + .../tcswrite/ec-052/netlink_route_class.pcap | Bin 0 -> 508 bytes .../tcswrite/ec-052/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-053/class.out | 1 + .../7_3_1/ws/tcswrite/ec-053/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-053/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-053/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-053/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-053/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-053/ip.rc | 1 + .../tcswrite/ec-053/netlink_route_class.pcap | Bin 0 -> 508 bytes .../tcswrite/ec-053/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-054/class.out | 1 + .../7_3_1/ws/tcswrite/ec-054/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-054/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-054/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-054/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-054/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-054/ip.rc | 1 + .../tcswrite/ec-054/netlink_route_class.pcap | Bin 0 -> 508 bytes .../tcswrite/ec-054/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-055/class.out | 0 .../7_3_1/ws/tcswrite/ec-055/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-055/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-055/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-055/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-055/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-055/ip.rc | 1 + .../tcswrite/ec-055/netlink_route_class.pcap | Bin 0 -> 296 bytes .../tcswrite/ec-055/netlink_route_dump.pcap | Bin 0 -> 472 bytes .../7_3_1/ws/tcswrite/ec-056/class.out | 2 + .../7_3_1/ws/tcswrite/ec-056/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-056/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-056/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-056/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-056/ip.pcap | Bin 0 -> 376 bytes .../testdata/7_3_1/ws/tcswrite/ec-056/ip.rc | 1 + .../tcswrite/ec-056/netlink_route_class.pcap | Bin 0 -> 776 bytes .../tcswrite/ec-056/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-057/class.out | 2 + .../7_3_1/ws/tcswrite/ec-057/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-057/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-057/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-057/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-057/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-057/ip.rc | 1 + .../tcswrite/ec-057/netlink_route_class.pcap | Bin 0 -> 760 bytes .../tcswrite/ec-057/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-058/class.out | 2 + .../7_3_1/ws/tcswrite/ec-058/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-058/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-058/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-058/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-058/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-058/ip.rc | 1 + .../tcswrite/ec-058/netlink_route_class.pcap | Bin 0 -> 760 bytes .../tcswrite/ec-058/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-059/class.out | 2 + .../7_3_1/ws/tcswrite/ec-059/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-059/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-059/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-059/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-059/ip.pcap | Bin 0 -> 344 bytes .../testdata/7_3_1/ws/tcswrite/ec-059/ip.rc | 1 + .../tcswrite/ec-059/netlink_route_class.pcap | Bin 0 -> 744 bytes .../tcswrite/ec-059/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-060/class.out | 2 + .../7_3_1/ws/tcswrite/ec-060/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-060/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-060/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-060/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-060/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-060/ip.rc | 1 + .../tcswrite/ec-060/netlink_route_class.pcap | Bin 0 -> 760 bytes .../tcswrite/ec-060/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-061/class.out | 2 + .../7_3_1/ws/tcswrite/ec-061/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-061/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-061/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-061/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-061/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-061/ip.rc | 1 + .../tcswrite/ec-061/netlink_route_class.pcap | Bin 0 -> 776 bytes .../tcswrite/ec-061/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-062/class.out | 2 + .../7_3_1/ws/tcswrite/ec-062/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-062/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-062/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-062/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-062/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-062/ip.rc | 1 + .../tcswrite/ec-062/netlink_route_class.pcap | Bin 0 -> 776 bytes .../tcswrite/ec-062/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-063/class.out | 1 + .../7_3_1/ws/tcswrite/ec-063/cmd.json | 70 +++++ .../7_3_1/ws/tcswrite/ec-063/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-063/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-063/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-063/ip.pcap | Bin 0 -> 312 bytes .../testdata/7_3_1/ws/tcswrite/ec-063/ip.rc | 1 + .../tcswrite/ec-063/netlink_route_class.pcap | Bin 0 -> 528 bytes .../tcswrite/ec-063/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-064/class.out | 3 + .../7_3_1/ws/tcswrite/ec-064/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-064/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-064/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-064/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-064/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-064/ip.rc | 1 + .../tcswrite/ec-064/netlink_route_class.pcap | Bin 0 -> 764 bytes .../tcswrite/ec-064/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-065/class.out | 3 + .../7_3_1/ws/tcswrite/ec-065/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-065/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-065/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-065/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-065/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-065/ip.rc | 1 + .../tcswrite/ec-065/netlink_route_class.pcap | Bin 0 -> 764 bytes .../tcswrite/ec-065/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-066/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-066/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-066/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-066/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-066/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-066/ip.rc | 1 + .../tcswrite/ec-066/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-067/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-067/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-067/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-067/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-067/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-067/ip.rc | 1 + .../tcswrite/ec-067/netlink_route_dump.pcap | Bin 0 -> 644 bytes .../7_3_1/ws/tcswrite/ec-068/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-068/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-068/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-068/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-068/ip.pcap | Bin 0 -> 332 bytes .../testdata/7_3_1/ws/tcswrite/ec-068/ip.rc | 1 + .../tcswrite/ec-068/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-069/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-069/dump.out | 2 + .../testdata/7_3_1/ws/tcswrite/ec-069/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-069/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-069/ip.pcap | Bin 0 -> 348 bytes .../testdata/7_3_1/ws/tcswrite/ec-069/ip.rc | 1 + .../tcswrite/ec-069/netlink_route_dump.pcap | Bin 0 -> 656 bytes .../7_3_1/ws/tcswrite/ec-070/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-070/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-070/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-070/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-070/ip.pcap | Bin 0 -> 340 bytes .../testdata/7_3_1/ws/tcswrite/ec-070/ip.rc | 1 + .../tcswrite/ec-070/netlink_route_dump.pcap | Bin 0 -> 492 bytes .../7_3_1/ws/tcswrite/ec-071/cmd.json | 56 ++++ .../7_3_1/ws/tcswrite/ec-071/dump.out | 15 + .../testdata/7_3_1/ws/tcswrite/ec-071/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ec-071/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-071/ip.pcap | Bin 0 -> 556 bytes .../testdata/7_3_1/ws/tcswrite/ec-071/ip.rc | 1 + .../tcswrite/ec-071/netlink_route_dump.pcap | Bin 0 -> 2348 bytes .../7_3_1/ws/tcswrite/ec-072/class.out | 2 + .../7_3_1/ws/tcswrite/ec-072/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-072/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-072/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-072/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-072/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-072/ip.rc | 1 + .../tcswrite/ec-072/netlink_route_class.pcap | Bin 0 -> 760 bytes .../tcswrite/ec-072/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-073/class.out | 2 + .../7_3_1/ws/tcswrite/ec-073/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-073/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-073/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-073/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-073/ip.pcap | Bin 0 -> 344 bytes .../testdata/7_3_1/ws/tcswrite/ec-073/ip.rc | 1 + .../tcswrite/ec-073/netlink_route_class.pcap | Bin 0 -> 744 bytes .../tcswrite/ec-073/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ec-074/class.out | 2 + .../7_3_1/ws/tcswrite/ec-074/cmd.json | 65 +++++ .../7_3_1/ws/tcswrite/ec-074/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-074/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-074/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-074/ip.pcap | Bin 0 -> 360 bytes .../testdata/7_3_1/ws/tcswrite/ec-074/ip.rc | 1 + .../tcswrite/ec-074/netlink_route_class.pcap | Bin 0 -> 760 bytes .../tcswrite/ec-074/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../testdata/7_3_1/ws/tcswrite/ec-075/b.txt | 3 + .../7_3_1/ws/tcswrite/ec-075/class.out | 3 + .../7_3_1/ws/tcswrite/ec-075/cmd.json | 66 +++++ .../7_3_1/ws/tcswrite/ec-075/dump.out | 1 + .../testdata/7_3_1/ws/tcswrite/ec-075/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ec-075/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ec-075/ip.pcap | Bin 0 -> 884 bytes .../testdata/7_3_1/ws/tcswrite/ec-075/ip.rc | 1 + .../tcswrite/ec-075/netlink_route_class.pcap | Bin 0 -> 1008 bytes .../tcswrite/ec-075/netlink_route_dump.pcap | Bin 0 -> 484 bytes .../7_3_1/ws/tcswrite/ng-001/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-001/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-001/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-001/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-001/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-002/cmd.json | 56 ++++ .../testdata/7_3_1/ws/tcswrite/ng-002/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-002/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-002/ip.pcap | Bin 0 -> 416 bytes .../testdata/7_3_1/ws/tcswrite/ng-002/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-003/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-003/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-003/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-003/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-003/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-004/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-004/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-004/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-004/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-004/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-005/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-005/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-005/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-005/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-005/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-006/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-006/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-006/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-006/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-006/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-007/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-007/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-007/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-007/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-007/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-008/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-008/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-008/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-008/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-008/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-009/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-009/ip.err | 4 + .../testdata/7_3_1/ws/tcswrite/ng-009/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-009/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-009/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-010/cmd.json | 55 ++++ .../testdata/7_3_1/ws/tcswrite/ng-010/ip.err | 21 ++ .../testdata/7_3_1/ws/tcswrite/ng-010/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-010/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-010/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-011/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-011/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-011/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-011/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-011/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-012/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-012/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-012/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-012/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-012/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-013/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-013/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-013/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-013/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-013/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-014/cmd.json | 56 ++++ .../testdata/7_3_1/ws/tcswrite/ng-014/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-014/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-014/ip.pcap | Bin 0 -> 424 bytes .../testdata/7_3_1/ws/tcswrite/ng-014/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-015/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-015/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-015/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-015/ip.pcap | Bin 0 -> 580 bytes .../testdata/7_3_1/ws/tcswrite/ng-015/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-016/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-016/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-016/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-016/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-016/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-017/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-017/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-017/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-017/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-017/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-018/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-018/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-018/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-018/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-018/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-019/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-019/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-019/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-019/ip.pcap | Bin 0 -> 624 bytes .../testdata/7_3_1/ws/tcswrite/ng-019/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-020/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-020/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-020/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-020/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-020/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-021/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-021/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-021/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-021/ip.pcap | Bin 0 -> 688 bytes .../testdata/7_3_1/ws/tcswrite/ng-021/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-022/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-022/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-022/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-022/ip.pcap | Bin 0 -> 1004 bytes .../testdata/7_3_1/ws/tcswrite/ng-022/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-023/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-023/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-023/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-023/ip.pcap | Bin 0 -> 1396 bytes .../testdata/7_3_1/ws/tcswrite/ng-023/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-024/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-024/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-024/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-024/ip.pcap | Bin 0 -> 748 bytes .../testdata/7_3_1/ws/tcswrite/ng-024/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-025/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-025/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-025/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-025/ip.pcap | Bin 0 -> 604 bytes .../testdata/7_3_1/ws/tcswrite/ng-025/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-026/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-026/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-026/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-026/ip.pcap | Bin 0 -> 604 bytes .../testdata/7_3_1/ws/tcswrite/ng-026/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-027/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-027/ip.err | 0 .../testdata/7_3_1/ws/tcswrite/ng-027/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-027/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-027/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-028/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-028/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-028/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-028/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-028/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-029/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-029/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-029/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-029/ip.pcap | Bin 0 -> 484 bytes .../testdata/7_3_1/ws/tcswrite/ng-029/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-030/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-030/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-030/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-030/ip.pcap | Bin 0 -> 644 bytes .../testdata/7_3_1/ws/tcswrite/ng-030/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-031/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-031/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-031/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-031/ip.pcap | Bin 0 -> 832 bytes .../testdata/7_3_1/ws/tcswrite/ng-031/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-032/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-032/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-032/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-032/ip.pcap | Bin 0 -> 456 bytes .../testdata/7_3_1/ws/tcswrite/ng-032/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-033/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-033/ip.err | 3 + .../testdata/7_3_1/ws/tcswrite/ng-033/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-033/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-033/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-034/cmd.json | 51 ++++ .../testdata/7_3_1/ws/tcswrite/ng-034/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-034/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-034/ip.pcap | Bin 0 -> 440 bytes .../testdata/7_3_1/ws/tcswrite/ng-034/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-035/cmd.json | 50 ++++ .../testdata/7_3_1/ws/tcswrite/ng-035/ip.err | 2 + .../testdata/7_3_1/ws/tcswrite/ng-035/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-035/ip.pcap | Bin 0 -> 24 bytes .../testdata/7_3_1/ws/tcswrite/ng-035/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-036/cmd.json | 56 ++++ .../testdata/7_3_1/ws/tcswrite/ng-036/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-036/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-036/ip.pcap | Bin 0 -> 588 bytes .../testdata/7_3_1/ws/tcswrite/ng-036/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-037/cmd.json | 56 ++++ .../testdata/7_3_1/ws/tcswrite/ng-037/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-037/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-037/ip.pcap | Bin 0 -> 588 bytes .../testdata/7_3_1/ws/tcswrite/ng-037/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-038/cmd.json | 56 ++++ .../testdata/7_3_1/ws/tcswrite/ng-038/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-038/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-038/ip.pcap | Bin 0 -> 444 bytes .../testdata/7_3_1/ws/tcswrite/ng-038/ip.rc | 1 + .../7_3_1/ws/tcswrite/ng-039/cmd.json | 56 ++++ .../testdata/7_3_1/ws/tcswrite/ng-039/ip.err | 1 + .../testdata/7_3_1/ws/tcswrite/ng-039/ip.out | 0 .../testdata/7_3_1/ws/tcswrite/ng-039/ip.pcap | Bin 0 -> 444 bytes .../testdata/7_3_1/ws/tcswrite/ng-039/ip.rc | 1 + tools/nlcapgen/main.go | 1 + tools/nlcapgen/matrix_tcswrite.go | 275 ++++++++++++++++++ tools/nlcapgen/matrix_tcswrite_test.go | 136 +++++++++ 778 files changed, 7595 insertions(+) create mode 100644 nix/microvms/workbench/tcswrite.rows.jsonl create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-008/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-012/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-029/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-040/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-041/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-045/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-058/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-074/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/b.txt create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/class.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/dump.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/netlink_route_class.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/netlink_route_dump.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-001/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-001/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-001/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-001/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-001/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-004/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-004/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-004/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-004/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-004/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-005/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-005/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-005/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-005/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-005/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-006/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-006/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-006/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-006/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-006/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-007/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-007/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-007/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-007/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-007/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-008/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-008/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-008/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-008/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-008/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-009/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-009/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-009/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-009/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-009/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-010/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-010/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-010/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-010/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-010/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-011/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-011/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-011/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-011/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-011/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-012/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-012/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-012/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-012/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-012/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-013/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-013/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-013/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-013/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-013/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-017/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-017/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-017/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-017/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-017/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-018/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-018/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-018/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-018/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-018/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-019/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-019/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-019/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-019/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-019/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-020/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-020/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-020/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-020/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-020/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-028/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-028/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-028/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-028/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-028/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-034/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-034/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-034/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-034/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-034/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-035/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-035/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-035/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-035/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-035/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-036/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-036/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-036/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-036/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-036/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.rc create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/cmd.json create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.err create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.out create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.pcap create mode 100644 pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.rc create mode 100644 tools/nlcapgen/matrix_tcswrite.go create mode 100644 tools/nlcapgen/matrix_tcswrite_test.go diff --git a/docs/netlink/gotc-status.md b/docs/netlink/gotc-status.md index 3e9971fd4..a50b1f9e9 100644 --- a/docs/netlink/gotc-status.md +++ b/docs/netlink/gotc-status.md @@ -229,6 +229,12 @@ never sent to a live kernel. - **17L (live diff): done.** All 125 tcqwrite rows on the workbench: gotc's `GOTC_WRITE_OUT` requests equal tc's byte for byte (ifindex aside), and stdout, stderr and rc match wherever tc stops before the kernel (V040). +**Increment 18: qdisc and class writes, the increment-15 kinds** (drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs, +etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dry-run, as in 17. + +- **18C (captures): done.** `tcswrite`: 114 rows (69 writes, 45 refusals), each write with a `qdisc`/`class show` + readback. Two batches on one boot agree on every row (V042). + ## Ledger | id | task | what was verified | @@ -280,6 +286,7 @@ never sent to a live kernel. | V039 | 17W | **gotc writes.** `qwrite.go` (`gotc_write`; `qwrite_off.go` keeps refusing without it): do_qdisc's verbs (add EXCL\|CREATE, change 0, replace CREATE\|REPLACE, link REPLACE, delete) and do_class's (replace is CREATE alone), both argument loops with every lead kept as tc behaves (W1 help goes on, W2 ingress/clsact overwrite handle and break, W3 `handle 0: handle 1:`, W4 parser failure rc 1, W5 unreachable Garbage arm, W8 pfifo_fast's missing parse_qopt, W13 refused rather than hang, W14 silent stab), parse_noqopt for unknown kinds, and kinds of increments 15/16 refused by name. `sendWrite`: a replay compares and echoes the recorded ack (rtnl_talk, rc 2 on error); on the kernel socket the request is appended to `GOTC_WRITE_OUT`, else `ErrWriteNotApplied`; `LiveSource.Talk` refuses anything but RTM_GET*. Per-kind parsers in `qw_fifo.go`, `qw_fq.go`, `qw_htb.go`, `qw_tbf.go`, `qw_netem.go` (distribution tables from `TC_LIB_DIR`/`/usr/lib/tc`, copies in `testdata/tc-lib`), `qw_ingress.go`. **Corpus:** all 125 tcqwrite rows replay byte for byte (requests, stdout, stderr, rc), and tcqdisc/ng-018 and tcclass/ng-011 are now sent. **`TestGotcTdcWrites`:** of 410 tdc qdisc/class writes, 173 match exactly and 237 are refused by kind (pinned per kind). **`TestGotcQwrite`** (34 rows), `TestGotcPercentRate`, `TestGotcWriteOut`, `TestIsGetRequest`, plus per-kind tables (`TestParseFqQopts`, `TestParseHtb`, `TestParseTbfSfq`, `TestRedEval`, netem's). Coverage 85.3% (tagged). **New leads** for 17B: q_fq.c orphan_mask says `Illegal "initial_quantum"`; fq maxrate percent goes through 32-bit get_percent_rate; htb and tbf build rtables from the 32-bit-clamped rate beside RATE64; htb `debug` stops silently at a digit outside 0-3; tbf's `"limit" and "/latency"`; sfq `depth` says `Illegal "flows"` and `quantum` says `Illegal "limit"`; sfq red with avpkt 0 divides by zero (gotc refuses); netem `duplicate P C` drops the correlation (ec-062); netem's second `loss` message holds a newline inside the quotes; an empty `.dist` fails silently. | | V040 | 17L | **Live diff** on the workbench (kernel 7.3.1, tc 7.2.0 `/nix/store/x1pwsbz5cm23hk58b7fcpn3hhg9j7gwh-iproute2-7.2.0`): gotc built with `-tags gotc_write` at 17W (`/nix/store/4jqbwh9si1kacb7frig6hwxkalkfdgr1-gotc-write-17l`), with `GOTC_CONF_USR_DIR` and `TC_LIB_DIR` set to tc's `share/iproute2` and `lib/tc`. Each row of `tcqwrite.rows.jsonl` runs its pre steps in a fresh named namespace, then gotc with `GOTC_WRITE_OUT` (it sends only its link lookups), then tc, which applies the write. gotc's requests are compared with tc's from the corpus pcaps (seq and pid zeroed), and stdout, stderr and rc with the live tc's. **Result: 125/125.** Every request matches byte for byte, the batch rows' two included, with one masked field: the tcmsg ifindex, 2 live and 3 in the capture, because nlcapgen's nlmon device took index 2 in the capture namespace (tc in the live namespace also has d0 at 2). **Named exceptions** (request identical, output differs because gotc never hears the kernel): ec-092 (htb's quantum warning) and the 12 kernel refusals ng-001, 002, 003, 007, 012, 014, 020–025, where tc prints the extack and exits 2 and gotc exits 0. Everywhere tc stops before sending (ng-004–006, 008–011, 013, 015–019, help rows ec-088, ec-099), stdout, stderr and rc are identical. **tc against the corpus:** stdout, stderr and rc match `ws/tcqwrite` on all 125 rows, so nothing has drifted. **VM:** pre-checked (`free -g`, port 12061 held only by this session's boot, bracketed pgrep). This run loaded no module (17C's captures had already loaded all eight on this boot), and none were removed here. No namespace or extra link is left, there are no core files, `/tmp/t17l` is removed, and the VM is powered off (`nlcap-ws down`; port 12061 free). | | V041 | 17W | **Review fix (PR 356):** `cStrtod` dropped strtod's ERANGE on a hex float, so `0x1p1024` passed get_time and get_rate64 as an integer conversion of infinity: gotc sent where tc says `Illegal "target"` (fq_codel), `Illegal "latency"`/`"rate"` (netem) and `Illegal "timer_slack"` (fq), each rc 1. `hexFloat` now reports the overflow and `cStrtod` returns it, as the decimal path does. `inf` stays no ERANGE. Pinned by `TestCStrtod` (hex overflow ±, `0x1p1023` the largest power) and `TestGotcHexOverflow` (the four commands: rc 1, tc's stderr, no request). | +| V042 | 18C | **Captures** `tcswrite`: `tools/nlcapgen/matrix_tcswrite.go` (+ `TestTcSwriteSpace`), rows in `nix/microvms/workbench/tcswrite.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/` (114 rows, 2.8M). Devices: d0 (one queue) and d1 (8 tx queues, for multiq, mqprio and taprio). **Rows:** every add body of the nine kinds (hfsc with and without `default`; ets bands/strict/quanta/priomap in four shapes; software mqprio; taprio with cycle-time and extension, txtime-assist flags and delay, H and R entries with `max-sdu 0 0`; cbs with `offload 0`; etf with delta, `skip_sock_check` and `deadline_mode`), then change, replace and delete on each; drr, qfq and hfsc classes (quantum, weight/maxpkt, rt/ls/sc/ul in the m1/d/m2 and umax/dmax/rate forms) with change, replace and delete; ets class change and replace; a three-line hfsc batch. **Leads pinned:** W27 (ets `priomap 256` is sent as band 0), W3 in ets, hfsc, cbs, etf and taprio, W39 (`umax 5000`), W40 (`umax 100000 dmax 1us rate 1kbit` is accepted), W41 (`rt ... sc ...` accepted; `rt m1 bogus` prints two errors). **Refusals (45):** drr, qfq, multiq, hfsc, ets and cbs parse errors (rc 1); W33 (`mqprio bogus` and W31's `hw 0 mode channel` exit 255 through invarg, against `num_tc x`'s rc 1); W30 (`queues` twice: the pair-count error); W31's `mode channel hw 0` sent and refused by the kernel (EINVAL); W32 (one `min_rate` for two classes sent, EINVAL: no offload); W34 (a bad `base-time` or `cycle-time` sends no entries: `There should be at least one entry`, EINVAL); W35 (`flags zz`: rc 1, no message; `taprio bogus`: a bare `Unknown argument`); W36 (no num_tc: map and queues dropped, `'mqprio' configuration is necessary`); W16 (hfsc `m2 40gbit`) and W9 (`10%` on a dummy); the kernel's drr quantum 0, ets strict-band quantum, mqprio hw default, taprio on a single-queue device (ENOTSUP), no clockid, max-sdu over the MTU (ERANGE), cbs and etf offload (ENOTSUP); and mqprio and etf change/replace (EINVAL, K31). **K46 (new):** a kind with no kernel change op fails only when the request carries `TCA_OPTIONS` (sch_api.c `qdisc_change`), so `qdisc change`/`replace` of an optionless drr, qfq or multiq succeeds. Every expectation was first checked against the host's tc 7.2.0 in an unprivileged netns (kernel 7.3.3), twice, with identical output. **Gate:** pre-checked (`free -g`, port 12061 free, no workbench process), booted, two batches on one boot, 114/114 OK each, with stdout, stderr, rc and every readback identical. **VM:** the 15 modules the run added were removed with `modprobe -r` (lsmod back to the 86-module baseline); no namespace, no core files; powered off with `down`. | | DOC009 | 16B | **Write-up:** `docs/netlink/upstream/iproute2-tc-aqm.md`: status header, reachability, contents, 24 summary rows, six sections, and K32–K43. Not submitted to netdev. **At HEAD** (GitHub mirror, `5d13122576d6`, 2026-11-26): none of the thirteen printers, `tc_red.c`, `tc_qevent.c` or `tc_qdisc.c` has a commit since v7.2.0, so all are present. **Confirmed in the corpus:** Q66 (ec-007), Q73 (ec-021, pw-021), Q79 (ec-038), Q80/Q81 (pw-035, ec-040, pw-040, pw-042), Q83 (pw-052), Q84 (pw-052, ec-055, pw-055), Q86 (ec-053), Q87 (ec-001, pw-005). **Latent, with unit rows:** Q67–Q72, Q74–Q78, Q82, Q85, Q88, Q89. **Dropped:** none. **New leads:** Q88 (gred_parse_vqs's plain parse_rtattr misses a VQ_ENTRY flagged NLA_F_NESTED), Q89 (an unknown dualpi2 ECN mask warns twice and prints an empty word). **Kernel notes:** K32–K42 confirmed at v7.4-rc4, refined: red's qevents only when bound; idle cake MIN_NETLEN 65535; cake_mq no dump_stats; plug no .dump; skbprio 64 classes; dualpi2 rejects both step_thresh forms (sch_dualpi2.c:812). **K43 (new):** codel times lose 1 µs (target 4ms dumps 3999, pw-024). **Unit rows:** TestGotcAqm adds Q88 (44 rows). **Bug classes:** none new; Q88 and Q89 fit C3/C15 and C10. | | DOC010 | 17B | **Write-up:** `docs/netlink/upstream/iproute2-tc-write.md`: status header, reachability, contents, 25 summary rows, eight sections, K44–K45. Not submitted to netdev. **At HEAD** (GitHub mirror, `35033e4713fe`, 2026-11-27): no tc file in scope has a commit since v7.2.0; `lib/utils.c`'s one (`552d9842b1f4`, resolve_address's cache) touches none of it, so all are present. **Confirmed in the corpus:** W1 (ec-088, ec-099), W2 (ec-079, ng-011), W3 (ec-089), W4 (ng-004, ng-005, ng-019), W9 (ng-013), W17 (ec-092), W22 (ec-062). **Latent, with unit rows:** W5, W6, W8, W10–W16, W18–W21, W23–W25. **Dropped:** W7. **Kernel notes:** K44 (each verb's errno and extack, ng-001–003, 007, 014, 020–025), K45 (extack errors and warnings printed in place of RTNETLINK answers). **Bug classes:** candidates for the user: a wrong option named in a copied error message (W15, W20) and a divide by a user-given zero (W21). | | V033 | 16C | **Captures** `tcaqm`: `tools/nlcapgen/matrix_tcaqm.go` (+ `TestTcAqmSpace`), rows in `nix/microvms/workbench/tcaqm.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcaqm/` (132 rows, 2.7M). Modules: sch_cake (with cake_mq), sch_choke, sch_codel, sch_dualpi2, sch_fq_pie, sch_gred, sch_hhf, sch_pie, sch_plug, sch_red, sch_sfb, sch_skbprio. **Fixtures (26):** red default and `ecn harddrop adaptive qevent early_drop block 10`; choke with ecn; gred `setup vqs 4 default 0 grio` with VQs 0 and 1 changed in, and gred with no VQ configured; sfb default and `rehash 5000000 db 5000000` (Q73); codel, pie, fq_pie and hhf defaults plus an option variant each; cake default, plus four variants covering every diffserv mode, the flow modes, nat/wash/ingress, both ack-filters, no-split-gso, rtt, atm overhead mpu, memlimit, fwmark 0xff, autorate-ingress and docsis; cake_mq on a four-queue dummy; dualpi2 default, step_thresh in packets with drop_enqueue/drop_on_overload/any_ect/no_split_gso, and step_thresh in time; plug; skbprio (with `class show`). Each gets `qdisc show` plus `-s`/`-d`/`-o` forms; batches: cake `-s` qdisc/class/qdisc and red `-d` twice. **Refusals:** ng-001 cake_mq under plug (ENOTSUP, "Parent qdisc is not classful"), ng-002 cake_mq autorate-ingress (ENOTSUP, K39), ng-003 gred change over plug (EINVAL), ng-004 `show dev nosuch` (rc 1). **Notes:** batch lines take no options, so the batches pass `-s`/`-d` on tc's own command line; hhf's `admit_bytes 64Kb` is not accepted, so the fixture uses 65536. Q66 is confirmed live (`Scell_log 15qevent early_drop block 10`), and Q73 (sfb prints `rehash 705s`), Q80, Q81, Q83 and Q84 show in the captures. misspell flags dualpi2's `any_ect`; a scoped exclusion in both golangci configs covers the tcaqm and dualpi2 files. **Gate:** two batches on one boot, 132/132 OK, stdout, stderr and rc identical; `TestTcAqmSpace` pins 132 rows, 26 fixtures and 21 cases; no row sends packets. | diff --git a/nix/microvms/workbench/tcswrite.rows.jsonl b/nix/microvms/workbench/tcswrite.rows.jsonl new file mode 100644 index 000000000..e946764f7 --- /dev/null +++ b/nix/microvms/workbench/tcswrite.rows.jsonl @@ -0,0 +1,117 @@ +# Generated by `nlcapgen matrix -family tcswrite -seed 1 -random 0`. +# Do not edit; regenerate. tools/nlcapgen/matrix.go explains the strategies. +# 114 rows. +{"id":"tcswrite/ec-001","desc":"positive: opt=plain cmd=drr0:qdisc_add_dev_d0_root_handle_1:_drr","cmd":"tc qdisc add dev d0 root handle 1: drr","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr0","json":"0","words":"qdisc add dev d0 root handle 1: drr"}} +{"id":"tcswrite/ec-002","desc":"positive: opt=plain cmd=drr-change:qdisc_change_dev_d0_root_handle_1:_drr","cmd":"tc qdisc change dev d0 root handle 1: drr","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-change","json":"0","words":"qdisc change dev d0 root handle 1: drr"}} +{"id":"tcswrite/ec-003","desc":"positive: opt=plain cmd=drr-replace:qdisc_replace_dev_d0_root_handle_1:_drr","cmd":"tc qdisc replace dev d0 root handle 1: drr","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-replace","json":"0","words":"qdisc replace dev d0 root handle 1: drr"}} +{"id":"tcswrite/ec-004","desc":"positive: opt=plain cmd=drr-delete:qdisc_delete_dev_d0_root","cmd":"tc qdisc delete dev d0 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-delete","json":"0","words":"qdisc delete dev d0 root"}} +{"id":"tcswrite/ec-005","desc":"positive: opt=plain cmd=qfq0:qdisc_add_dev_d0_root_handle_1:_qfq","cmd":"tc qdisc add dev d0 root handle 1: qfq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq0","json":"0","words":"qdisc add dev d0 root handle 1: qfq"}} +{"id":"tcswrite/ec-006","desc":"positive: opt=plain cmd=qfq-change:qdisc_change_dev_d0_root_handle_1:_qfq","cmd":"tc qdisc change dev d0 root handle 1: qfq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-change","json":"0","words":"qdisc change dev d0 root handle 1: qfq"}} +{"id":"tcswrite/ec-007","desc":"positive: opt=plain cmd=qfq-replace:qdisc_replace_dev_d0_root_handle_1:_qfq","cmd":"tc qdisc replace dev d0 root handle 1: qfq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-replace","json":"0","words":"qdisc replace dev d0 root handle 1: qfq"}} +{"id":"tcswrite/ec-008","desc":"positive: opt=plain cmd=qfq-delete:qdisc_delete_dev_d0_root","cmd":"tc qdisc delete dev d0 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-delete","json":"0","words":"qdisc delete dev d0 root"}} +{"id":"tcswrite/ec-009","desc":"positive: opt=plain cmd=multiq0:qdisc_add_dev_d1_root_handle_1:_multiq","cmd":"tc qdisc add dev d1 root handle 1: multiq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"multiq0","json":"0","words":"qdisc add dev d1 root handle 1: multiq"}} +{"id":"tcswrite/ec-010","desc":"positive: opt=plain cmd=multiq-change:qdisc_change_dev_d1_root_handle_1:_multiq","cmd":"tc qdisc change dev d1 root handle 1: multiq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: multiq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"multiq-change","json":"0","words":"qdisc change dev d1 root handle 1: multiq"}} +{"id":"tcswrite/ec-011","desc":"positive: opt=plain cmd=multiq-replace:qdisc_replace_dev_d1_root_handle_1:_multiq","cmd":"tc qdisc replace dev d1 root handle 1: multiq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: multiq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"multiq-replace","json":"0","words":"qdisc replace dev d1 root handle 1: multiq"}} +{"id":"tcswrite/ec-012","desc":"positive: opt=plain cmd=multiq-delete:qdisc_delete_dev_d1_root","cmd":"tc qdisc delete dev d1 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: multiq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"multiq-delete","json":"0","words":"qdisc delete dev d1 root"}} +{"id":"tcswrite/ec-013","desc":"positive: opt=plain cmd=hfsc0:qdisc_add_dev_d0_root_handle_1:_hfsc","cmd":"tc qdisc add dev d0 root handle 1: hfsc","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc0","json":"0","words":"qdisc add dev d0 root handle 1: hfsc"}} +{"id":"tcswrite/ec-014","desc":"positive: opt=plain cmd=hfsc1:qdisc_add_dev_d0_root_handle_1:_hfsc_default_10","cmd":"tc qdisc add dev d0 root handle 1: hfsc default 10","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc1","json":"0","words":"qdisc add dev d0 root handle 1: hfsc default 10"}} +{"id":"tcswrite/ec-015","desc":"positive: opt=plain cmd=hfsc-change:qdisc_change_dev_d0_root_handle_1:_hfsc_default_10","cmd":"tc qdisc change dev d0 root handle 1: hfsc default 10","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-change","json":"0","words":"qdisc change dev d0 root handle 1: hfsc default 10"}} +{"id":"tcswrite/ec-016","desc":"positive: opt=plain cmd=hfsc-replace:qdisc_replace_dev_d0_root_handle_1:_hfsc_default_10","cmd":"tc qdisc replace dev d0 root handle 1: hfsc default 10","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-replace","json":"0","words":"qdisc replace dev d0 root handle 1: hfsc default 10"}} +{"id":"tcswrite/ec-017","desc":"positive: opt=plain cmd=hfsc-delete:qdisc_delete_dev_d0_root","cmd":"tc qdisc delete dev d0 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-delete","json":"0","words":"qdisc delete dev d0 root"}} +{"id":"tcswrite/ec-018","desc":"positive: opt=plain cmd=ets0:qdisc_add_dev_d0_root_handle_1:_ets_bands_3_strict_1_quanta_1500_3000_priomap_2_1_0","cmd":"tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets0","json":"0","words":"qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0"}} +{"id":"tcswrite/ec-019","desc":"positive: opt=plain cmd=ets1:qdisc_add_dev_d0_root_handle_1:_ets_strict_3","cmd":"tc qdisc add dev d0 root handle 1: ets strict 3","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets1","json":"0","words":"qdisc add dev d0 root handle 1: ets strict 3"}} +{"id":"tcswrite/ec-020","desc":"positive: opt=plain cmd=ets2:qdisc_add_dev_d0_root_handle_1:_ets_quanta_1000_2000","cmd":"tc qdisc add dev d0 root handle 1: ets quanta 1000 2000","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets2","json":"0","words":"qdisc add dev d0 root handle 1: ets quanta 1000 2000"}} +{"id":"tcswrite/ec-021","desc":"positive: opt=plain cmd=ets3:qdisc_add_dev_d0_root_handle_1:_ets_bands_4_strict_2_priomap_3_2_1_0_3_2_1_0_3_2_1_0_3_2_1_0","cmd":"tc qdisc add dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets3","json":"0","words":"qdisc add dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0"}} +{"id":"tcswrite/ec-022","desc":"positive: opt=plain cmd=ets-change:qdisc_change_dev_d0_root_handle_1:_ets_bands_4_strict_2_priomap_3_2_1_0_3_2_1_0_3_2_1_0_3_2_1_0","cmd":"tc qdisc change dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets-change","json":"0","words":"qdisc change dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0"}} +{"id":"tcswrite/ec-023","desc":"positive: opt=plain cmd=ets-replace:qdisc_replace_dev_d0_root_handle_1:_ets_bands_4_strict_2_priomap_3_2_1_0_3_2_1_0_3_2_1_0_3_2_1_0","cmd":"tc qdisc replace dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets-replace","json":"0","words":"qdisc replace dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0"}} +{"id":"tcswrite/ec-024","desc":"positive: opt=plain cmd=ets-delete:qdisc_delete_dev_d0_root","cmd":"tc qdisc delete dev d0 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets-delete","json":"0","words":"qdisc delete dev d0 root"}} +{"id":"tcswrite/ec-025","desc":"positive: opt=plain cmd=mqprio0:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_hw_0","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"mqprio0","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0"}} +{"id":"tcswrite/ec-026","desc":"positive: opt=plain cmd=mqprio-delete:qdisc_delete_dev_d1_root","cmd":"tc qdisc delete dev d1 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"mqprio-delete","json":"0","words":"qdisc delete dev d1 root"}} +{"id":"tcswrite/ec-027","desc":"positive: opt=plain cmd=taprio0:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_S_01_300000_sched-entry_S_02_200000_clockid_CLOCK_TAI","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio0","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-028","desc":"positive: opt=plain cmd=taprio1:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_S_01_300000_sched-entry_S_02_200000_cycle-time_600000_cycle-time-extension_1000_clockid_CLOCK_TAI","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 cycle-time 600000 cycle-time-extension 1000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio1","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 cycle-time 600000 cycle-time-extension 1000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-029","desc":"positive: opt=plain cmd=taprio2:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_S_01_300000_flags_0x1_txtime-delay_200000_clockid_CLOCK_TAI","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 flags 0x1 txtime-delay 200000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio2","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 flags 0x1 txtime-delay 200000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-030","desc":"positive: opt=plain cmd=taprio3:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_H_01_300000_sched-entry_R_02_200000_max-sdu_0_0_clockid_CLOCK_TAI","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio3","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-031","desc":"positive: opt=plain cmd=taprio-change:qdisc_change_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_H_01_300000_sched-entry_R_02_200000_max-sdu_0_0_clockid_CLOCK_TAI","cmd":"tc qdisc change dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio-change","json":"0","words":"qdisc change dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-032","desc":"positive: opt=plain cmd=taprio-replace:qdisc_replace_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_H_01_300000_sched-entry_R_02_200000_max-sdu_0_0_clockid_CLOCK_TAI","cmd":"tc qdisc replace dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio-replace","json":"0","words":"qdisc replace dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-033","desc":"positive: opt=plain cmd=taprio-delete:qdisc_delete_dev_d1_root","cmd":"tc qdisc delete dev d1 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"taprio-delete","json":"0","words":"qdisc delete dev d1 root"}} +{"id":"tcswrite/ec-034","desc":"positive: opt=plain cmd=cbs0:qdisc_add_dev_d0_root_handle_1:_cbs_idleslope_20000_sendslope_-980000_hicredit_30_locredit_-1470","cmd":"tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"cbs0","json":"0","words":"qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470"}} +{"id":"tcswrite/ec-035","desc":"positive: opt=plain cmd=cbs1:qdisc_add_dev_d0_root_handle_1:_cbs_idleslope_1000_sendslope_-999000_hicredit_10_locredit_-20_offload_0","cmd":"tc qdisc add dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"cbs1","json":"0","words":"qdisc add dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0"}} +{"id":"tcswrite/ec-036","desc":"positive: opt=plain cmd=cbs-change:qdisc_change_dev_d0_root_handle_1:_cbs_idleslope_1000_sendslope_-999000_hicredit_10_locredit_-20_offload_0","cmd":"tc qdisc change dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"cbs-change","json":"0","words":"qdisc change dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0"}} +{"id":"tcswrite/ec-037","desc":"positive: opt=plain cmd=cbs-replace:qdisc_replace_dev_d0_root_handle_1:_cbs_idleslope_1000_sendslope_-999000_hicredit_10_locredit_-20_offload_0","cmd":"tc qdisc replace dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"cbs-replace","json":"0","words":"qdisc replace dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0"}} +{"id":"tcswrite/ec-038","desc":"positive: opt=plain cmd=cbs-delete:qdisc_delete_dev_d0_root","cmd":"tc qdisc delete dev d0 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"cbs-delete","json":"0","words":"qdisc delete dev d0 root"}} +{"id":"tcswrite/ec-039","desc":"positive: opt=plain cmd=etf0:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI","cmd":"tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"etf0","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-040","desc":"positive: opt=plain cmd=etf1:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_300000_skip_sock_check","cmd":"tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 300000 skip_sock_check","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"etf1","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 300000 skip_sock_check"}} +{"id":"tcswrite/ec-041","desc":"positive: opt=plain cmd=etf2:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_300000_deadline_mode","cmd":"tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 300000 deadline_mode","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"etf2","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 300000 deadline_mode"}} +{"id":"tcswrite/ec-042","desc":"positive: opt=plain cmd=etf3:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_200000_deadline_mode_skip_sock_check","cmd":"tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"etf3","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check"}} +{"id":"tcswrite/ec-043","desc":"positive: opt=plain cmd=etf-delete:qdisc_delete_dev_d0_root","cmd":"tc qdisc delete dev d0 root","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"etf-delete","json":"0","words":"qdisc delete dev d0 root"}} +{"id":"tcswrite/ec-044","desc":"positive: opt=plain cmd=drr-class0:class_add_dev_d0_parent_1:_classid_1:10_drr","cmd":"tc class add dev d0 parent 1: classid 1:10 drr","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-class0","json":"0","words":"class add dev d0 parent 1: classid 1:10 drr"}} +{"id":"tcswrite/ec-045","desc":"positive: opt=plain cmd=drr-class1:class_add_dev_d0_parent_1:_classid_1:10_drr_quantum_1514","cmd":"tc class add dev d0 parent 1: classid 1:10 drr quantum 1514","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-class1","json":"0","words":"class add dev d0 parent 1: classid 1:10 drr quantum 1514"}} +{"id":"tcswrite/ec-046","desc":"positive: opt=plain cmd=drr-class2:class_add_dev_d0_parent_1:_classid_1:10_drr_quantum_9k","cmd":"tc class add dev d0 parent 1: classid 1:10 drr quantum 9k","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-class2","json":"0","words":"class add dev d0 parent 1: classid 1:10 drr quantum 9k"}} +{"id":"tcswrite/ec-047","desc":"positive: opt=plain cmd=drr-class-change:class_change_dev_d0_parent_1:_classid_1:10_drr_quantum_9k","cmd":"tc class change dev d0 parent 1: classid 1:10 drr quantum 9k","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr","tc class add dev d0 parent 1: classid 1:10 drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-class-change","json":"0","words":"class change dev d0 parent 1: classid 1:10 drr quantum 9k"}} +{"id":"tcswrite/ec-048","desc":"positive: opt=plain cmd=drr-class-replace:class_replace_dev_d0_parent_1:_classid_1:10_drr_quantum_9k","cmd":"tc class replace dev d0 parent 1: classid 1:10 drr quantum 9k","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr","tc class add dev d0 parent 1: classid 1:10 drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-class-replace","json":"0","words":"class replace dev d0 parent 1: classid 1:10 drr quantum 9k"}} +{"id":"tcswrite/ec-049","desc":"positive: opt=plain cmd=drr-class-delete:class_delete_dev_d0_classid_1:10","cmd":"tc class delete dev d0 classid 1:10","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr","tc class add dev d0 parent 1: classid 1:10 drr"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"drr-class-delete","json":"0","words":"class delete dev d0 classid 1:10"}} +{"id":"tcswrite/ec-050","desc":"positive: opt=plain cmd=qfq-class0:class_add_dev_d0_parent_1:_classid_1:10_qfq","cmd":"tc class add dev d0 parent 1: classid 1:10 qfq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-class0","json":"0","words":"class add dev d0 parent 1: classid 1:10 qfq"}} +{"id":"tcswrite/ec-051","desc":"positive: opt=plain cmd=qfq-class1:class_add_dev_d0_parent_1:_classid_1:10_qfq_weight_30_maxpkt_9000","cmd":"tc class add dev d0 parent 1: classid 1:10 qfq weight 30 maxpkt 9000","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-class1","json":"0","words":"class add dev d0 parent 1: classid 1:10 qfq weight 30 maxpkt 9000"}} +{"id":"tcswrite/ec-052","desc":"positive: opt=plain cmd=qfq-class2:class_add_dev_d0_parent_1:_classid_1:10_qfq_weight_1","cmd":"tc class add dev d0 parent 1: classid 1:10 qfq weight 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-class2","json":"0","words":"class add dev d0 parent 1: classid 1:10 qfq weight 1"}} +{"id":"tcswrite/ec-053","desc":"positive: opt=plain cmd=qfq-class-change:class_change_dev_d0_parent_1:_classid_1:10_qfq_weight_1","cmd":"tc class change dev d0 parent 1: classid 1:10 qfq weight 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq","tc class add dev d0 parent 1: classid 1:10 qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-class-change","json":"0","words":"class change dev d0 parent 1: classid 1:10 qfq weight 1"}} +{"id":"tcswrite/ec-054","desc":"positive: opt=plain cmd=qfq-class-replace:class_replace_dev_d0_parent_1:_classid_1:10_qfq_weight_1","cmd":"tc class replace dev d0 parent 1: classid 1:10 qfq weight 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq","tc class add dev d0 parent 1: classid 1:10 qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-class-replace","json":"0","words":"class replace dev d0 parent 1: classid 1:10 qfq weight 1"}} +{"id":"tcswrite/ec-055","desc":"positive: opt=plain cmd=qfq-class-delete:class_delete_dev_d0_classid_1:10","cmd":"tc class delete dev d0 classid 1:10","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq","tc class add dev d0 parent 1: classid 1:10 qfq"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"qfq-class-delete","json":"0","words":"class delete dev d0 classid 1:10"}} +{"id":"tcswrite/ec-056","desc":"positive: opt=plain cmd=hfsc-class0:class_add_dev_d0_parent_1:_classid_1:10_hfsc_sc_rate_10mbit_ul_rate_20mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class0","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit"}} +{"id":"tcswrite/ec-057","desc":"positive: opt=plain cmd=hfsc-class1:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_m1_2mbit_d_10ms_m2_1mbit_ls_m2_3mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc rt m1 2mbit d 10ms m2 1mbit ls m2 3mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class1","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc rt m1 2mbit d 10ms m2 1mbit ls m2 3mbit"}} +{"id":"tcswrite/ec-058","desc":"positive: opt=plain cmd=hfsc-class2:class_add_dev_d0_parent_1:_classid_1:10_hfsc_sc_umax_1500_dmax_10ms_rate_1mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc sc umax 1500 dmax 10ms rate 1mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class2","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc sc umax 1500 dmax 10ms rate 1mbit"}} +{"id":"tcswrite/ec-059","desc":"positive: opt=plain cmd=hfsc-class3:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_umax_1500_dmax_50ms_rate_10mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc rt umax 1500 dmax 50ms rate 10mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class3","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc rt umax 1500 dmax 50ms rate 10mbit"}} +{"id":"tcswrite/ec-060","desc":"positive: opt=plain cmd=hfsc-class4:class_add_dev_d0_parent_1:_classid_1:10_hfsc_ls_m1_0_d_5ms_m2_2mbit_ul_m2_4mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class4","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit"}} +{"id":"tcswrite/ec-061","desc":"positive: opt=plain cmd=hfsc-class-change:class_change_dev_d0_parent_1:_classid_1:10_hfsc_ls_m1_0_d_5ms_m2_2mbit_ul_m2_4mbit","cmd":"tc class change dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10","tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class-change","json":"0","words":"class change dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit"}} +{"id":"tcswrite/ec-062","desc":"positive: opt=plain cmd=hfsc-class-replace:class_replace_dev_d0_parent_1:_classid_1:10_hfsc_ls_m1_0_d_5ms_m2_2mbit_ul_m2_4mbit","cmd":"tc class replace dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10","tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class-replace","json":"0","words":"class replace dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit"}} +{"id":"tcswrite/ec-063","desc":"positive: opt=plain cmd=hfsc-class-delete:class_delete_dev_d0_classid_1:10","cmd":"tc class delete dev d0 classid 1:10","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc default 10","tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"hfsc-class-delete","json":"0","words":"class delete dev d0 classid 1:10"}} +{"id":"tcswrite/ec-064","desc":"positive: opt=plain cmd=ets-class-change:class_change_dev_d0_classid_1:3_ets_quantum_2000","cmd":"tc class change dev d0 classid 1:3 ets quantum 2000","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: ets bands 3 strict 1"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets-class-change","json":"0","words":"class change dev d0 classid 1:3 ets quantum 2000"}} +{"id":"tcswrite/ec-065","desc":"positive: opt=plain cmd=ets-class-replace:class_replace_dev_d0_classid_1:2_ets_quantum_3000","cmd":"tc class replace dev d0 classid 1:2 ets quantum 3000","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: ets bands 3 strict 1"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"ets-class-replace","json":"0","words":"class replace dev d0 classid 1:2 ets quantum 3000"}} +{"id":"tcswrite/ec-066","desc":"boundary: opt=plain cmd=w27-priomap:qdisc_add_dev_d0_root_handle_1:_ets_bands_3_priomap_256_1_2","cmd":"tc qdisc add dev d0 root handle 1: ets bands 3 priomap 256 1 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w27-priomap","json":"0","words":"qdisc add dev d0 root handle 1: ets bands 3 priomap 256 1 2"}} +{"id":"tcswrite/ec-067","desc":"corner: opt=plain cmd=w3-ets:qdisc_add_dev_d0_root_handle_1:_ets_bands_0_bands_3","cmd":"tc qdisc add dev d0 root handle 1: ets bands 0 bands 3","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w3-ets","json":"0","words":"qdisc add dev d0 root handle 1: ets bands 0 bands 3"}} +{"id":"tcswrite/ec-068","desc":"corner: opt=plain cmd=w3-hfsc:qdisc_add_dev_d0_root_handle_1:_hfsc_default_0_default_5","cmd":"tc qdisc add dev d0 root handle 1: hfsc default 0 default 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w3-hfsc","json":"0","words":"qdisc add dev d0 root handle 1: hfsc default 0 default 5"}} +{"id":"tcswrite/ec-069","desc":"corner: opt=plain cmd=w3-cbs:qdisc_add_dev_d0_root_handle_1:_cbs_hicredit_0_hicredit_5","cmd":"tc qdisc add dev d0 root handle 1: cbs hicredit 0 hicredit 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w3-cbs","json":"0","words":"qdisc add dev d0 root handle 1: cbs hicredit 0 hicredit 5"}} +{"id":"tcswrite/ec-070","desc":"corner: opt=plain cmd=w3-etf:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_0_delta_5","cmd":"tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 0 delta 5","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w3-etf","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 0 delta 5"}} +{"id":"tcswrite/ec-071","desc":"corner: opt=plain cmd=w3-taprio:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_sched-entry_S_01_300000_cycle-time_0_cycle-time_600000_clockid_CLOCK_TAI","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 cycle-time 0 cycle-time 600000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d1"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w3-taprio","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 cycle-time 0 cycle-time 600000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ec-072","desc":"boundary: opt=plain cmd=w39-umax:class_add_dev_d0_parent_1:_classid_1:10_hfsc_sc_umax_5000_dmax_100ms_rate_100mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc sc umax 5000 dmax 100ms rate 100mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w39-umax","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc sc umax 5000 dmax 100ms rate 100mbit"}} +{"id":"tcswrite/ec-073","desc":"boundary: opt=plain cmd=w40-m1:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_umax_100000_dmax_1us_rate_1kbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc rt umax 100000 dmax 1us rate 1kbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w40-m1","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc rt umax 100000 dmax 1us rate 1kbit"}} +{"id":"tcswrite/ec-074","desc":"corner: opt=plain cmd=w41-repeat:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_m2_1mbit_sc_m2_2mbit","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc rt m2 1mbit sc m2 2mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"fix":"w41-repeat","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc rt m2 1mbit sc m2 2mbit"}} +{"id":"tcswrite/ec-075","desc":"positive: opt=plain cmd=batch:batch:hfsc","cmd":"tc -batch b.txt","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","printf '%s\\n' 'qdisc add dev d0 root handle 1: hfsc default 10' 'class add dev d0 parent 1: classid 1:1 hfsc sc rate 10mbit ul rate 20mbit' 'class add dev d0 parent 1:1 classid 1:10 hfsc rt m2 1mbit ls m2 1mbit' > b.txt"],"readback":[{"name":"dump","cmd":"tc -d qdisc show dev d0"},{"name":"class","cmd":"tc -d class show dev d0"}],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":0,"refused_by":"none"},"axes":{"batch":"hfsc","fix":"batch","json":"0","words":"-batch b.txt"}} +{"id":"tcswrite/ng-001","desc":"negative: opt=plain cmd=ng:drr-bogus:qdisc_add_dev_d0_root_handle_1:_drr_bogus: What is \"bogus\"?, rc 1 (W4)","cmd":"tc qdisc add dev d0 root handle 1: drr bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"drr-bogus","json":"0","words":"qdisc add dev d0 root handle 1: drr bogus"}} +{"id":"tcswrite/ng-002","desc":"negative: opt=plain cmd=ng:drr-q0:class_add_dev_d0_parent_1:_classid_1:10_drr_quantum_0: the kernel refuses a zero quantum","cmd":"tc class add dev d0 parent 1: classid 1:10 drr quantum 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"drr-q0","json":"0","words":"class add dev d0 parent 1: classid 1:10 drr quantum 0"}} +{"id":"tcswrite/ng-003","desc":"negative: opt=plain cmd=ng:drr-cbogus:class_add_dev_d0_parent_1:_classid_1:10_drr_bogus: class usage, rc 1","cmd":"tc class add dev d0 parent 1: classid 1:10 drr bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: drr"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"drr-cbogus","json":"0","words":"class add dev d0 parent 1: classid 1:10 drr bogus"}} +{"id":"tcswrite/ng-004","desc":"negative: opt=plain cmd=ng:qfq-weight:class_add_dev_d0_parent_1:_classid_1:10_qfq_weight_zz: Illegal \"weight\", rc 1","cmd":"tc class add dev d0 parent 1: classid 1:10 qfq weight zz","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: qfq"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"qfq-weight","json":"0","words":"class add dev d0 parent 1: classid 1:10 qfq weight zz"}} +{"id":"tcswrite/ng-005","desc":"negative: opt=plain cmd=ng:multiq-bands:qdisc_add_dev_d1_root_handle_1:_multiq_bands_4: multiq takes no options (K27), rc 1","cmd":"tc qdisc add dev d1 root handle 1: multiq bands 4","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"multiq-bands","json":"0","words":"qdisc add dev d1 root handle 1: multiq bands 4"}} +{"id":"tcswrite/ng-006","desc":"negative: opt=plain cmd=ng:multiq-class:class_add_dev_d1_parent_1:_classid_1:1_multiq: multiq is classless, rc 1","cmd":"tc class add dev d1 parent 1: classid 1:1 multiq","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: multiq"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"multiq-class","json":"0","words":"class add dev d1 parent 1: classid 1:1 multiq"}} +{"id":"tcswrite/ng-007","desc":"negative: opt=plain cmd=ng:w41-twoerr:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_m1_bogus_m2_1mbit: a failed sc1 is retried as sc2: two errors (W41)","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc rt m1 bogus m2 1mbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w41-twoerr","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc rt m1 bogus m2 1mbit"}} +{"id":"tcswrite/ng-008","desc":"negative: opt=plain cmd=ng:w16-m2:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_m2_40gbit: hfsc rates are 32-bit (W16)","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc rt m2 40gbit","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w16-m2","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc rt m2 40gbit"}} +{"id":"tcswrite/ng-009","desc":"negative: opt=plain cmd=ng:w9-pct:class_add_dev_d0_parent_1:_classid_1:10_hfsc_ls_m2_10%: a percent rate on a dummy with no speed (W9)","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc ls m2 10%","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w9-pct","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc ls m2 10%"}} +{"id":"tcswrite/ng-010","desc":"negative: opt=plain cmd=ng:hfsc-bogus:class_add_dev_d0_parent_1:_classid_1:10_hfsc_bogus: hfsc usage, rc 1","cmd":"tc class add dev d0 parent 1: classid 1:10 hfsc bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: hfsc"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"hfsc-bogus","json":"0","words":"class add dev d0 parent 1: classid 1:10 hfsc bogus"}} +{"id":"tcswrite/ng-011","desc":"negative: opt=plain cmd=ng:ets-cover:qdisc_add_dev_d0_root_handle_1:_ets_bands_2_quanta_1_2_3: not enough bands for the quanta","cmd":"tc qdisc add dev d0 root handle 1: ets bands 2 quanta 1 2 3","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"ets-cover","json":"0","words":"qdisc add dev d0 root handle 1: ets bands 2 quanta 1 2 3"}} +{"id":"tcswrite/ng-012","desc":"negative: opt=plain cmd=ng:ets-oob:qdisc_add_dev_d0_root_handle_1:_ets_bands_2_priomap_2: a priomap band out of bounds","cmd":"tc qdisc add dev d0 root handle 1: ets bands 2 priomap 2","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"ets-oob","json":"0","words":"qdisc add dev d0 root handle 1: ets bands 2 priomap 2"}} +{"id":"tcswrite/ng-013","desc":"negative: opt=plain cmd=ng:ets-none:qdisc_add_dev_d0_root_handle_1:_ets: no bands, quanta or strict","cmd":"tc qdisc add dev d0 root handle 1: ets","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"ets-none","json":"0","words":"qdisc add dev d0 root handle 1: ets"}} +{"id":"tcswrite/ng-014","desc":"negative: opt=plain cmd=ng:ets-strictq:class_change_dev_d0_classid_1:1_ets_quantum_2000: a strict band has no quantum","cmd":"tc class change dev d0 classid 1:1 ets quantum 2000","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: ets bands 3 strict 1"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"ets-strictq","json":"0","words":"class change dev d0 classid 1:1 ets quantum 2000"}} +{"id":"tcswrite/ng-015","desc":"negative: opt=plain cmd=ng:mq-nohw:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4: hw defaults to 1: a dummy has no offload","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"mq-nohw","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4"}} +{"id":"tcswrite/ng-016","desc":"negative: opt=plain cmd=ng:w33-bogus:qdisc_add_dev_d1_root_handle_1:_mqprio_bogus: an unknown word goes to invarg: rc 255 (W33)","cmd":"tc qdisc add dev d1 root handle 1: mqprio bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w33-bogus","json":"0","words":"qdisc add dev d1 root handle 1: mqprio bogus"}} +{"id":"tcswrite/ng-017","desc":"negative: opt=plain cmd=ng:mq-numtc:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_x: Illegal \"num_tc\", rc 1 (W33's contrast)","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc x","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"mq-numtc","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc x"}} +{"id":"tcswrite/ng-018","desc":"negative: opt=plain cmd=ng:w31-hw-first:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_hw_0_mode_channel: mode after hw 0 is unknown: rc 255 (W31)","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0 mode channel","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":255,"refused_by":"iproute2"},"axes":{"fix":"w31-hw-first","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0 mode channel"}} +{"id":"tcswrite/ng-019","desc":"negative: opt=plain cmd=ng:w31-mode-first:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_mode_channel_hw_0: mode before hw 0 is sent: the kernel's EINVAL (W31)","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel hw 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w31-mode-first","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel hw 0"}} +{"id":"tcswrite/ng-020","desc":"negative: opt=plain cmd=ng:w30-queues:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_queues_4@0_4@4_hw_0: queues twice sums the pair count (W30)","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 queues 4@0 4@4 hw 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w30-queues","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 queues 4@0 4@4 hw 0"}} +{"id":"tcswrite/ng-021","desc":"negative: opt=plain cmd=ng:mq-fp:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_fp_E_P_hw_0: fp needs hardware mode","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 fp E P hw 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"mq-fp","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 fp E P hw 0"}} +{"id":"tcswrite/ng-022","desc":"negative: opt=plain cmd=ng:w32-rates:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_mode_channel_shaper_bw_rlimit_min_rate_1mbit_hw_1: one min_rate for two classes is sent (W32)","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit hw 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w32-rates","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit hw 1"}} +{"id":"tcswrite/ng-023","desc":"negative: opt=plain cmd=ng:mq-rates:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_mode_channel_shaper_bw_rlimit_min_rate_1mbit_2mbit_max_rate_5mbit_6mbit_hw_1: rates need hardware offload","cmd":"tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit 2mbit max_rate 5mbit 6mbit hw 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"mq-rates","json":"0","words":"qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit 2mbit max_rate 5mbit 6mbit hw 1"}} +{"id":"tcswrite/ng-024","desc":"negative: opt=plain cmd=ng:taprio-sq:qdisc_add_dev_d0_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_1@0_1@0_base-time_1000000000_sched-entry_S_01_300000_sched-entry_S_02_200000_clockid_CLOCK_TAI: taprio needs a multiqueue device","cmd":"tc qdisc add dev d0 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 1@0 1@0 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"taprio-sq","json":"0","words":"qdisc add dev d0 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 1@0 1@0 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ng-025","desc":"negative: opt=plain cmd=ng:w34-basetime:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_zz_sched-entry_S_01_300000_clockid_CLOCK_TAI: a bad base-time ends the parse silently: no entries sent (W34)","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time zz sched-entry S 01 300000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w34-basetime","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time zz sched-entry S 01 300000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ng-026","desc":"negative: opt=plain cmd=ng:w34-cycle:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_cycle-time_zz_sched-entry_S_01_300000_clockid_CLOCK_TAI: a bad cycle-time ends the parse silently (W34)","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 cycle-time zz sched-entry S 01 300000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w34-cycle","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 cycle-time zz sched-entry S 01 300000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ng-027","desc":"negative: opt=plain cmd=ng:w35-flags:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_sched-entry_S_01_300000_flags_zz_clockid_CLOCK_TAI: a bad flags value: rc 1, no message (W35)","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 flags zz clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w35-flags","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 flags zz clockid CLOCK_TAI"}} +{"id":"tcswrite/ng-028","desc":"negative: opt=plain cmd=ng:w35-unknown:qdisc_add_dev_d1_root_handle_1:_taprio_bogus: a bare \"Unknown argument\" (W35)","cmd":"tc qdisc add dev d1 root handle 1: taprio bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"w35-unknown","json":"0","words":"qdisc add dev d1 root handle 1: taprio bogus"}} +{"id":"tcswrite/ng-029","desc":"negative: opt=plain cmd=ng:w36-nonumtc:qdisc_add_dev_d1_root_handle_1:_taprio_map_0_1_queues_1@0_sched-entry_S_01_300000_clockid_CLOCK_TAI: map and queues dropped with no num_tc (W36)","cmd":"tc qdisc add dev d1 root handle 1: taprio map 0 1 queues 1@0 sched-entry S 01 300000 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"w36-nonumtc","json":"0","words":"qdisc add dev d1 root handle 1: taprio map 0 1 queues 1@0 sched-entry S 01 300000 clockid CLOCK_TAI"}} +{"id":"tcswrite/ng-030","desc":"negative: opt=plain cmd=ng:taprio-noclock:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_sched-entry_S_01_300000: clockid is mandatory","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"taprio-noclock","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000"}} +{"id":"tcswrite/ng-031","desc":"negative: opt=plain cmd=ng:taprio-sdu:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_S_01_300000_sched-entry_S_02_200000_max-sdu_1500_0_clockid_CLOCK_TAI: max-sdu over the MTU","cmd":"tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 max-sdu 1500 0 clockid CLOCK_TAI","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"ERANGE","refused_by":"kernel"},"axes":{"fix":"taprio-sdu","json":"0","words":"qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 max-sdu 1500 0 clockid CLOCK_TAI"}} +{"id":"tcswrite/ng-032","desc":"negative: opt=plain cmd=ng:cbs-offload:qdisc_add_dev_d0_root_handle_1:_cbs_idleslope_20000_sendslope_-980000_hicredit_30_locredit_-1470_offload_1: cbs offload on a dummy","cmd":"tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470 offload 1","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"cbs-offload","json":"0","words":"qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470 offload 1"}} +{"id":"tcswrite/ng-033","desc":"negative: opt=plain cmd=ng:cbs-bogus:qdisc_add_dev_d0_root_handle_1:_cbs_bogus: cbs: unknown parameter, rc 1","cmd":"tc qdisc add dev d0 root handle 1: cbs bogus","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"cbs-bogus","json":"0","words":"qdisc add dev d0 root handle 1: cbs bogus"}} +{"id":"tcswrite/ng-034","desc":"negative: opt=plain cmd=ng:etf-offload:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_offload: etf offload on a dummy","cmd":"tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI offload","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"ENOTSUP","refused_by":"kernel"},"axes":{"fix":"etf-offload","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI offload"}} +{"id":"tcswrite/ng-035","desc":"negative: opt=plain cmd=ng:etf-clock:qdisc_add_dev_d0_root_handle_1:_etf_clockid_BOGUS: a bad clockid, rc 1","cmd":"tc qdisc add dev d0 root handle 1: etf clockid BOGUS","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":1,"refused_by":"iproute2"},"axes":{"fix":"etf-clock","json":"0","words":"qdisc add dev d0 root handle 1: etf clockid BOGUS"}} +{"id":"tcswrite/ng-036","desc":"negative: opt=plain cmd=ng:mqprio-change:qdisc_change_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_hw_0: mqprio has no change op: EINVAL, rc 2 (K31)","cmd":"tc qdisc change dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"mqprio-change","json":"0","words":"qdisc change dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0"}} +{"id":"tcswrite/ng-037","desc":"negative: opt=plain cmd=ng:mqprio-replace:qdisc_replace_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_hw_0: mqprio has no change op: EINVAL, rc 2 (K31)","cmd":"tc qdisc replace dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"mqprio-replace","json":"0","words":"qdisc replace dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0"}} +{"id":"tcswrite/ng-038","desc":"negative: opt=plain cmd=ng:etf-change:qdisc_change_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_200000_deadline_mode_skip_sock_check: etf has no change op: EINVAL, rc 2 (K31)","cmd":"tc qdisc change dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"etf-change","json":"0","words":"qdisc change dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check"}} +{"id":"tcswrite/ng-039","desc":"negative: opt=plain cmd=ng:etf-replace:qdisc_replace_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_200000_deadline_mode_skip_sock_check: etf has no change op: EINVAL, rc 2 (K31)","cmd":"tc qdisc replace dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check","pre":["ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up","tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI"],"modules":["sch_cbs","sch_drr","sch_etf","sch_ets","sch_hfsc","sch_mqprio","sch_multiq","sch_qfq","sch_taprio"],"proto":"route","expect":{"rc":2,"errno":"EINVAL","refused_by":"kernel"},"axes":{"fix":"etf-replace","json":"0","words":"qdisc replace dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check"}} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/cmd.json new file mode 100644 index 000000000..496102fef --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "drr0", + "json": "0", + "words": "qdisc add dev d0 root handle 1: drr" + }, + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "desc": "positive: opt=plain cmd=drr0:qdisc_add_dev_d0_root_handle_1:_drr", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-001", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/dump.out new file mode 100644 index 000000000..1b5f2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/dump.out @@ -0,0 +1 @@ +qdisc drr 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4db56302144e6da3cde9d8bb1ddc1531575fc650 GIT binary patch literal 320 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$!61)2vk1Z)tRc^W`*0U!pMcV>3zZU&&)%s~EOAPoY@<`e?W zu>p#KFuJ>RfI=z^tZc~c0+|Cc?>`WLSR6ohN>LHmO|?L?On_n_jBb_+P>2br5oDIP LI!FNn1G@PDcf}-D literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-001/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d711c25f8f83251ed9e018200b9b02bb6ae08b79 GIT binary patch literal 472 zcmZ{fF$%&^5JV^W2}ZFHNnv9b#KIzlg;;qNA)Q^oL)hsBM6tH9ur&~Gpw|(di3xr_ zII!8>$>uS6mY1WC06ztIak;HKtIa9Ig0l*NnW;5OIrQP7;9cX{J;D%e4`{(4fcmu-k6qg@_qoF Cp)6AX literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/cmd.json new file mode 100644 index 000000000..614457404 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "drr-change", + "json": "0", + "words": "qdisc change dev d0 root handle 1: drr" + }, + "cmd": "tc qdisc change dev d0 root handle 1: drr", + "desc": "positive: opt=plain cmd=drr-change:qdisc_change_dev_d0_root_handle_1:_drr", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-002", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: drr" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/dump.out new file mode 100644 index 000000000..1b5f2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/dump.out @@ -0,0 +1 @@ +qdisc drr 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c3ddaead344cb80a3042942abf360160ec9c2a79 GIT binary patch literal 320 zcmca|c+)~A1{MYcU}5+Rp#KFuJ>RfI=z^tSIgRnFBKKKM;Ue96)wTQ4!cp|Bo{L3LS4Cv+q058oY&Hw-a literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-002/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..433270a6fde61d58475a1cb10becbb87de4081a7 GIT binary patch literal 472 zcmZ{gF$%&^5JV^WQKMLhq_D9IVquZO!qVOxBVD?H7qGIl@Bn%RFQAal+Qw7Z3!*bI z!OsT=HoH67JciuL)6qwOp8~wNoY%elx@u#|S%ttX)EXrmhVXFVUE|q3#28%<=)fT3 zv3Pg#1gSs{Z%Ti_5-;EGHz3<^FWDuV^B`wVPvz!{X-(i6JC``Nl;ugrfu_o3>}bXC zt1PL4QD26KH|28=nJX&_w9v2KCrlXCSu3M{jOs6KPxI`L@7`%wUZibiQZCB*cM&b) GWR17k25zsu4Az*{h%+mmh3ji_5yzEEMZ!rMPW(M*P18ERIHfIyi z92=k*2&2182PmY%z{-m3E|57O^Zo+?h{XY9rxX=|-Lwa2mI+V{gwf4X0SYkzHG<3v MRR<|xU_dt?0OJ)W=l}o! literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-003/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..60ba1164e7eee49d70c5fc79bdaeba7e5b5c5c7b GIT binary patch literal 472 zcmZ{fF$%&^5JV^WQ4_HcNnv9b#6mEIg_T$d9>5!<5bOdTz}~{b!cwo`1r%}xuOm7W z6a0K|V6(fE&13Q`ZdV@xehTp7a^JPL>v|Em5QkDZ57n&-Uaio>N zFSD!^jQTP>yeXf1$Xr>Tqk&HOK4rqV%32!LqhEb#dz#08eD_Yf@}8Ji|E6;D#{U+ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/cmd.json new file mode 100644 index 000000000..605ca39a2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "drr-delete", + "json": "0", + "words": "qdisc delete dev d0 root" + }, + "cmd": "tc qdisc delete dev d0 root", + "desc": "positive: opt=plain cmd=drr-delete:qdisc_delete_dev_d0_root", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-004", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: drr" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/dump.out new file mode 100644 index 000000000..f3b1a3c16 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/dump.out @@ -0,0 +1 @@ +qdisc noqueue 0: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-004/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..efce60cbec216a9aa0996df349ad777ad5caf448 GIT binary patch literal 312 zcmca|c+)~A1{MYcU}5+RWR17k2BhWmMAz*{h%+mmh3ji_5ykh@tix_}rGXwdDfiwspn{ym! xjtNiz>% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-005/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8db37ae5413d5c0e54ea7799d67e4727cdbe2f33 GIT binary patch literal 472 zcmZ{fF$%&^5JV^W2}ZFHNnv9b#KIzlh+v~Pu@D$K;V;PCf$s6yU|>wrQ;9=MYoQDg(p0&O1FZyp zk!7M_)R*DmP5Im-=E{~CLNtr_DHFzJ*1{+so$^cD(>(a&yLZ}^ch9`~HtTb0u%#bbhA`|LQFu7AU7qc LgA_0@pqmc>x7#PP literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-006/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d58cbb85d5d48241637a924073198ed13932a096 GIT binary patch literal 472 zcmZ{fF$%&^5JV^WQKMLhq_7bzf>>Cju(0$T)*^_FDLjBTun{aQ6mK91b_%(I*AbnG z34T5}u-Vn FydQ)bDvbaD literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/cmd.json new file mode 100644 index 000000000..d1949e009 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "qfq-replace", + "json": "0", + "words": "qdisc replace dev d0 root handle 1: qfq" + }, + "cmd": "tc qdisc replace dev d0 root handle 1: qfq", + "desc": "positive: opt=plain cmd=qfq-replace:qdisc_replace_dev_d0_root_handle_1:_qfq", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-007", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-007/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..073e8dda0f3a7c53efb54e6b424a616c07ae526f GIT binary patch literal 320 zcmca|c+)~A1{MYcU}5+R3kF*r zi^W6E8pd4pljc!OgN~rTBCXlt1n$o^YoAJ-)UFgHS_AWR17ljHqbnfAz*{h%+mmh3ji_5yvwrA&l!MbGXwdDfiwspoAVB6 wjtNiu(Gq28*o`gQ0`L=nYKXKqmA;Q>TqF(B~@JdSWqwOluG zlCQVl$?Y${-md$#j{x5UcyKu<)#++n#E|bA1ZJQkPsEo7JY0A$@9eXTHYy%ag29BB z#oLf4ND6XzUG{a3cz4teAlq=i@>Fcjj+{O_jq4S%>cBI$mpFFhawKERQsXj~tU~yy z%Sd8O&Ui9D_Zq!s^F+`kU0=+-|@2&SH=M$ave;U`h$;vp+ EFT0#8>;M1& literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/cmd.json new file mode 100644 index 000000000..c4bf24a68 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "multiq0", + "json": "0", + "words": "qdisc add dev d1 root handle 1: multiq" + }, + "cmd": "tc qdisc add dev d1 root handle 1: multiq", + "desc": "positive: opt=plain cmd=multiq0:qdisc_add_dev_d1_root_handle_1:_multiq", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-009", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/dump.out new file mode 100644 index 000000000..69cf01906 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/dump.out @@ -0,0 +1 @@ +qdisc multiq 1: root refcnt 9 bands 8/8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-009/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a5d973a45e3f8da8a862e0559c18e01055c13960 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+Rog8;HQ^MK}f z0L4HU-CZEFRTx;=klh9G9V5ekAOLCM2AY{$np2Wl$iTqCzyuNk`*$bMToWK0gwf4a U0SW zaKsIJyBQ`Qb9toaqYVeYa`58IHL0yTP6Jc!(s0yRMqV+O7A)N8%eCTk(S>ILRVXZm zUtUC>Ks3nU^{F@6!t+;`C&-pmDW_DCGa+Y0P1?*AQtH7{#azYP$tQBR85t+;(kA0T zDTJ-F+#@m2qE8ENmdCx$T-#)`U+w^xUYAb=zIMe-8)Uh)kR5IQi?SO0(aXG&ea`H1 MPiZrIKuHR~-h@Ab@O6E6^Md zpcn|Fy9;Et3Ii*OyCA+}WcUvRAT8WLGjmIGN-_%>7&sW1Ktf>uP6V230%U_Qy16Pq TA)rb|koz8Jf)qgffovB5>J%uM literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-010/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6c6e766bc9ba6b89f3e856bd111822742c05d7aa GIT binary patch literal 484 zcmZ{gF%Q8|6opT{ik2pX4i;O9h@r$_^kXc7L85=fWU(8>4?xn{X7>+FR^i;Ijpn6p zbKku^IsI~8Z}D+gfQ?_-c=6>NmFI_c6%+2#u+>;bS|OJ@EL`YIwd{1zf@=XKC`<=m z-ibVcXpq6{Qm?Uv*YJiLkS(cVPN^*CPR@v$w3#cQ)Pbe4xw5yDPvmY7GWOi1O~#f| zfP&6)?TLXFeOh?4T<#U-T1JcYYy~*KVp68Y9PiB{U MN}JhzO3KLo0Yj%O9RL6T literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/cmd.json new file mode 100644 index 000000000..0294b7d81 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "multiq-replace", + "json": "0", + "words": "qdisc replace dev d1 root handle 1: multiq" + }, + "cmd": "tc qdisc replace dev d1 root handle 1: multiq", + "desc": "positive: opt=plain cmd=multiq-replace:qdisc_replace_dev_d1_root_handle_1:_multiq", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-011", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d1 root handle 1: multiq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: multiq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/dump.out new file mode 100644 index 000000000..69cf01906 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/dump.out @@ -0,0 +1 @@ +qdisc multiq 1: root refcnt 9 bands 8/8 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f249194af52608217ccea67cc0f6e6db38977b83 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+RJlL70Js*#bntfB}#p#K6dK0H_WohD>uX z$TDy;GBB_+Ff*hWLd>fKng=ojY!I4x8bEOYAO@Lt{$$l>2B6s>R~-h@Ab@O6FVGwh zpcn|Fy9;Et3Ii)Evb!L@V`TUb1RyQkKr?eob4oG`85lSim_R~c|IPuLYXW40FuJ)a UKp~(?Mv%F`G(id={y?@10NGq9rT_o{ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-011/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0f64e3707f6c2332a3de22ef2760709562ad3768 GIT binary patch literal 484 zcmZ{gF$%&!5Ji8oktAv%l0p!>Afgr#EG#{Yji`lSZr}y%ZBhxMjVDk7p1@mp2GKuj zf?JlL70Js*#bntfB}#p#K6dK0H_WohD>uX z$TDy;GBB_+Ff*hWLd=T=ng=ojY!I4x8bEOYAO@Ki@KmD0l)7AckDQQ+Nl_nM5%> z;=pG2O*X^#a?dU&7ao4{@Z{l^v^GeAC1({pvrzjg;?RSGRC^U_V1T9r)M2om6?t9e zDI^cF@(Dr1+*IYZ{m>8Wh4fYu0(DRY%?r%!aZkQryrDm&vqD}bA` zJjPn!O40D5T+VHBZFl=5PGZz}k|I+2AKu*fJo@|xRhs_st9HdaA#=c&Dx2A-Wh~}5 Dlus;= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/cmd.json new file mode 100644 index 000000000..5749fcad7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "hfsc0", + "json": "0", + "words": "qdisc add dev d0 root handle 1: hfsc" + }, + "cmd": "tc qdisc add dev d0 root handle 1: hfsc", + "desc": "positive: opt=plain cmd=hfsc0:qdisc_add_dev_d0_root_handle_1:_hfsc", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-013", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/dump.out new file mode 100644 index 000000000..a3b60c951 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0369bfdbad9a3d96f9baeb555b68ad475bffb2a9 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+RJlL70Js*#bntfB}#p#K6dK0H_WohD>uX z$TDy;GBB_+Ff*h86@$zR0h$Lg1Z)tRc^W`*0U!pMci?TzZw8>*%s~EOAPoY@=A;A7 z@c@c}FuJ=yW~(r;vLU+*WDdx@|3Cm@aRS*HX~oGPHX8#IhyuH>4QQ?jkPX7<=BfaN SfGQb5=DyVgDS-F`*)9NW?j|4r literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-013/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..88aab36a5e37238cdc997ba5b5aa3494188e04a0 GIT binary patch literal 484 zcmZ{fy$ZrW5QHbW_!F@Zv9J*=f{0iIv=Bk?T@(>4#ZKSE#@@;&P*U63SlIa*qBBRt zVf2Up9C(N$@RQcH( Iw2YVi16tZEUH||9 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/cmd.json new file mode 100644 index 000000000..bc5e919e0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "hfsc1", + "json": "0", + "words": "qdisc add dev d0 root handle 1: hfsc default 10" + }, + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "desc": "positive: opt=plain cmd=hfsc1:qdisc_add_dev_d0_root_handle_1:_hfsc_default_10", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-014", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..88f0c06b7619efe2e27c2395f9c9b1f2f20c2dc1 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+R8^MLPx# literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-014/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..642490173c617a8fdeb129065d8d7e03c0c72993 GIT binary patch literal 484 zcmZ{fI|{;35JhkD;wNGulETI=h=@fB3rkD)p@?83h_y?w3kWv$RuVv4uL8Wd+_sI?It3=2)d27B78IuOQoS&-kir&YqkRGqvj#GwQ)JwwE||$t5M@%uwwzj*MdX zxyy5)1LQ7p`mlWNA?M{{Gt;*!Z{=P=Q!5hMMum4C6hEDUVrQC%e{%OuyW9_S*Z)+z K?hzy7xPJj}n=M)Z literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/cmd.json new file mode 100644 index 000000000..9fe1abc42 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "hfsc-change", + "json": "0", + "words": "qdisc change dev d0 root handle 1: hfsc default 10" + }, + "cmd": "tc qdisc change dev d0 root handle 1: hfsc default 10", + "desc": "positive: opt=plain cmd=hfsc-change:qdisc_change_dev_d0_root_handle_1:_hfsc_default_10", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-015", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8d29c6146bb2a37cab61195c83404183d89a8a97 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+RS*C2-qMr^E80s0zeEh@9uP=nG8U)nSuPnKpF&)%}E5B z;{g-{VRUza%vNDwMR6C%9FTecfdItf1hO;IijzTXHU=iJy&(5x1I;x7ih(e?xhg;* SCZHi8_c3dM6hQoeY!?9d!6pO% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-015/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b707f3617ccf7343fb00ea510b9b29b670b8a4a6 GIT binary patch literal 484 zcmZ{fJqp4=5QSf|@h4&-n!?6H2qI#U!ot$KC?Z&jC-53J_Et8wN*e7wguQ4d`d&zI zS#V(7nU~??^OhcVJ_7tIz?;iyU0WUl4-?L61ZJ$KsDwik9?rZgGW)HfgU|yiFqrXJ zyeoNvWFUvvXWn3o*KJ)kAlqcKO%mpFFGWR17k25zsu4Az*{h%+mmh3ji_5Ja2K|UkpIAnSuPnKpF&)&DjDp z#{(z^!szY-nXSUW%8KkRkU1dp{sRGs#R+6*q!lNF*lY|;V0%ICI{-A-1Skf==;o>b Tg_wYbfXwC80x5v_1KBPB=Vd2b literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-016/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..21322e52a7fb8a372b9e739fe80210d6f555e59a GIT binary patch literal 484 zcmZ{fJqp4=5QSf|@h4&-lETI=h=@fB3rp{!h+wC90KI@0ut_W0cmgGb7w`(+!AA7G zkl?c5z_>Fn!^h_%yQDq>{3^hk%XQOOZX*v9&T0f^tf#DmLmM7$yel*Nt)q+318Ojs z@mRb)d4l91hu3G`VvDz1-Jc-aaL@RvY)(qfh?&~;iW&9b8QV)7yX0~t LyY3Mq0qJ01KsOfvG^ixN literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-017/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a6ce7dd53fbf0ca60b614a051e6e8fd1816776f0 GIT binary patch literal 476 zcmZ{fJqp555QHar5sg@gSlEb-h=oE51xrhNZR{+x5)2j*yoVPMJb@=rQrmeQ(V6)7 zeBi=nv%}`&%QZdjeFXScfE$-nQe2K3A%=WcBQOJvcSU@uz{8n$@64VB)De0>9tLwB zi#H=rkPPJT+RV#r@%q!z1!NoUDW}Tj#N_mtsa>xoqZT}4dx>M0TsCAJ7^+>yj!_eS z<}&H(0GW&Co#k_u=(UR1$s$=G$4wQ{vikDPg4d(=`Pxo_&Y%4E>bc2zOK1I`+I6ln HGLG{DS=TAW literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/cmd.json new file mode 100644 index 000000000..4f512a71d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "ets0", + "json": "0", + "words": "qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0" + }, + "cmd": "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0", + "desc": "positive: opt=plain cmd=ets0:qdisc_add_dev_d0_root_handle_1:_ets_bands_3_strict_1_quanta_1500_3000_priomap_2_1_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-018", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/dump.out new file mode 100644 index 000000000..8a010b3e7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/dump.out @@ -0,0 +1 @@ +qdisc ets 1: root refcnt 2 bands 3 strict 1 quanta 1500 3000 priomap 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-018/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..09ae53f2ec073fade83318c319e86ad45df14f5f GIT binary patch literal 388 zcmZ9Iu?_)27=-6;cR4g7N>o=UNE8aC!gHvoG!i7rtMp2x#1ouGN$wStUPYL>xVY?} z{P}19%zis}&n!KMu=tn7n}_?ZzS^e_Q))G=nP?O>qG%z&gT7){o)NmJ1wa)B3!23{ zkS9nE@_2pjn{4rhy~`0~8=f;xRhe@lC*e-*=UQ_W!&S<;#1Zeql8UI8+YM$26Zd<^ yAQ>T_u#!54W27EXsY zY6(zI~&aB>(BQ^&qKgdUNY(3f<=l9w7a z-YBh(HC~8yka{n}-u2C^MuKlvO32aIc=CZIdG_Yja+h2VGjq&zZ^g^7ZUA%GnMH*R zkYDjUO;v~&&;MuM`S10aX6_yMv;1lK#LKf>x_{s$Ay|~{J+sySppLW637II{AEEUz AhyVZp literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/cmd.json new file mode 100644 index 000000000..9c8741845 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "ets1", + "json": "0", + "words": "qdisc add dev d0 root handle 1: ets strict 3" + }, + "cmd": "tc qdisc add dev d0 root handle 1: ets strict 3", + "desc": "positive: opt=plain cmd=ets1:qdisc_add_dev_d0_root_handle_1:_ets_strict_3", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-019", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/dump.out new file mode 100644 index 000000000..c47a9e483 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/dump.out @@ -0,0 +1 @@ +qdisc ets 1: root refcnt 2 bands 3 strict 3 priomap 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c86d517bafa7399d802979c07401547bc39c4c68 GIT binary patch literal 340 zcmca|c+)~A1{MYcU}5+RLkL4<*+ffZ^GD+3eQK9D=5f##b4 a)qya&`6@smCZJ&;^J{cK3LxQwY$pI17$m#^ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-019/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..109ddc5e138907c43ee9a49b3f7e93341a916535 GIT binary patch literal 624 zcmc(czYYOG5XQf~z4b2&kt;O1izrAG3Z;jkqB{zmgs9Y_Rd@kUKzIbNBYd-aVzZ() z$=u9*H}}hzx%>5Wh!EowF&-Sw^U7qgDr3lA60sggc}I^;9SRrjy*0m<&_r1QMQDt; zEW8bQ0y`@V$Zhj=-N7osIYMw?oS z$a lVi0|S9pdIXpj{?Fc@RdoO9dzd)XNC6t4;@`fPn$segGwoDB}PC literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-020/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8908276080d40c96340400afedd935ea6aea9d30 GIT binary patch literal 636 zcmc(bJqp4=5QSf|iHTw%62!(%#6m$Kf~AEAu(z?$%FdtO!iy-Lz|KxdFBTrcONhSN zup}&4J208q$K+$?J(Kgng@-IWy!p6pOUwSTh!J~9cxoucM2}4s4sM(?TE2#8py&Vr z6y_Wj-iSPbXpqHgQ?D?Ecc~5TAY1XBuu9}P6LMl|lJ;IrN-a1lzn5_GA-hb;7!xgN zGh%8@xO$gWH~lkZIQTGJN+I`JY}Pn&&Sx)L1hot4<%`2o9|5q3zw=ShSNyM*^$|U~ k80k&Yo6NVaoi?wmc7EvDMAnI?GkPliOWK}Bl$7P^7bJErJOBUy literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/cmd.json new file mode 100644 index 000000000..d6f775db7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "ets3", + "json": "0", + "words": "qdisc add dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0" + }, + "cmd": "tc qdisc add dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0", + "desc": "positive: opt=plain cmd=ets3:qdisc_add_dev_d0_root_handle_1:_ets_bands_4_strict_2_priomap_3_2_1_0_3_2_1_0_3_2_1_0_3_2_1_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-021", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/dump.out new file mode 100644 index 000000000..1276c50df --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/dump.out @@ -0,0 +1 @@ +qdisc ets 1: root refcnt 2 bands 4 strict 2 quanta 1514 1514 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-021/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..281369ca971f49abd3ff18f5b0459de61ec9f0b3 GIT binary patch literal 472 zcmcJLEe^s!5QX3Vm4YI8Tm=GwKp?pUHvokM3<`mOAh1Zd0w;hJh3-|51m0`X(5z>g z$(wyU`F5s7e!WjcprwUl=W=6zzKE}SZn(L r%MaKh&`ZjPb`B`d9GcWynqx3_CHs}vc2EyEX+*O$S(-50oHEJtQ;1ie)Z&X8csx}FO$ z#|4T6IEKL^i>3EYJ&8D>Nbi#TDP4Nk?ZY>yZJ0MiS*Y_#ohx$kc&-ttF%lEbC7sYT zOZHaap3?GIITE;pnVd|XBhgDsNOW4}t z$lXb(I-%MNW&eME;`&tFX6ZV+)PK(1bUyXLb|)}9;yEJ=^&I!~$myxVxo)&lxSzR{qr5jEl~B)DOYC7cj#}G0 rSbo43j-D^?7RwWB3bF9-|9Yz~cO3IBRk&kHi*p&h)nTXxAl&-{xLho= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-022/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..200a6739008d42d5b6c90762319c7df050edd54c GIT binary patch literal 644 zcmcIhF>b;@5FGn_U=RgDF4EAUC~k@OTife+AAxupT|ffP|5 zkv|}qIm_l`iISDpvpct*-P`*;W}6TZt`_0MWdGfqJ&&7sWh_TzUIc}u3_1vKU|qra z7^90u0Mudd!D8vXQBNXHsG|2ozD<|j-_I@swGHzlQReHsQ)fs{UY)B)>JfqQ=aPV#@9l->Wl<@%)DX5u=#wER4{>B_VW`ZxHpzzek7Id`jfkXLt`kTSfz-ly2@ E1*u*xdjJ3c literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/cmd.json new file mode 100644 index 000000000..16aa2fbe2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "ets-replace", + "json": "0", + "words": "qdisc replace dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0" + }, + "cmd": "tc qdisc replace dev d0 root handle 1: ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0", + "desc": "positive: opt=plain cmd=ets-replace:qdisc_replace_dev_d0_root_handle_1:_ets_bands_4_strict_2_priomap_3_2_1_0_3_2_1_0_3_2_1_0_3_2_1_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-023", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/dump.out new file mode 100644 index 000000000..1276c50df --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/dump.out @@ -0,0 +1 @@ +qdisc ets 1: root refcnt 2 bands 4 strict 2 quanta 1514 1514 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f3c28d849a75e458b2f89037ceeb05b9cbaa47c0 GIT binary patch literal 472 zcmcJLAr8Vo5Ji8tyR@JPf&_u9Kp+qZ5)6j{g#;X;f^Y#07KQH#Ams?P+ynyuH)+_c zXPU{M{X2O()2b{k1{S}tc=K@Eb=LcNf(2_OY&?@RF=5d|ggg5h&({<~v?Cxvj3t}J zJCY|z4GMT8`dy}Y&;H;AvSXf0s>0`-$f@Wl!?_-`GC1eYC60I>hN_hHYP-Q1CU>m0 ty@TNg9N_4+>bIrxq?$si`1ig3)s;I=`Ia)=F{8z~BJEg=)c}Nhe*x0JDkA^@ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-023/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0a82960ee6c347879c58a3f746c4b380b75f33fa GIT binary patch literal 644 zcmcIhF;2rk5S;V*h%ppVc5eZRI`2~>FQKTrZ z;1399&hl}xM9E6)*_~U@?(H47^*TX{UrX`DH-grt3Pf^4b@VRC_vz9*d%oI(+Lrm2D2sJA)VU@n@6J_{8pGIlF6qRk zS$5QzQCi;BxFuI2@w2>6nm-#2gKt_wD&t)Di$}b%&N0>o9b=spuvJFp)2Xh(C%DSt z#NSD%I-%MNW&eME?)yx+&BAx~Y4{BNbRiAFz>% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/cmd.json new file mode 100644 index 000000000..989cc4567 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "ets-delete", + "json": "0", + "words": "qdisc delete dev d0 root" + }, + "cmd": "tc qdisc delete dev d0 root", + "desc": "positive: opt=plain cmd=ets-delete:qdisc_delete_dev_d0_root", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-024", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/dump.out new file mode 100644 index 000000000..f3b1a3c16 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/dump.out @@ -0,0 +1 @@ +qdisc noqueue 0: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ba7e58f12f3b78399767ae0a196fe2f4301f8d79 GIT binary patch literal 312 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$#P0h$Lg1Z)tRc^W`*0U!pMSN5jj4Fk|@W+4ACkOl!{bAo{8 vm;l8<7~NeeKp|BIRup%E%mIP_KmejaZkbNN3?`rhKyKNf1Jc33fNm}T>oy|= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-024/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c7c911b13025881ea33b62e4491e47e66f6dca34 GIT binary patch literal 476 zcmZ{fy9&Zk5JV@r5j9wdSlHN!SSX~hu=Hb0B`6l@?d`Vj)P!ejFLCUW%ZZFNL$%9TFlxZh zTs9pYAal{YvwY4Hy+-3n5+^Zo+*A=Qt1sUycs**Luk93Q|H*%^o|~Mnbk_f=UFRwz H<2XM6>q0JS literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/cmd.json new file mode 100644 index 000000000..320eb5ff0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "mqprio0", + "json": "0", + "words": "qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0" + }, + "cmd": "tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0", + "desc": "positive: opt=plain cmd=mqprio0:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_hw_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-025", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/dump.out new file mode 100644 index 000000000..4129c5239 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/dump.out @@ -0,0 +1,14 @@ +qdisc mqprio 1: root tc 2 map 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 + queues:(0:3) (4:7) + mode:dcb + shaper:dcb + fp: E E E E E E E E E E E E E E E E + +qdisc fq_codel 0: parent 1:8 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:7 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:6 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:5 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 +qdisc fq_codel 0: parent 1:1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a7d08c79c436553af9adbddefa593ed9cd9ae7df GIT binary patch literal 412 zcmca|c+)~A1{MYcU}5+RE~{sRF>3pdcr+`@vQ%zOrh2nHq~WMG8Y0+Iy*7L*Wy qh@q0mA%-dg;eo>M9nhU7KrRTQyHf=y1hN<8&KG(h1q=-6ZU+E9@+px3 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-025/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..19dc71fbb4134024e782863203b22fdd9fcd2cf7 GIT binary patch literal 3348 zcmeHJyGjE=6g{(#WRe&aO<`jf#3EpX6qYIc0>MHMED{AV5+m4HS!v-9*hwmT|3Cxz z0!zQZ+E(=3$u4eY#|olQ6OStN>wIu=dD;ga zl*ipr6Hm=XV_}~guf+4L^%}w(9mTJCg7C+fJlhz3NMXJMlXGp`(18^kSkZxL2Uc=m zWe3I-q*pD$v|^V ufMOtw?k*LekSYT!io0OG`ws*lEg-*1e!_1C6VL%5w|v(F>0n?$Hx~dtmL^I7 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-026/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..da61af661e024e2e3ff9159b7b1c3eba8a5a7694 GIT binary patch literal 476 zcmca|c+)~A1{MYcU}5+R#7&6Vl zAj`nX$iTqPz|4?h2r=(I&^(YKV1v-i(*TMK05QlsZ?D4R3_!C%t~v~)K>*pD4?uHF zfMOtw?k*LekQxIcGqSsoeFxG4^4m9{8B2g{5Jop+3Q$OefeGxESNb3YKqU~0;Xe>C z0ogo2cje_5mZp}bGOz-9AYcG=r3lo$U;!v00Sp6dKnI67Hnku({|35Q1tY5PkO%J-<-IQeg{03qkEfE%F~kTiIMTW-)gOxlN&1Sl9@5c6Rnw{s2+Z zh_zs2VPWZCkoYD?@Nxrlv-@W5y_wnf{^Pxm5dRk9mzU?>^y$;uJgPj4BMf#VjBJaC zMR<5&-3Tkj2rHQKfJp?XZ|8ikDklV4`Y>2#-S+rR^SM5qu0j)?md&K0FnEF9ZTj*Wkd+Z)g1w^{B0 zZ+Clg+lPO-Or44-(IVzVFQUrVZHRJCsw7vP3x;np;OsZV#LKf^5Mq5GvwNFT0F?J} zNVP0(9_RD#ssnp&l+(4AQEA($tYc!^u%^DD8eN?j)iUXcYbujDn`md-X{Hi=rfNpn MRL60ztDO;@KPn+kB>(^b literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-027/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bcd2fc4ef4c41424804d65f61e360f8ad8a6b7a9 GIT binary patch literal 2384 zcmd5;Jxc>Y5PkQNtp9iRpe#~ZP~ZTgcF<0#{=L;XCP{N0b=UqRnu^~_O{_Onkvo7Aag zc|}yM!12<&(z}z1_I5}g?Et1_eRMn^f@`>p*JZ&lrg!j7sdGL?E!(?H@xLqqIem1*G0ah)* zY6TceVvVP~+qg6eFy+r?7Zza60&KPbo6EsM)(S7TJA@FD&GJZD&|JHUWsh}@Ska`; zl}w!j{)Hdc{_h&qJG~~Zv5#KUqh31$x;#0p$$w)Mlddg3IkINa=Pbn?mHFpH`F2dy z2K!-u(C0BRHTY!MX>+TUm|L~P+$tsJ=9ie8ZfTv>GM)vu#N3p%Y35DugcH6KB6H8N R%e+}yRC&Ck_0~w<2|w2_c{~6B literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/cmd.json new file mode 100644 index 000000000..fc4510b60 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "taprio1", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 cycle-time 600000 cycle-time-extension 1000 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 cycle-time 600000 cycle-time-extension 1000 clockid CLOCK_TAI", + "desc": "positive: opt=plain cmd=taprio1:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_S_01_300000_sched-entry_S_02_200000_cycle-time_600000_cycle-time-extension_1000_clockid_CLOCK_TAI", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-028", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/dump.out new file mode 100644 index 000000000..caf5fd45e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/dump.out @@ -0,0 +1,16 @@ +qdisc taprio 1: root refcnt 9 tc 2 map 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 +queues offset 0 count 4 offset 4 count 4 +clockid TAI base-time 1000000000 cycle-time 600000 cycle-time-extension 1000 + index 0 cmd S gatemask 0x1 interval 300000 + index 1 cmd S gatemask 0x2 interval 200000 +max-sdu 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +fp E E E E E E E E E E E E E E E E + +qdisc pfifo 0: parent 1:8 limit 1000p +qdisc pfifo 0: parent 1:7 limit 1000p +qdisc pfifo 0: parent 1:6 limit 1000p +qdisc pfifo 0: parent 1:5 limit 1000p +qdisc pfifo 0: parent 1:4 limit 1000p +qdisc pfifo 0: parent 1:3 limit 1000p +qdisc pfifo 0: parent 1:2 limit 1000p +qdisc pfifo 0: parent 1:1 limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.err new file mode 100644 index 000000000..90081ad3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.err @@ -0,0 +1 @@ +Warning: sch_taprio: Size table not specified, frame length estimations may be inaccurate. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7631fd538f660ac79306f1a662589a5ecb88a5e3 GIT binary patch literal 608 zcmZ8eyH3ME5S-W!IA9b6El5`&L4gEx;Zfut5R{;cb0HRq9mSUdM8OBp(b4e>d_hpC zs1Y?KLP|%AU^Z5S0m3>_azYO78B&XHAev|+&aNwg%3^*n3P&iYRNeOSpoeZ0O=G~j^WVe7G;Pv59 zZUNPXo0Ul;Kn0&{NgTnsU88O}lUw4h_nE1lBl}T;X Y)iz4vRCV>0Y8Vy8It&MWZH?&s0r#9v&Hw-a literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-028/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b97bb194381ede8c33ecb68a2b37ffec3f4473ba GIT binary patch literal 2384 zcmd5;Jxc>Y5PkQRT;fGVQl!xC&=eLCECieUfYgGeAc0_E2-@c_h}wuC`V%az)O6PV z089Ub=zDuPJ&xP6%nj`A?!4WZH#4`(zRw=-UHJGDA77ljoHtJ^%j8YtXh>&Dcw_b}ndVmpZjP zub8S$I9`@lHacxlYub~K)hPJt`e#R2Co zNhfU07PBkwJ4Mp|KRiT0U%)z|X*kbCC{L7-xs|^Z)7XY-hYe%6R!sbC`+^dzR)W<_ zFqXvXPkFa-X_jEhpKV`Mg0)JpMi0@=3c3zp)R%HngPd^^T# zli%@hG~_WcHBhXJ=2ovTw_1g{1r_GzSD2e_X`R(7o&~qU+?2IN=1uQ}2fh6^}6r8);gDr&wFc?S>Cvc@nMH>tPi6rqA=;b0bQ;YFu|+R4Q(!}@bJrfH!hhi z8hG%4JOX??JG}w*BoYf{^jhT04C(DE{S&CIs`ku6QfEY+BRNI3u0K){!d$X0*PVw8 zp(l^j{CuCy$5Y@7J}g3VU@pXNLwLO z>;$p4^iPPsNenK_CYHAY`I?uRdC4RpZ}Z377zzF)!50Tl=h^Yyg~E`1DM-|wG)@NW ztRcdT^PH~SYHXqt0c|K8?O1;g^e0Y?ql&*i^{Xu6Z*c#73HlaRbG9O7KQsE-rA|tf zS3%VlB30&9UY(f8+Ft1+(KKhN`sgX3Ky0{VvQU{~>ImPI4*N^wb#^#89iITxIK~0T zF-cptX0oxW#&(En|HCy>#sV}lvlE)5VOL=T`BeYzjh4t}jxrjD2^SwG7Cwy2_hQ1= zXO{-BRsd@UFiDRup5(!YWdY3YXZ@b#0lRJhTMl3=HCWDjftTxjLddy_k1Kl;a>%Nz z^qJR!8FhJ1D|yyDm139DgUEolr1yI!tOr}KORO5%_ULP-;)crlJ0UrUOjJ3clhJs@ zD`E2T$*_y&)^0GjR)e{v4d#|Kn47%7^6obAF2oJyCcC!CeUm@IJO2cQdFNPF{wF=E M6yIO@SGYgH50pJ}B>(^b literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/cmd.json new file mode 100644 index 000000000..f6c939171 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "taprio3", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI", + "desc": "positive: opt=plain cmd=taprio3:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_H_01_300000_sched-entry_R_02_200000_max-sdu_0_0_clockid_CLOCK_TAI", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-030", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/dump.out new file mode 100644 index 000000000..00f234d43 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/dump.out @@ -0,0 +1,16 @@ +qdisc taprio 1: root refcnt 9 tc 2 map 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 +queues offset 0 count 4 offset 4 count 4 +clockid TAI base-time 1000000000 cycle-time 500000 cycle-time-extension 0 + index 0 cmd H gatemask 0x1 interval 300000 + index 1 cmd R gatemask 0x2 interval 200000 +max-sdu 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +fp E E E E E E E E E E E E E E E E + +qdisc pfifo 0: parent 1:8 limit 1000p +qdisc pfifo 0: parent 1:7 limit 1000p +qdisc pfifo 0: parent 1:6 limit 1000p +qdisc pfifo 0: parent 1:5 limit 1000p +qdisc pfifo 0: parent 1:4 limit 1000p +qdisc pfifo 0: parent 1:3 limit 1000p +qdisc pfifo 0: parent 1:2 limit 1000p +qdisc pfifo 0: parent 1:1 limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.err new file mode 100644 index 000000000..90081ad3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.err @@ -0,0 +1 @@ +Warning: sch_taprio: Size table not specified, frame length estimations may be inaccurate. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..493e4138fc4cb5421d2c934a5abc288f18c3c23c GIT binary patch literal 624 zcmZ8eu}T9$5Pf&I(NiOcq>QkFf`y=BBWjU<5N&01*_g%LCFC}RVv!H96Cwx}wwC^Z zrnAlmMP@<;y*ty zwu91AelPbr4^s-(S|d%Xx;@hY#_$oML>O>IxKD%KL}qe`1$P{__|3bw*m1Wqd4TVi zGrm<&9)$BZg*+{X@!SkMhd-ziuS6V&2lFa0c@oHatPqmEs{*z4VD|5}pMgi}aTYy# zAc*(@dvtuj1fmptyQFDp)Vg*)oyrSyuccM>ww6i9%CxH^(=@uVFPl9TYuVPxjcrMt ZS`#a4I!P*HbtmgunnXoWzo)F`Ie*eqO)LNa literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-030/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8448f798a6ff42a67815c90d67a4fd22587d0e5a GIT binary patch literal 2384 zcmd5;Jxc>Y5PkQRT;fGVQlyAraYzb<2o{1C!B%bUEJO(e3xjCyf6z*7(pn1s08OQ} zKfuyIA^P6logT;CS>^`zc6Z+H%$u3pW#6Zd6B{o6#KjjU&sWW}^;ZW2j@95gTj~<& zbFc&pFI<=C(!GymG%TPF2d5j6y&c+<5o0K0uSfkNo9yj9?LL6E#cIl4lD2a|JDb$0 zWqE~Et-^BBywcHWi()&XjgAk~vNn1S5W+TGx(bvM*|6|UX>dMAUYEz?i_tl7Yuh;F z+$QOWt=VFBWql_|(*KA1@aPNZBDnVBT=?=t@tIrsOE8U#FzqP97;YgZentDd60BB& z)k`pzq|l%8Uc{wYf+>GR`+^dzRf5fzU<)}|z*^z$ZkrGSvRRoZ3mPk`NcLIRkQGhp z>~S8|G^(@DzwqP6{aqtWYogjZaqnW#a;R5iK%Xb49sf5*5q~=3lOt;d`kbY>r!xPX zDBqUx+T?dU91VF)ObtHicGleL73Nl}FgLHl+}sLt)9KY&t>RhG4O3NaVm3=|dMBLl Woe-LPj-Sk%rA?J?UA;Aucft?Hd~v-1 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/cmd.json new file mode 100644 index 000000000..e8991cb3e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "taprio-change", + "json": "0", + "words": "qdisc change dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc change dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI", + "desc": "positive: opt=plain cmd=taprio-change:qdisc_change_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_H_01_300000_sched-entry_R_02_200000_max-sdu_0_0_clockid_CLOCK_TAI", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-031", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/dump.out new file mode 100644 index 000000000..00f234d43 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/dump.out @@ -0,0 +1,16 @@ +qdisc taprio 1: root refcnt 9 tc 2 map 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 +queues offset 0 count 4 offset 4 count 4 +clockid TAI base-time 1000000000 cycle-time 500000 cycle-time-extension 0 + index 0 cmd H gatemask 0x1 interval 300000 + index 1 cmd R gatemask 0x2 interval 200000 +max-sdu 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +fp E E E E E E E E E E E E E E E E + +qdisc pfifo 0: parent 1:8 limit 1000p +qdisc pfifo 0: parent 1:7 limit 1000p +qdisc pfifo 0: parent 1:6 limit 1000p +qdisc pfifo 0: parent 1:5 limit 1000p +qdisc pfifo 0: parent 1:4 limit 1000p +qdisc pfifo 0: parent 1:3 limit 1000p +qdisc pfifo 0: parent 1:2 limit 1000p +qdisc pfifo 0: parent 1:1 limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.err new file mode 100644 index 000000000..90081ad3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.err @@ -0,0 +1 @@ +Warning: sch_taprio: Size table not specified, frame length estimations may be inaccurate. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-031/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ed83ef8fb29293f3690366a69417f091e8083327 GIT binary patch literal 624 zcmZ8eu};G<5WOU>2sB6tI)Y>&1_lsREC?97Ga^_Rkej;HqD`yD9Y75IfNpGT`~rUf z-I$A5`4I%~>P93v>2mhFr+4R<+4S|rCqe%q=m(d#(aPOM-J=H1oFsx{E?FGnuudMm zgO_3X8qyXmdqhhVP^<3rwxP!&bD@&nF7P!Z>+OF=Uj%L5YKqE{*Exbt4KQbUF9B?a zDuun=>pc2JuvQhCRt<)xPc$Q+Lh!4=uYmg)>?SgkLloR`Sn->8uh?<72p-VK^C{nI z6ph2hn?jzJ!+36nosmD@1g`>)!-GW?^!+3#>#;%zeOCoFR)hJ!JBLRT^f=2NJpuwh zV6U$am;g%2w@XY*Y5PkQRTwG=JKx^?x|NZ$!RgJ5z6 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/cmd.json new file mode 100644 index 000000000..fffa5d141 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "taprio-replace", + "json": "0", + "words": "qdisc replace dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc replace dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI", + "desc": "positive: opt=plain cmd=taprio-replace:qdisc_replace_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_H_01_300000_sched-entry_R_02_200000_max-sdu_0_0_clockid_CLOCK_TAI", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-032", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 clockid CLOCK_TAI", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/dump.out new file mode 100644 index 000000000..00f234d43 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/dump.out @@ -0,0 +1,16 @@ +qdisc taprio 1: root refcnt 9 tc 2 map 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 +queues offset 0 count 4 offset 4 count 4 +clockid TAI base-time 1000000000 cycle-time 500000 cycle-time-extension 0 + index 0 cmd H gatemask 0x1 interval 300000 + index 1 cmd R gatemask 0x2 interval 200000 +max-sdu 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +fp E E E E E E E E E E E E E E E E + +qdisc pfifo 0: parent 1:8 limit 1000p +qdisc pfifo 0: parent 1:7 limit 1000p +qdisc pfifo 0: parent 1:6 limit 1000p +qdisc pfifo 0: parent 1:5 limit 1000p +qdisc pfifo 0: parent 1:4 limit 1000p +qdisc pfifo 0: parent 1:3 limit 1000p +qdisc pfifo 0: parent 1:2 limit 1000p +qdisc pfifo 0: parent 1:1 limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.err new file mode 100644 index 000000000..90081ad3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.err @@ -0,0 +1 @@ +Warning: sch_taprio: Size table not specified, frame length estimations may be inaccurate. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0f2d833c010b5f3d22cc3bba41333f5c4a522f59 GIT binary patch literal 624 zcmZ8eyH3ME5FFcQVIW9=Qi8aGf&vNXconIrk$AM|;#|my*oopx0iwtUq@$zb18DdI zNS8Vvz>gr<&Bem@O6$Fw9nJ2IXOoXN9|Hd&@I#l+;mX6tg@*>6IU#~$E_oc%VG|y{ zh?ir<8etpD9YR{HonX%DUV^Y) zgkfU4l93)?v*?4RwEBEeLdq_ z9ko%kcvHmF3K-ALv2*yNE#ig5ad@z(0^ctJd5;w$(sxy$u@=n#-6eT6rXFY2qi2GM zAFxO90TYN)@$H7DWpU@u`E)9;%#)T@HM?4-Ju9=mj!oO>*1l{HRH9{9r}wrab!JVX Xtm&nhOw^-nYH3mx$HRfLn&0 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-032/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b9ef62c59f2f64715bb66c5049d0a6c1aa839021 GIT binary patch literal 2384 zcmd5;Jxc>Y5PkQN_GSVPkR8t`zm75f{~pPU#+Ie$Ism)Yd+b1=C9eT&tMy(H`Bn0~gY zQ_J&;sM>(zWqDvC79zk+lC04^U$)U=`tYkeo%JNR)tQt9U7@j4dZsLnE2W3Y9&~` z1Z$LFOo=s~&fUhPRf6gKY<6J@)-J&oOR%K^EM%_m`mjp~A=#`?bqX45SF!9fuMsnv z=DEgsoYOeZ0sq4HTmN^BFs+Gm>m@yFw(U``odJDTPABuX z$TDy;GBB_+Ff*hWLd=T>ng=ojY!I4x8bEOYAO@Ld!R2(E0cbYJRfmBz2q2r21vJM5 rC3P( literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-033/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..77b45d826d6285a68a0100da1bd51f5f237bcd66 GIT binary patch literal 476 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*hWLd=T-ng=ojY!I4x8bEOYAO@K?Z^@-c3_!C%t~v~)K>*pDY@j(N zKrs+Tcb5uKNR5G!8QERPz5{6i`KuX z$TDy;GBB_+Ff*h86@$!60GbCf1Z)tRc^W`*0U!pMcV_zPFAPAlnSuPnKpF&)%_#ty z69E(hVRUzS0EJW-SlN)>1u_R@-hUtfu{eP238?vUKyjyE|NkraF)%#f j{`eo{-Zr2;CO~lzMz===D8vLb6l716AxHrO1G?P+qj@aj literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-034/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5f0aa7704ffa274aee4a4f062883a43b847befae GIT binary patch literal 656 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$!62bu>m1Z)tRc^W`*0U!pMcj@%*Ck#NdnSuPnKpF&)&8YyI zV*(TdVRUz?0EN^T7@3jX1u_R2fZS3KG$R6NGzg=cu?8rl!oUP}OPUcxC&Ua!hW|jo z1Qg-`x+^)Um_Y`pP6FyiIiR@HumArQ{1_M>aDV*I%D@BGYyfn<2viNkGzcjH_93ze zgsp=^98)C&!yKR>cDI65GlFg90+I!3nQ8ez5e}exUjRKr54VBBxeXZ3pf~|x^l%md J3NfRFGXUzDITHW? literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/cmd.json new file mode 100644 index 000000000..c96f802da --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "cbs1", + "json": "0", + "words": "qdisc add dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0" + }, + "cmd": "tc qdisc add dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0", + "desc": "positive: opt=plain cmd=cbs1:qdisc_add_dev_d0_root_handle_1:_cbs_idleslope_1000_sendslope_-999000_hicredit_10_locredit_-20_offload_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-035", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/dump.out new file mode 100644 index 000000000..8d2b5c520 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/dump.out @@ -0,0 +1,2 @@ +qdisc cbs 1: root refcnt 2 hicredit 10 locredit -20 sendslope -999000 idleslope 1000 offload 0 +qdisc pfifo 0: parent 1: limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..fa5382e4a7cec616baa4cee59c7eaee3017f0ce7 GIT binary patch literal 348 zcmZ9GF%AJy6h-gM|CpIdR0^V*LP?@fDlI{cPAP0gB?=Oq6&SMxi7hBdY(U1nV&dn& z)p|8~38KI3h0BSIp(=6VR zJVCx7kJqJMXN%Wa@1G#s@SSt2T+W%C2{pBU*O*d@O4Yqf9PtX4wut*|xL* g{lWh`&4=t&=-wN12GrGlPD&{xR5`o841k~g0XrQnc>n+a literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-035/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..64c2a8383e36944d5edff916787ec747c9d255c4 GIT binary patch literal 656 zcmchUF^U2~5Ji7ak2nqnA_fL-CSqV9VxXDqDU4SckPQ@;jl76~2xbOG;sw+zcnAXn zFR+Zix)qz&O)aRd?myLU{?r@~n`M9yj|lO{!|pf!9)9N0<6aV>?nt>ulba$G_UyZB zZjJDPoC31Y7_wP-Q}P62KpwA7y}%USrmItst$9AMO1PW_Ic;i^zOO2!8kBZ@3C9ib zvL>TXw4~2iQ>r2`US=(O(=rrNMnEZ|uff+3D(oxYJjT?|e12l{YIjL9$eYVex-Z>& zEX}TE^M$Tr_lZO~ Dh1@w$ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/cmd.json new file mode 100644 index 000000000..d7f2b8d7b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "cbs-change", + "json": "0", + "words": "qdisc change dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0" + }, + "cmd": "tc qdisc change dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0", + "desc": "positive: opt=plain cmd=cbs-change:qdisc_change_dev_d0_root_handle_1:_cbs_idleslope_1000_sendslope_-999000_hicredit_10_locredit_-20_offload_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-036", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/dump.out new file mode 100644 index 000000000..8d2b5c520 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/dump.out @@ -0,0 +1,2 @@ +qdisc cbs 1: root refcnt 2 hicredit 10 locredit -20 sendslope -999000 idleslope 1000 offload 0 +qdisc pfifo 0: parent 1: limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a17a495cae8f4cc145dd6cc1d2dffefa31253228 GIT binary patch literal 348 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$!c0h$Lg1Z)tRc^W`*0U!pM_qv1aBm>ZFW+4ACkOl!{bEW{z zi2#a$FuJ=ufI=z^tSIgRnFBKKKM;Ue96)w*QZa)J0~3P;)O;?W_#2@73!vf^2S5A= gxpywm9uuHA2&3Dh0u*8b8VYjnMnjMS1_pGy0a;Nkl>h($ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-036/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2bf38fc3af43be4921aced78ad43341bedf48e19 GIT binary patch literal 656 zcmchUv1$TA5QhJ~J@Gs&Bv@Rb-61Jbh*+e|W29C&5DNwIZ7j~tB2^whP|LLGEhCu1 z7ZCktS8-XjbzpXO|C{~pzq#M__bfn&YlJxPu$;t$MX!tx?j;fGcPW=>a`OU(75grl zTO-s_Qa}+JJvIyPhdhB8kjHzaUSSIFZ!yY2w&r=wD&cZAZOa DtbaT| literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/cmd.json new file mode 100644 index 000000000..c89d40b3f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "cbs-replace", + "json": "0", + "words": "qdisc replace dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0" + }, + "cmd": "tc qdisc replace dev d0 root handle 1: cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0", + "desc": "positive: opt=plain cmd=cbs-replace:qdisc_replace_dev_d0_root_handle_1:_cbs_idleslope_1000_sendslope_-999000_hicredit_10_locredit_-20_offload_0", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-037", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/dump.out new file mode 100644 index 000000000..8d2b5c520 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/dump.out @@ -0,0 +1,2 @@ +qdisc cbs 1: root refcnt 2 hicredit 10 locredit -20 sendslope -999000 idleslope 1000 offload 0 +qdisc pfifo 0: parent 1: limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-037/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..63136eeda3e0f49f83618f81ea0c38371f5dd48b GIT binary patch literal 348 zcmca|c+)~A1{MYcU}5+R0EFgD?XNvjvEP0RtdIh=Gye5KtXV44LL& zkY(UxWME)tU}i`GDh8Ri4`?395U@dL=4k-M1%Mc2p5i+7CI+C{%s~EOAPoY@=DY=( z69E(hVRUzS0EJW-SXq(X1u_R@-hUtfu{eP238?v8K=C&~`4>RND-M46 h4|4BMpgkr)aS%qgM+GRv1T++6&vrwQ0tNJlL70Js*#bntfB}#p#K6dK2&fJwhD>uX z$TDy;GBB_+Ff*h86@$#n0GbCf1Z)tRc^W`*0U!pM_h9SdgA72knSuPnKpF&)&8Y;M zV*(TdVRUz?0EN^T7@3jX1u_R2fZWmuG$R6NGzg=cu?8rl!oUP}%L*fiPKX(d4F7?E z2`Iz?bXRgxF@p?Hodnd4TtM+RK=~Iy#VZbe_|M9~1J-N+biD{v4a77EDFOB&vIvB& zgF_rsB?H48pdfa)f>bktZRG-z1!pM^Y literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/cmd.json new file mode 100644 index 000000000..1135c9d88 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/cmd.json @@ -0,0 +1,61 @@ +{ + "axes": { + "fix": "cbs-delete", + "json": "0", + "words": "qdisc delete dev d0 root" + }, + "cmd": "tc qdisc delete dev d0 root", + "desc": "positive: opt=plain cmd=cbs-delete:qdisc_delete_dev_d0_root", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-038", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/dump.out new file mode 100644 index 000000000..f3b1a3c16 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/dump.out @@ -0,0 +1 @@ +qdisc noqueue 0: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2f84de97a9cf17b24eaf97590626352a888e4116 GIT binary patch literal 312 zcmca|c+)~A1{MYcU}5+R0EFgD?XNvjvEP0RtdIh=Gye5KtXV44LL& zkY(UxWME)tU}i`GDh8RC12hk02-qMr^E80s0zeEhZv*q?>kL4%nSuPnKpF&)&1nFd vV*(TdVRUz?0EJW;SW(;sG6w|y0|AHzx#c2YWu+x! literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-038/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..bdd6c14d4694e186e0a8133e9e23aa0083e7f626 GIT binary patch literal 476 zcmZ{fJqp555QHar5r41{v9Pfdv9J(HVd)V(gJ`8F7OCyT19$;Ju=fTU@C0^V#71-` zCi;Bf!e+C>=HtsXKJI)3_*Q@ims3=l4)0|Q_^w7^`Wjhv`BH_4Gw-s@o&_{e^ng4J z#yl2pMxG!E$li(qr(kk8}2cu%I2)d37M%~uO_1wJY#!_W0zdkWb7HLUB;GC z6Mo`y>FEH8i{_K%bC&5fUo4|ZG(nD=s!PjS>YD`VqyG8YPJzy!{P*g;$$3L({h!)( Jt}!x>^9v|0EFgD?XNvjvEP0RtdIh=Gye5KtXV44LL& zkY(UxWME)tU}i`GDh8RC2Q&|42-qMr^E80s0zeEhFUX#umjP%tGmw86NP_^fIgLPb z0)S#5jP5Q6ppXg!D;u)AK<0qV`ws*l76*`>T9U>f!oUQy6JkC$NCF5z?wkuW-vr18 YVRZ9VfI>__!$9W0Fa#-pgb%Wv07(BQN&o-= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-039/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3b928b58f0c231619d5a2e35c730dfc58aa6df61 GIT binary patch literal 492 zcmZ{fy$%6U5QWd~U9tWWVG9b;Y($|DQ7F9y4}eBXJdZ@77B7HT(0c|6rEt#8ikq95 zWHK{nCST56FNbZ22)~H%;&56Qm(NKBWA;i!W~B0sKARc>oO$=v+!~{WLIC7pFypa! z;j{ulEXd<^saKie?H`*v$TplWtO}P?Cuc}a>HA74br2ZWmpE?7OOuQvMWxT!QA!b7 zFSmgXV7?=BR z=FQ9GHsmGEw)QbwPm4TBr!N-wMlx~LnV28St!#oLf4 z$QKmxdh}aN@tVio31mC=1*;;rlM@dD}n97S@&$Ty9p(NrA%B`V&DPX+|LE?X SX5Db$4Z2t9-VjkT&J7kk|qmEh~{w+k#$WdX)uOfL1A-Gn0vzcaxiY z?#apbZr&rmoGm>5Pd;-B2Py~Aec6K6IX>B9ei_RP- zh65M&c6YLTnLQ<&rH=r=2=L;tpO>e{W&uO?N(5%0l17hB9Uc3rRyuE)P`sBzQoCgygbO*QdGK(6{Q%y z^>VO3f%PI!Z-&qBA^Y)cf{1%H_P0fV3U#?Hpvo8M(RE}MJ7!PgOUs0B)BU5ndzy8_ QlQ-yIrF%m}$v8KB0Hz2omH+?% literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/cmd.json new file mode 100644 index 000000000..da404c81b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "etf3", + "json": "0", + "words": "qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check" + }, + "cmd": "tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check", + "desc": "positive: opt=plain cmd=etf3:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_200000_deadline_mode_skip_sock_check", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-042", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/dump.out new file mode 100644 index 000000000..bc093d499 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/dump.out @@ -0,0 +1 @@ +qdisc etf 1: root refcnt 2 clockid TAI delta 200000 offload off deadline_mode on skip_sock_check on diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-042/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..eec98f4a3688e1bf5c92b40e17fc651ba60c6148 GIT binary patch literal 340 zcmZ9IJqp4=6ohAgqEQh-d&nWS-{k8(xPG@#i$a#>nV7|&TGqQwvVH7db;}O5aybsf)n4zQl1uUOr@;C@Ou%fl`jp zdU@E7zWR17kY=NA(L$PlnWXy$1E#RY&EWZoiA&zTHBvzbABAPoY@=BNP8 vF#(E!FuJ=`fI_MatSIgRnF9jc5zZpzG2Y}pS2DXHO0o_~xf2$-@ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-043/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3c71aa3f78fd218714eeb650f0799eee5af93385 GIT binary patch literal 476 zcmZ{fJqp555QHar@s|`LDQxV5SXiV`u(Y!C1h!fQ6oqsi!wU$Wz$2I|coKWjnV9JF zfeV|>4x5iJxBPPQ5#U<^9$cdf~=Zwz!Keg)|F*1(x E3&r#){{R30 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/class.out new file mode 100644 index 000000000..842f4c9da --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/class.out @@ -0,0 +1 @@ +class drr 1:10 root quantum 1514b diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/cmd.json new file mode 100644 index 000000000..f061cf906 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "drr-class0", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 drr" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 drr", + "desc": "positive: opt=plain cmd=drr-class0:class_add_dev_d0_parent_1:_classid_1:10_drr", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-044", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: drr" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/dump.out new file mode 100644 index 000000000..1b5f2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/dump.out @@ -0,0 +1 @@ +qdisc drr 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..df1d75f2026fc4846fd87b4d766881c43904dede GIT binary patch literal 324 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$z(1eymj1Z)tRc^W`*0U!pMH@#(2D+ADMW)L4pg8;HQ&IH`0 z!NAIf>@JWw0$_6>W^n-7DMdvrh*(&NSo#<{yMSNtAA&Cs3u{yO0e@f@v9uJOIXvz- zaADcq$=ooLTXozwkiu7rH;>CU-&}_|R@~J{%~HeFj7tv*D)Jl_&I|*z6QBiyHObPu zQBNXPDAF4f@3N)$IKOtFw$aV03U%((nG;jTzD9&5NKEKUI$_C6O^p*lb*yn9G)BXE zSuI3>_0px64@-B(eO;F5kf*(FDpw1|&#ySH`u4TE{LFs;efsCSXZp>(QHCcoD6cxs JP!KXvhA#&DEh+#2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-044/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6a253678c76643ddfe07e8a6ca7cc5b7469b4f0a GIT binary patch literal 472 zcmZ{fF$%&^5JV^WQKMLh2-?^Mv9L&?U@6|gUNBa60qrcjfk)6Qcm(4SJcO4Jo%tmA z`QX52cPE?2uX z$TDy;GBB_+Ff*h86@$z(0-6Uh1Z)tRc^W`*0U!pM_epF{3j@$>W)L4pg8;HQ?m%-q zfMOtw?kkQ5domV!_438oV)0v5i&&cYuEzCe6|`GT*ow-lWT zIT8+BSax?ZH_YT&-Yy;ZXv)Wj$73IDcUgobcQt&o(6BY-GJuDYJd3qwh!J`o5WpZO zS$YTRNu&~T^itw6TYBqF@CLPwZcbHO=SZCyF}3S!OlShnw0%jZUGj3G#+{(r)wmK$ z(W$(w<|3f-64T3E8vq>`WIPt{ zNS+`Ta5nNALIH<*V8=zWR17lj1JFE>Az*{h%+mmh3ji_5yt>wlZyA7QGlTd*8U&EdVcpKm z-~ki^VRUza%+_FFWkYrs$Q%K%IS{irfb5i_A_g7?CI%3jK?UMI5umvyK(!!@ZZ1#> SP&ET1$lP480*F75?E(PDnj>KV literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..922d6710c9e5488f6162a7d789ada87538d7b0a5 GIT binary patch literal 492 zcmZ`#u?oUa5KDapYjG&j!Ntv?h=PMi!NuKGaB%G+ZUsL`5ZuMp#r}fe*N7&MK3X0a zIPNY@(_CNG?c70#1|dFNo~QUYJH%LXRv|RGn!}vK00AoM9M|p|hQ zCf3OF%g84z>vw&;L2sj-U1fEL(cqNveF03#kkpn`O6@ z05(g)EMG!<#JMO-^r_PfemG~!w9YGy!_dC%wx&n*f1mz&-YA>Ny`vlUyg~P>{2NkI H#=GGMqKzsf literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-046/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..83ee91b5ede53feaade0134588f02684867ac987 GIT binary patch literal 472 zcmZ{fp$@`85JacF5)OhOqymF$2m(<736d{C)!`cW4?Y1D9*3nGhvf%QBxnLNmo{83 zVUq3cPPZ@9TXj0bNbpmFHW z$rHqZ0^WpvpC#VL-d`ZwXlIvv&Xt@QJyn=1qcuik{9NMrQkDl9dzz|{v7?nCc3D<) z9l&K#rVkZ!x15WzL<>FlK4-$T&gzW%F|5DzJr+4t~zW^nkG!-q?Mp4X?V!=AGQXLo92Z8$7pFwi&N;+|uLnE|G-sAv}NLY^QV zl<-R43rf8D(A`0{)y}SpIX7~Syh&*;u}e(;a*0!TPGIGntERyM88l-Z^0nk{>6KD0 PEp)>u-@_ZiKjOE(8yO+~ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4ab0b08d74cb6f0ce5b8dbd9db6631b3ae96053b GIT binary patch literal 492 zcmZ`#I|{;35S-)%jGrP%3LC+~B8Y{BNJ@`lkosR%D0(`ifH=Xrm)Wwps3V})0EM^?~@K8`^xn>VBMB4*eFvuvD z-;I7UDUBSzgnY!3-|Mh?fZj$syU_Hx(`Qaj<>nfbn!q#7T=Ho`S)TMbkyN=Jdr}Gf zGRt-$0m>{9vwR8dA?Ga5(W6c?_~Dc(<0`K-7K8F_yVX6c{`>UL^IBO?_8r~u<_)@6 L<=zmJGR_S@ys9kb literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-047/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c17774046459ba88d286fc5a3fdd2887d6519937 GIT binary patch literal 472 zcmZ{fF$%&^5JV^Wkwg&@Nnv9b#KIzlf~AM>2BK#EL&EXK8H(D7&o8`LI z0c;j!`cNVFgmY1r7+`GQ=S-M(S*_7M=G~XBr+NLy_wTeT?}d5wZz?};O3Qe8zpctF A-T(jq literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/class.out new file mode 100644 index 000000000..38ac54192 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/class.out @@ -0,0 +1 @@ +class drr 1:10 root quantum 9Kb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/cmd.json new file mode 100644 index 000000000..b5ab281d4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "drr-class-replace", + "json": "0", + "words": "class replace dev d0 parent 1: classid 1:10 drr quantum 9k" + }, + "cmd": "tc class replace dev d0 parent 1: classid 1:10 drr quantum 9k", + "desc": "positive: opt=plain cmd=drr-class-replace:class_replace_dev_d0_parent_1:_classid_1:10_drr_quantum_9k", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-048", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: drr", + "tc class add dev d0 parent 1: classid 1:10 drr" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 drr", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/dump.out new file mode 100644 index 000000000..1b5f2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/dump.out @@ -0,0 +1 @@ +qdisc drr 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..eccc748ad6b8b803640d7bbaea3b543947b2a238 GIT binary patch literal 332 zcmZ9Hp$@`85JcyCODF`<;Bkmb1OkcVL+a|9@F{!%h7Z6Yp|%nQmfs*@<}MAF+hnq{ zo5{PqXMa5xF#OB#ECh={Y7Zb-S=tDmK*R%>D|i)4(V37( z!UG4E-JMJ(vw4-bi;n;e0(`hUi{5r!^s(ZsLSRxgi#dlOJe1T~uH8e7(e;213^I!4 zx1*m-DkH})As?~iw|So*ptsS^F0_62^jVNoxw$5!rtnNVmweh#mIFQRBvr1*l~e-1 z%5qvtfGSJGEMG!<$T`b%45-r#emG^yxXvq$#i)AQZcPvC|33TkyiqojeMdJOd4uj% Lxi`e5jB~>e<8Ulk literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-048/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5816a90d3c4e059ffa8a97c5ae7ef55bca7e1d94 GIT binary patch literal 472 zcmZ{fF$%&^5JczaM~q@2lETI=h=oN!1q%xglg>`?7y%Dpp;zz-25*o{*jm_$&U_O5 zd~jg1yOYghQdieYgcv`?cyqZO`n$VHu;r{mY}ab7atC* z9l&K#rVkZyPdFF*Jvtb;_c;@$O;%?#k8$&*?`fX@@xwdq%KKto{hKPxo6@pD-Y>jt BDpUXf literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/class.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/cmd.json new file mode 100644 index 000000000..8000548cd --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "drr-class-delete", + "json": "0", + "words": "class delete dev d0 classid 1:10" + }, + "cmd": "tc class delete dev d0 classid 1:10", + "desc": "positive: opt=plain cmd=drr-class-delete:class_delete_dev_d0_classid_1:10", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-049", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: drr", + "tc class add dev d0 parent 1: classid 1:10 drr" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 drr", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/dump.out new file mode 100644 index 000000000..1b5f2613c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/dump.out @@ -0,0 +1 @@ +qdisc drr 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..120d0c5be786d626796464f1da00e3c3d14bf13c GIT binary patch literal 312 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$#v2bu>m1Z)tRc^W`*0U!pMw~uYnVg{hu%pg9H1_5MqoPg$- t0L4HU-CZg`Ax#EW6nBBl5rCQl(gJde9|1F%fDQn;WvUrS2Ll7Txd8X(A1wd? literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-049/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f06d728592cd8afc06f28c93b3c08c6a38592bd6 GIT binary patch literal 296 zcmca|c+)~A1{MYcU}5+RWR17lj7|=YBAz*{h%+mmh3ji_5ys+@LO$%3uF#50J-Hp&;zp_pr0oE7;l@yn%%t#X@xEli=rr z1DoBQY=)P6eLjVV@Kc00muuDEULGmdoK=X-O08AFVTb@V?^@68F(&8*Koe^dFq87<@SegPN) BER_HN literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/class.out new file mode 100644 index 000000000..3525ee493 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/class.out @@ -0,0 +1 @@ +class qfq 1:10 root weight 1 maxpkt 1514 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/cmd.json new file mode 100644 index 000000000..6b957ee5c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "qfq-class0", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 qfq" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 qfq", + "desc": "positive: opt=plain cmd=qfq-class0:class_add_dev_d0_parent_1:_classid_1:10_qfq", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-050", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f9745816fd407f05c4879e0453c58a26c011864f GIT binary patch literal 324 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$zR0h$Lg1Z)tRc^W`*0U!pMrzJjrH3QIWW)L4pg8;HQnFQRW z!NAIf>@JWw0$_6>W^n-7g=vLAUo(N-RRc871gHjt(fz3c6k-B824r578At&G1IX{l Gb^rkQ9v|WW literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-050/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..05c4c4095080fec3004d7a34d8c5bb0e24ac98c6 GIT binary patch literal 508 zcmZ`#F$%&!5S-)^jA9WappBhH5DN?k=l|Efc4vPyjnF7+D|iVHAv*I( z@bkfe&F)S%kIA#RUqeLrDZ-n}4TBCgQ%P(C|^YoAJ-)UFgE%WN%RDRwbE#u|= E0xl9NkN^Mx literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/class.out new file mode 100644 index 000000000..225287324 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/class.out @@ -0,0 +1 @@ +class qfq 1:10 root weight 30 maxpkt 9000 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/cmd.json new file mode 100644 index 000000000..503243946 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "qfq-class1", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 qfq weight 30 maxpkt 9000" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 qfq weight 30 maxpkt 9000", + "desc": "positive: opt=plain cmd=qfq-class1:class_add_dev_d0_parent_1:_classid_1:10_qfq_weight_30_maxpkt_9000", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-051", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..75c6d1df849dd5a95344b8f7131c3f8dfff14d49 GIT binary patch literal 340 zcmca|c+)~A1{MYcU}5+RJlL70Js*#bntfB}#p#K6dK7^n^=hD>uX z$TDy;GBB_+Ff*h86@$!+0h$Lg1Z)tRc^W`*0U!pMSHe37=mbWfP9Pshg8;HQxj=IQ zfMOtw?k)$QkOl)Q8?w7V<_LhzftbYsWEZ9tGKerRF@V@|KzR-zTSFP*&Pt&9CO|O| YMmJvtD8vMG9LW63W*`NS@Ikf{07QHtn*aa+ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-051/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9c8cac1be8caa04bc563f4348cd3ed258d3d77b8 GIT binary patch literal 508 zcmZ`#F$%&!5S-)!MzIKzLIiEJ2$I6WLd3!+SX)?$ja3ROE1%*IM67L+-p22U&V+;< z2M#Q|H|!2G_s;KE9|0N!`0$aRI>*7qV9i;Dz%0~i%sBMmq2ON4**(M%Z4YR{V9#ag zrPPy1DdgxS4g#EcS9xxa(L*Bu>M)q| zSiB>7f>@Bp8_;jF#Cxru50GuR7wnSDxsWrWr}A^9wE75)n@b#5%5o!POH<`DHndWN zHp^+O1K2Fe^r1rTG3R`dqlT7!pD|%lX0=B7=$2o)p61~n-@ntYym#i+zp4DZ2`%I0 F{Q|^eEd>Ao literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/class.out new file mode 100644 index 000000000..3525ee493 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/class.out @@ -0,0 +1 @@ +class qfq 1:10 root weight 1 maxpkt 1514 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/cmd.json new file mode 100644 index 000000000..a7dd0407b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "qfq-class2", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 qfq weight 1" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 qfq weight 1", + "desc": "positive: opt=plain cmd=qfq-class2:class_add_dev_d0_parent_1:_classid_1:10_qfq_weight_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-052", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5e51249488c50d383df2a1c56efbf4f4a52883a5 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+RNCCtj$aVn$f4U;J literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f891d508841272dea02e498d5c1b6f09356a9b3a GIT binary patch literal 508 zcmZ`#F$%&!5S-*9MzIKzLKHiTAR-n46;jyw5wWpKA-=~4*oZ$!@CClYKZwp8gd7Jh zEIT{Q4YT*E?$;0z+KTYuQl0y!c+$m=SdGYRG@4ow3=yEFuHoDnV~Sn?bYXCySbk&r z$;29Yei`|MEx-LGzk%L{d&Q}8eU|je$*KKZGg5N|#?2)kx0Gc~kD8>~_jr)X5ZWxy ztpu=H5@z|bw8zBdu|!Ipuu{gv?+#EfZE6`Q+ZtJyc5l#t|F8FYyZEDNwC;4@>864= O>3+3;Q%cHsH~j!c)hj#z literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-052/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0baec303bf2aaaca2d7986b457e5436b8576c99b GIT binary patch literal 472 zcmZ{gF$w}P5Ji7BE3RT8vV|aai&$7}VPR?OJ;cUp3oGv+9zhE)U~M7911NX^8;>FS zC!56(abPl&pW*Q*cXQlFi1CdWFJ8>5xjbAortBpV>xq;qayA_(TsT*0eofFvLjiSY z%sDK)6L|u$pnx}|-ewAK-J5Mdw&vZiO8A@`Ib&*)p|6b6080D5gyV;Jd62QAC>b)g zlrlut%h_#RG8Ep7i0=t~6^jBjw1j}14pZmV3hwCIEqtZyM}PF+$@1@>^eekbhJI5@ HI`I1eZ>la2 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/class.out new file mode 100644 index 000000000..3525ee493 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/class.out @@ -0,0 +1 @@ +class qfq 1:10 root weight 1 maxpkt 1514 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/cmd.json new file mode 100644 index 000000000..47125ed33 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "qfq-class-change", + "json": "0", + "words": "class change dev d0 parent 1: classid 1:10 qfq weight 1" + }, + "cmd": "tc class change dev d0 parent 1: classid 1:10 qfq weight 1", + "desc": "positive: opt=plain cmd=qfq-class-change:class_change_dev_d0_parent_1:_classid_1:10_qfq_weight_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-053", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq", + "tc class add dev d0 parent 1: classid 1:10 qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f7f89e498fa71765e2d890648e2bb24453691638 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+RPiUDZ3h5mu_#-kpHjudOQ82X|?Wj-|423 PH|c)0e^W-vcsKn3X$>yY literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-053/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..959825a5dc20e4be7163c81a1a614e2b2ff31850 GIT binary patch literal 472 zcmZ{gAr1mD5Ji8tB`g~RAuBMr4M8AQAdnn}U{EW-bAvqsT!9N9ibin)LV`pg3H<5q zhNgr`rZfGWy!`3K9`+FozG3j<#jcapF*lgAmxR$XDNW>T`cOD=uF?D&V~CCd+R#{V zSa@gh1mZveZ%n<%6y9c=TtT+x-LgvfoEte)YLcO^jM4~7`@V$Zhj@9Av7;y%GD=Dr zBIo5^Z(T7I-i(OvF?|)w0xfiffSeA~+N%@lW8k*%m8zfo(SIkazkAZJ>?RrdO)2TX F?*}}tEEWI& literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/class.out new file mode 100644 index 000000000..3525ee493 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/class.out @@ -0,0 +1 @@ +class qfq 1:10 root weight 1 maxpkt 1514 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/cmd.json new file mode 100644 index 000000000..c628b463e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "qfq-class-replace", + "json": "0", + "words": "class replace dev d0 parent 1: classid 1:10 qfq weight 1" + }, + "cmd": "tc class replace dev d0 parent 1: classid 1:10 qfq weight 1", + "desc": "positive: opt=plain cmd=qfq-class-replace:class_replace_dev_d0_parent_1:_classid_1:10_qfq_weight_1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-054", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq", + "tc class add dev d0 parent 1: classid 1:10 qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..acb2a6d2eea1eec84985906e80355b8e2aa02d75 GIT binary patch literal 332 zcmZ9IJqp4=6ohAg#6%Q=y;c?h8w(3d3k&fIu@oDt6giMr@CutF#n`{42B z4Ucb!?ZV@3;qfnzH%Zm-H6muA~yc@iDW>_FMz!(k}9*dWs4Fu^y z39qDIu*Ewaswc>H+ykd7<}ArM(o?6o#4a)NaV~L+p7Uj8)b+K-6c*BQm2XY%mRg;1 PSF|ici97rKMEceTcsw8W literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ce8cd05d0dc0cc5af7b2feb475c0aeae9827d400 GIT binary patch literal 508 zcmZ`#I|{-;6r5xuiJu}!3L87YAQl!D1}wzdV~CA~Sa<<%;uXXjB$c(Nu+S5T&Mbs1 z3qE+fdBf~5Zy)9L5+XuV5k6eXQ)fT8$5;`o5t)TXT{D6{0#wx1oI4W?(GGwZ23v~d zH>RIVtdZxJlTX?5>mFWb(A#h?IaRJtL7zD}wV!K5YJ$MHx#Z)PvaIP*kyQI0H&Qu5 zo8?_d0GlOcmM=?tLVVmEkx?hClnL>(1uU61vy7BY4XjJE*Qm$;*L%I4{?XK0ce?L% R(}p+cezkv7M#^|M{QxVjFNXjC literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-054/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..7aa119c777cdeff266afa4c5b6af31736efec6c7 GIT binary patch literal 472 zcmZ{gu?oU45QhIW5vw?ebZ~Ji;^5Fh(9wqx7pD%sgJVZW-9&J4bdBH(_&7@aFKsbI zJhHuXD7}69O_iOlq%AsE?uB!dI$(`bYnrtp4snzp|TT=r^IH1HT^~ C@h#K< literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/class.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/cmd.json new file mode 100644 index 000000000..8cf8b7120 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "qfq-class-delete", + "json": "0", + "words": "class delete dev d0 classid 1:10" + }, + "cmd": "tc class delete dev d0 classid 1:10", + "desc": "positive: opt=plain cmd=qfq-class-delete:class_delete_dev_d0_classid_1:10", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-055", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: qfq", + "tc class add dev d0 parent 1: classid 1:10 qfq" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: qfq", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 qfq", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/dump.out new file mode 100644 index 000000000..a45cbbae9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/dump.out @@ -0,0 +1 @@ +qdisc qfq 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8dea1e824dd1fddc50060717f8582f865503eaab GIT binary patch literal 312 zcmca|c+)~A1{MYcU}5+R*s!wf*PnSuPnKpF&)&G`g0 s#{?(_!szZ&0Saj{u%fsNWR3vT9FP`}TmBI+g9+#WkXvk^zD73}0Ls81A^-pY literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-055/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ee6cd068f7e560401f8687938561a418c1ff9e99 GIT binary patch literal 296 zcmca|c+)~A1{MYcU}5+RW64>C$jsHg$~m+U;KIAF=k^3$qybQa!HUPq zyD?88Hpt5x(r>bqw|k~1Fxzl1*(EpU!JHXAmCu#Y8Xzz(mvUT*r8kXnpsDgR_OvpD zmSwci0W6D{-c-mv;asc>#Aw*}ISJbpt2L@er~1`xI{+)L5_Q|V%Q~A7YTE^r3 E05fJONB{r; literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/class.out new file mode 100644 index 000000000..fabf9ac46 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: sc m1 0bit d 0us m2 10Mbit ul m1 0bit d 0us m2 20Mbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/cmd.json new file mode 100644 index 000000000..76c76638d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "hfsc-class0", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit", + "desc": "positive: opt=plain cmd=hfsc-class0:class_add_dev_d0_parent_1:_classid_1:10_hfsc_sc_rate_10mbit_ul_rate_20mbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-056", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc default 10" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9a958c586c76f6681dc30e1f991ed6a4f4a0a617 GIT binary patch literal 376 zcmZ9IJqp555QHar@h4Ux)?%ZQ(juT>VBuhlL*e_84Yh? z*`3MeW0I%6T|z|oSA;i(J#}^ygqU+zBQjHss>WPW1i16A^6ImV9^wFK!Jy!=cnk6b zDM21Dqo1(F>o2b_kZq_fr>f3bk#nS{_Hz}qGBld?T;e1p$FXAW+s$FE*K@MmGb!Ma jcBw-rep&=q=i#XQmOXEBT53PTfEEdXGR(ez&Cm4#yf`BI literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-056/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..9de0a032e2de16d4dcc217c58120224ac2b1c580 GIT binary patch literal 776 zcmca|c+)~A1{MYcU}5+R6oe(n^8U6zS zNQ4vUu8g$eWDuJLsMZJQLJ_E2L1Hi<0rmxqhoEIp!W7=IqGnGgG@>F{2JVV|$5Xmt2ly+!(4|#)VM~ zKXVz3bb!o7P9K)fJ>tAs@0a>k;;r06)U+a@Z8P`Ig8ZkIQ|wH0?@#XDX_xzn?)sl< K*S*QeIPPC5sVTDn literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/class.out new file mode 100644 index 000000000..0e1d407f7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: rt m1 2Mbit d 10ms m2 1Mbit ls m1 0bit d 0us m2 3Mbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/cmd.json new file mode 100644 index 000000000..53d4ef291 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "hfsc-class1", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 hfsc rt m1 2mbit d 10ms m2 1mbit ls m2 3mbit" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc rt m1 2mbit d 10ms m2 1mbit ls m2 3mbit", + "desc": "positive: opt=plain cmd=hfsc-class1:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_m1_2mbit_d_10ms_m2_1mbit_ls_m2_3mbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-057", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc default 10" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-057/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..32f58b8a75702e8536df767881f801afa199fde0 GIT binary patch literal 360 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$zZ1DXdi1Z)tRc^W`*0U!pMx1u|7Cj-!IW+4ACkOl!{b98{_ zqyWW07~NeVKp_nVRyJgJfy@yAn*%Y66Ufd;D^3P!S7BfR%T2hz%pjo7z~J$M5y)o( nNrAzQ9jsuty8!Jp0g8Yyx}7ROA)pRMke!@XAO#Ez=WR17ljKF~anAz*{h%+mmh3ji_5JZrs;GZ=toGXwdDfiwspoAVxM zjtNiU}Q#i7swoB0CLL@pcw~%MuRZA87F{38VpQex4f~2=!BTT$nYNs zKq8z#cV(m%Cxh55K(#(V7m7gL3KD|>39v6?6Rh0=&88yViF3Xk)=yjlj(GRF!b(!NZexRc60U3=n!i0|qIN z#mmSOqyRa*5%Vrvy!|A-fNaA(=c}?g2Xdy&)UH>|Xb8{PUgFp#mm?WBhH95_VidzK zT%x%SP`JqH!}7U@oHy%irEhiK%Dsk;RwT5IO79{lfBGfG&NPqzWR17lj7|=YBAz*{h%+mmh3ji_5yoqnWPi6p`%?#up2GSsaY|ag! zIVnIf5Jq=b2vA6aft3x}T_AG=z~(^A;smlY(u$Ko+Eo~sz;YivfwVdUgU1U-AfJf= jnGbUNYoMJbK=mMuZl?-RhzaOmke$j_AO#Ez=uX z$TDy;GBB_+Ff*h86@$#H0GbCf1Z)tRc^W`*0U!pM=QP#lEd$VOW+4ACkOl!{bNYbh zm;l8<7~NeeKp`y#MrLGpfy_Y$Ah)~+nsESVGzg=caRMl$!N3G|3x^FvC&Ua!hW|hS z65#~8Dj1fnoIWg{d&qgYSkLsW%3HZt5NSn9+jild2gOgPpxBw_!Jpi{(=PWr-St1! Ku6vu2aooQFYb!AT literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/class.out new file mode 100644 index 000000000..da9668a47 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: rt m1 0bit d 48.8ms m2 10Mbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/cmd.json new file mode 100644 index 000000000..16090d82f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "hfsc-class3", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 hfsc rt umax 1500 dmax 50ms rate 10mbit" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc rt umax 1500 dmax 50ms rate 10mbit", + "desc": "positive: opt=plain cmd=hfsc-class3:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_umax_1500_dmax_50ms_rate_10mbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-059", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc default 10" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..38b5a9c51b764b12283aa03864c22297febb666b GIT binary patch literal 344 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$$41)2vk1Z)tRc^W`*0U!pM$E(kMn*nGxGmw86NP_^fIk7-< zLV#i*jP5QMppXUwD;u)AK;{U5&4HN331nxa6(@tVi!d-j|Ec&YB|6 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c2de8443be8a8a233e3b648f04edadb9f89ab21e GIT binary patch literal 744 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$#11~d<32-qMr^E80s0zeEh@AnM$(+ohfnSuPnKpF&)%~=98 z#{?(_!szZ&0Saj`Fft>%3uF#50J&u~(2Na0qd^$mj1xd14F)E#TeNH-Iw58-GW-Vu zkO(KxT^VV`$sjfhP^}Npg(6V5g2Z4z0_+PI4?)YIggHVSoSb4-ue0AaV>03-&QETo4kbn!i9UriQ;j=78dF12FzTaSg)g@h1WlVn&NU E064ES<^TWy literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-059/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..958f782e7adcb3921cdcc4050caeca6c665b2fb0 GIT binary patch literal 484 zcmZ{gJqp4=5QSf|@h6f(B!!J#5DSYG7J`kPotIEVuoQ1&V;>u@kX%5p7rcgwz84Z) z791FN=4JT!@RnarJ_7tIz?(~c=so@8VU)h^@6D1l$P zEM_`D=_02O%jX_)-fs3QeQWYo?hQm*k(r@yLZ~uX z$TDy;GBB_+Ff*h86@$zR0-6Uh1Z)tRc^W`*0U!pMcX`9}jSN7unSuPnKpF&)%}D^7 zlL8b2VRUze0EILdSlN)>1u{nfY!1XMP9QrYtvDH^U4?-OD8~e1GIR(tFig0>4CI4! mK!CzRcCg!vfp(ezg+LhHP8FaK&;&-1ooUt}1q=-6?f?MMWhC_g literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..69ffc997e576462c7e950ee3d803ca8a21a0714a GIT binary patch literal 760 zcmb_Zv1$TQ5S;TpI8Aj#i+~X9F?aRa}OrWQ(lI^E0Q4AUmBK zGe!OX>HKh@XpboInf_OIj~4fc7{X^2_&OTa`QK}FAy#-cz?%`1h=l HGTuF}LkKfy literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-060/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..759ddd0ba6e1c3122eb489a144214be534d9fe79 GIT binary patch literal 484 zcmZ{fJqp4=5QSf|@h4&-Vv)u!h=@fBixd|2)`DQEh+rw+Mg%JxE3XjkEIoi15q&Qt zxGXp@?##>Z@%hZICm#WR72wU~wr^|)k%tLqH3F0BDJ$X7hKD=v%FKT2=pyuh8VpuE z7B3}FkR0Uj`pjEw@m`PP8Dtyo8DEvnnUXVNrgptzMm>1O_7cY~xy;D8FjTvY1EUyz z?lK?i0J)2tJ}jSm$a%BgE%mL+Te(-z)QW_*ox(d0il3;U*qP?xpWMCEF82l9^*`0F Jdxw#6+`oo)DKY>6 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/class.out new file mode 100644 index 000000000..efa42e9d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: rt m1 0bit d 0us m2 10Mbit ls m1 0bit d 5ms m2 2Mbit ul m1 0bit d 0us m2 4Mbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/cmd.json new file mode 100644 index 000000000..1d7be7aee --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "hfsc-class-change", + "json": "0", + "words": "class change dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit" + }, + "cmd": "tc class change dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit", + "desc": "positive: opt=plain cmd=hfsc-class-change:class_change_dev_d0_parent_1:_classid_1:10_hfsc_ls_m1_0_d_5ms_m2_2mbit_ul_m2_4mbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-061", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc default 10", + "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0ab06225de82c94e10334c50e9146902d88038fe GIT binary patch literal 360 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$#v0GbCf1Z)tRc^W`*0U!pM$E1DWHv`aYW+4ACkOl!{b1Z=7 zqyWW07~NeVKp_nVRup%E%n<;a12Kye$j(SBP6laLVPFEvF@cy29l{I@6D}|V`5+w- lps~%3uF#50J&uq(2NT}qd^$mj1xd14F)E#Tgq)AIw58-GW-Vu zkO(KxT^VV`$sjfhP^}Npg(6V5g2Z4z0_+PI4?)YIggHVSoSb4-=q2AaW4%F9-<(`AlF=hcE-fgbU0-J|Z*~7P3>#-yln<;ct*Rp!i)2 Tj9*Y%0Acj_6#)t{qs1=(x~Di= literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-061/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f9e22e0717416789a91c0f131686405ba1eda73d GIT binary patch literal 484 zcmZ{fJqp555QOLD#h-|UND3RfAQll)SXd}{13ST55y4Vyth|92u(7eS@(R%#SbG!E znP4zHaA4WpdCSMVM|wSZ@bQz67nj?%w(ji>#++5~?LaM8!l4O+JMVI@*sEwGFhB(s z3m%I%B2SPE|^y#VGToJ7fj4kF8rzmBal5wG_av4Wj z5xgwRZm0ufS(NEbdE5ietL0{{w=!>)y@a|}BupFf-Bs&LasBv@@7`%w_8GJ5pDH(d INXt6eKM3zC*8l(j literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/class.out new file mode 100644 index 000000000..efa42e9d2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: rt m1 0bit d 0us m2 10Mbit ls m1 0bit d 5ms m2 2Mbit ul m1 0bit d 0us m2 4Mbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/cmd.json new file mode 100644 index 000000000..636d68c81 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "hfsc-class-replace", + "json": "0", + "words": "class replace dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit" + }, + "cmd": "tc class replace dev d0 parent 1: classid 1:10 hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit", + "desc": "positive: opt=plain cmd=hfsc-class-replace:class_replace_dev_d0_parent_1:_classid_1:10_hfsc_ls_m1_0_d_5ms_m2_2mbit_ul_m2_4mbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-062", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc default 10", + "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..237c40daa8064b60a368c85793d83b7e7f53fc47 GIT binary patch literal 360 zcmca|c+)~A1{MYcU}5+RWR17lj9MC+FAz*{h%+mmh3ji_5JX@ibrwl-|nSuPnKpF&)&AAUW zCj}@5!szY_0Saj_u(BY#3uKM}*c^yioIrL)T5&Q+y9xsnP>u=2WatoPV3=@$8OR6e mfB=Ps>|nRQ2HI%?6ary%J5_)}Kob~2cCN7oDPUkgcLxCBW+?*z literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2175cbbf6108a48ab2f7ed797aa1a99aba3afe0a GIT binary patch literal 776 zcmca|c+)~A1{MYcU}5+RE(W04%s~EOAPoY@=G+CE zV*(TdVRUz?0EM&|7@3jX1u_R2fZXyNXvPJg(IAX&#tER11_Kk=EgiNHoe(n^8U6zS zNQ4vUu8g$eWDuJLsMZJQLJ_E2L1Hi<0rmxqhoEIp!WfG~ReiU5U}(c%{X8D=$O literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-062/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..648b7c4e0d9da04a7fe70f6de1dd62893a1b0e85 GIT binary patch literal 484 zcmZ{fJq`g;6ot>s8$Tlo5e0>AfrPzZ7C=?2Ml`RZA&{~Rc&SWND zUg9R#yZ6k^m(Me~U3>)iRe(2_`>wKSy*x}gs}Y!yp1fiXb$EF2F3;?@j5b0KD8XRK zWAVD=36g>wUXOW=E#7&!KY(n*J>jdeITLaQ%+#(|#Ha($*k0n;C6^f)SB7erabgs~ zPhE~<9Uyg)(}(4A4>_+_+l9Urc`Nq)v2w9QQ9$)GRmv literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/class.out new file mode 100644 index 000000000..2061f2f2b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/class.out @@ -0,0 +1 @@ +class hfsc 1: root diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/cmd.json new file mode 100644 index 000000000..e872e59fe --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/cmd.json @@ -0,0 +1,70 @@ +{ + "axes": { + "fix": "hfsc-class-delete", + "json": "0", + "words": "class delete dev d0 classid 1:10" + }, + "cmd": "tc class delete dev d0 classid 1:10", + "desc": "positive: opt=plain cmd=hfsc-class-delete:class_delete_dev_d0_classid_1:10", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-063", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc default 10", + "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 10", + "rc": 0 + }, + { + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc sc rate 10mbit ul rate 20mbit", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..0de9970a588bbf26ce13f4a43793ef7cd8f5d337 GIT binary patch literal 312 zcmca|c+)~A1{MYcU}5+RKKyLaE z1Ry>qke!iMoD5>K0M+^cT_^%|D@Y6mB%nHBd>Ac*66P>b2(5!d52`8%51%<8e;xz+ R6BH&OjP6enpb#^fKLOqyFV_G7 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-063/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3f04e81bbcfec7b5bca2205f288a7be7e2c55dc5 GIT binary patch literal 484 zcmZ{fJqp4=5QSf|@h4&-Vqs%t5DSY478VwEmV#GMM6eXE;3;hE1;GQ@L{FgC5q)n- za9MC*+?ki*m`m`a+#BHW~lZVM@9)k z>++oF0MuX z$TDy;GBB_+Ff*h86@$zZ1DXdi1Z)tRc^W`*0U!pMCm|g;g8^tZGmw86NP_^fIeI{I zJb+>#jP5Rw*%}P2DDDE8!wfYCq=f^>PAw^B;9+2D-~jsl0z1TgmOyh&fbt-WZmtSY ThzaN@ko%5VgA_pgfovB5za}9C literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..697389080487bd593856cf1ab571973a9228d262 GIT binary patch literal 764 zcmc(cu?_)25QhKTJ#j=Kq7aErfhZIT1&LBTfd`;c;w_X)jY_Xo-su&d!aE56+`8DT zqZ4zPo!LKgU;ewfgomAik5~A(@e-}_^TIKMA$v*qx+f)x4x17@oH&~y)bbZw+wcu&nmvHP5FC#J{q9t9% znoDwRl_eo$wG0lrg@lv3d gfR3&i{Kb?0;_00IttZ*(m^+pIOS(HPQ_{{(ADHStqW}N^ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-064/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..8a202851f920277e5ebdadae1ebecabbbff39412 GIT binary patch literal 644 zcmc(cu?_)I5Jm6q+s6`x$QByiMidH#LZR>hK7&e$MidH(#0TgVx=kcXEh>$|SNI3v z&ck|niP|KyGjntIWOnv?*sXm8_(p&`hvPUuSWbO(*h?Z%Eh(R9uqnaAiN23!*ANxt zJRl2&9?imAktYxXa(FfBMW*n!lk);(E6xX237fMar%6rH-7BV4g{SPjgky*7l916Q zTGC~-sm1WkF8lWD%@@PNgW*#OxmSNQL_(i_@2c4gE`pkcyy;DgFTf=W%%Nu*89G4! rziPpJOoP{q%%)~cA7yj#bWEH24?Q(ljofy}+sc2CbZ;9`QqFCk)vGYR literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/class.out new file mode 100644 index 000000000..e3a07d21d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/class.out @@ -0,0 +1,3 @@ +class ets 1:1 root +class ets 1:2 root quantum 3000 +class ets 1:3 root quantum 1514 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/cmd.json new file mode 100644 index 000000000..e13975840 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "ets-class-replace", + "json": "0", + "words": "class replace dev d0 classid 1:2 ets quantum 3000" + }, + "cmd": "tc class replace dev d0 classid 1:2 ets quantum 3000", + "desc": "positive: opt=plain cmd=ets-class-replace:class_replace_dev_d0_classid_1:2_ets_quantum_3000", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-065", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: ets bands 3 strict 1", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/dump.out new file mode 100644 index 000000000..f71c79a5b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/dump.out @@ -0,0 +1 @@ +qdisc ets 1: root refcnt 2 bands 3 strict 1 quanta 3000 1514 priomap 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..999db3fcfb5d764e3e30ec9747f41a10fa65c5d3 GIT binary patch literal 332 zcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$#v0GbCf1Z)tRc^W`*0U!pM=jL8_iveghGmw86NP_^fIaWY( zJb+>#jP5Rw*%}P2EXeKxnZpD%2c(4q$WAROX5e99YTy9+eFrzheU3nLO@Q(sjBc(9 UP>2cWD3G}`Z9xhk{y?@10ETBF;{X5v literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-065/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6fa0c089f41a00b520e9d42beffff27b48f39cd1 GIT binary patch literal 764 zcmc(czYf7r6vn^yR@9#X>0q%L8ZmS**mxKwBi_PjvKg%=d&>hzH!mP2u?yd6iJPlz z;xy-;bHAMa^0g-p*Gn4?Ug6-%OEfKxcBL}<>?Pr-u9Rm4Y-+Hu<=j)#tBVE-7LbR+ zfWyMulP8b_Wbl0I6{hg2tM~x274IRdgw8pV)1fA5`f5^Y!BV;};pib=&SXSHOPY)s zB_DR;WzkFD6o$p;#t_A2Kb(yD=WGOY=RJI;)9G1HzCc&fzWqUep9JO&+m9|5ir;KX73U7J4dLk!tVB2aHqib&Wr;9*B! zq1iP=3lAPpg~FI-;dRIphygjgHuWc_@P0S51;|#MGgb+kGa#o+P14;frt|_&*?S4c z4%y|Mj1QtET}F>u4Bzas?B{Rh3=e09PbuVHldn&#=+l>7HG9EDP-)1U{?)}7;HZHg y=v1RZ2k5_7eKa4F@S2g?)Qsh$X)a!lW%GJNFAY{Bw;l1e@*gDK+eVa>bK8H_)-W6Z literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/cmd.json new file mode 100644 index 000000000..31c3cab3f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "w27-priomap", + "json": "0", + "words": "qdisc add dev d0 root handle 1: ets bands 3 priomap 256 1 2" + }, + "cmd": "tc qdisc add dev d0 root handle 1: ets bands 3 priomap 256 1 2", + "desc": "boundary: opt=plain cmd=w27-priomap:qdisc_add_dev_d0_root_handle_1:_ets_bands_3_priomap_256_1_2", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-066", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/dump.out new file mode 100644 index 000000000..41921ec9b --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/dump.out @@ -0,0 +1 @@ +qdisc ets 1: root refcnt 2 bands 3 quanta 1514 1514 1514 priomap 0 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..a4ebc82eb19d603969aa655d5d733a8bfd3d612d GIT binary patch literal 360 zcmZ9Gu?@m76hzOl9Rd}ihAu@)3JMw|hG2wHQ34ed%t6NrtPrvRtdJgh1a}b;mcR6M z=kwS5|6W}$2^{|A@aE&TA8hJ_$C6$RXXlcxrZgiM)STH$V>-C5Od(kS9nB zig*R{A-mUJDGX7uWKXU>RoMmx_74FK^SUmfZw`Tzg` literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-066/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..5ccdd38cd02f33c7be8c9a3d0f7f4c3b4392b059 GIT binary patch literal 644 zcmchUF;2rk5JmrbZ7>l<6s2$hRVUrA1$RK? z|8=t2tdy3K#((yE{B|_nHs6Z`DUOlimxuLd=dD=fcw((YYA2FIj9K(xuwmc93pK|r zt_*Mqix)PFHy}?C2a0$@`dy}Y)23K~Y|C>)RfL>-avta@$;6QDc@qnoP& U6k-Az0y1}xEl2^xAINqA0GtgbY5)KL literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-067/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dd9480077286df17171e19020a44d08586934ac6 GIT binary patch literal 644 zcmc(cF%AJi6o&uZ*=1K0A_@iFMidH#LLs6P;uusK3HmLZLZ?@`!g2$(18@R`@V^~m zjHtcj?VI`M?Uy(I9FyI~g@<=|xN);z=BB4Xh#uFH@KjsME1Fys;o!i&muA)gRfGeLHN;jR0#3&>X7C#(`C=SohCnxs8fM5zWxnR5xp44DPP5F?@` zZAOP$1UH@K(A9rxhJ!o9r4(?k$zqNz`~2su6{t9%muFwjKkEv9>?6Z&u>W5*pI)X( lH%m`n_3iYxoH}kQdfoV;e|PG4_UNs=gQV?kiITFseE>hlFmwO_ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/cmd.json new file mode 100644 index 000000000..e88223c78 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "w3-hfsc", + "json": "0", + "words": "qdisc add dev d0 root handle 1: hfsc default 0 default 5" + }, + "cmd": "tc qdisc add dev d0 root handle 1: hfsc default 0 default 5", + "desc": "corner: opt=plain cmd=w3-hfsc:qdisc_add_dev_d0_root_handle_1:_hfsc_default_0_default_5", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-068", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/dump.out new file mode 100644 index 000000000..b8b09d195 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x5 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..2db98c93da564fcccfd7ed793b42a75abc746640 GIT binary patch literal 332 zcmZ9HF$%&!6htSxn`lyry0|}nMD@1P)a}!I^86~*vhtJF( zK5zea?e%Qn@GplKhg*{!3X@?)uZFXgWT-jK6cO&+8!}(Vm?4dT5iGV`7Ox~vkS{3U z70f4W@z#$^53()ima6hOH90jib$FN9IpV~>OC0guEV-0^zdLQ@6Bxu)-FGB+L9Y(E RIU_@exX+~)e*f^_`T!4gBxC>p literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-068/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..92041d84e18e35163b9ff0be5c03b5b4f33eb989 GIT binary patch literal 484 zcmZ{fJqp555QHar@h74nl0pQ#ASxCCEws|RC?Z&jwcsJFZ0xPPf_ejw;T1$@9uXf8 zT$t?cyyau^xL!^nBK#`Ci_2|WSy%ft%s5Mk%vkMP8HWY}+?V7VZMa|ARW7GT&WN7m=SpdH5EwU?IBqFRM#h<@;+V{B4gSl&uxwT)66NZr+M(l_wTeT`;gi7pOT+F Ip=G@6A8=7A9{>OV literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/cmd.json new file mode 100644 index 000000000..f7ccf25a5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "w3-cbs", + "json": "0", + "words": "qdisc add dev d0 root handle 1: cbs hicredit 0 hicredit 5" + }, + "cmd": "tc qdisc add dev d0 root handle 1: cbs hicredit 0 hicredit 5", + "desc": "corner: opt=plain cmd=w3-cbs:qdisc_add_dev_d0_root_handle_1:_cbs_hicredit_0_hicredit_5", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-069", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/dump.out new file mode 100644 index 000000000..af0e15ef4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/dump.out @@ -0,0 +1,2 @@ +qdisc cbs 1: root refcnt 2 hicredit 5 locredit 0 sendslope 0 idleslope 0 offload 0 +qdisc pfifo 0: parent 1: limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-069/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..abae735ce95fe3cbe0182cc0239081d520dedf9e GIT binary patch literal 348 zcmZ9GJq`g;6ot?G88apdQ7J|@5v4*Q8cKFRi_UZt%diMru!UggG<1ddFANO;9T8wk7=vDA;uGVTwGl0Q^b8Qy(3?p<6kiy}}VevNP3GxL+ zyb1F@OT4OATtK$tyJ43?&W@ZdGgW-ono)_Q6W%3`cyCHBqd)9x6tEcn_=!FO>E4Qa UX3SLao|2IzRC~-)13uX z$TDy;GBB_+Ff*h86@$#12s9652-qMr^E80s0zeEh@2KjYE(W04%s~EOAPoY@<}3%A zV*(TdVRUz?0EN^T7@3jX1u_R2fZVbHXhsCkXb?s>V+~M9g@Fm|mhbiuoe(n^8U6zS z6Htf)=&t0XVg?zYIti#7Ss_Z{Br5|Cm~8-by$DndToTBT0Q(SG1j5$AA&#k%fng3% y5W8DJsu{tyaskPLw9K@8pa=)hy)S^Cp@-W*;k*?X&Y(B}Vf1ho0SYmrg);z9+cRwd literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/cmd.json new file mode 100644 index 000000000..bd007a459 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "w3-etf", + "json": "0", + "words": "qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 0 delta 5" + }, + "cmd": "tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 0 delta 5", + "desc": "corner: opt=plain cmd=w3-etf:qdisc_add_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_0_delta_5", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-070", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/dump.out new file mode 100644 index 000000000..a4747ade4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/dump.out @@ -0,0 +1 @@ +qdisc etf 1: root refcnt 2 clockid TAI delta 5 offload off deadline_mode off skip_sock_check off diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-070/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..b5393df0448016a81298330d3968ceb2d83baf9b GIT binary patch literal 340 zcmZ9Itq#IK5QOJ`3Z)oAu%xB}i9q1!Bk&M_!Gh;S5QrKi7FjSD431|ZFav40+$5Ww zo7;T1xkr6ESa|&9@#5jK&DO_#hLT!4rtJAkiCm3(p`rvqW4L zeDL*(CeX(64r!VCmQ)|k|iqW#OVCuZeZ-wgVR5Vx9KK!HmKK*sWjyLFD MwSPlS$#^$>0L@e@z5oCK literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/cmd.json new file mode 100644 index 000000000..a7889a89d --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "w3-taprio", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 cycle-time 0 cycle-time 600000 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 cycle-time 0 cycle-time 600000 clockid CLOCK_TAI", + "desc": "corner: opt=plain cmd=w3-taprio:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_sched-entry_S_01_300000_cycle-time_0_cycle-time_600000_clockid_CLOCK_TAI", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-071", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d1", + "name": "dump" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/dump.out new file mode 100644 index 000000000..595e15345 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/dump.out @@ -0,0 +1,15 @@ +qdisc taprio 1: root refcnt 9 tc 2 map 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 +queues offset 0 count 4 offset 4 count 4 +clockid TAI base-time 0 cycle-time 600000 cycle-time-extension 0 + index 0 cmd S gatemask 0x1 interval 300000 +max-sdu 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +fp E E E E E E E E E E E E E E E E + +qdisc pfifo 0: parent 1:8 limit 1000p +qdisc pfifo 0: parent 1:7 limit 1000p +qdisc pfifo 0: parent 1:6 limit 1000p +qdisc pfifo 0: parent 1:5 limit 1000p +qdisc pfifo 0: parent 1:4 limit 1000p +qdisc pfifo 0: parent 1:3 limit 1000p +qdisc pfifo 0: parent 1:2 limit 1000p +qdisc pfifo 0: parent 1:1 limit 1000p diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.err new file mode 100644 index 000000000..90081ad3c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.err @@ -0,0 +1 @@ +Warning: sch_taprio: Size table not specified, frame length estimations may be inaccurate. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..4f26868f6df14bb836c38380711592bb55188020 GIT binary patch literal 556 zcmZ8dOG*Pl5PkEBPK=A-QWSb2DC$CY;zo}kh;Fqr>6pgMOvrQ=iVF|mLhuARf#3-S z688!oz>A2!$`G97K}~hPseZ4jzQ%7OA0hq`;)j>XaOL)Ow}DfhB@hNjl4dyIVGSPM zSvTXVIl?CD9bd*X#IJcdWoBvj~H~*)+tiK0boqV>r+Z)DYv75T#NvDpr1&zB`OZ$H04NyMnJ=iA$K9)P#$$DE z?~QW0)iWy1oXYzqwjFEQ`>He0iBUb1-ngzZxwDCOHcNAr=sVRi%BDJwhXd`5`1}E7 CQA=U~ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-071/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..1d03b551d5915a994b55e53947e25eb4cb3f5fbd GIT binary patch literal 2348 zcmd5;y-EW?5dQ8jw>i%!lEOl}LsM8pu&_&>!d{R-ulOQ@!EnbiIZ8nKF$!@>E*urYgQN)h(!Z;_iNvrcJ zXgWX;*}Ux8iHpqboiRRA=vI#rM?is4a~TZ9gK2ah;D^$tzCm8s=jCL41(ackGk%98 zU9r_aYp;54gP8F@Tp?jDU=R6?TGm2ICW>NhC7;1WcVXh;!Z=+gCj4A}i3e+WFqYjJ zQ+Y6{yNgTa!K8jJzubduda#ZM+ggF;Tq`3v**qS~Y=9iqD0+|UT5v_pIw!StR@{ZJ zcQJQ_um<`(72V~Y(1vBVYvr=-M-IFFkJ0a`tUd!$%Rpz%*q5X6h(|!z_l;9rH@CFG z+*%FhmNb}K++c2U1IxYJ#Iq1Kn445>opqBpz$f1Tg}&$5)!rjrnj+r6@{TZXfM4<8 BbcX-{ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/class.out new file mode 100644 index 000000000..abd866854 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: sc m1 0bit d 99.9ms m2 100Mbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/cmd.json new file mode 100644 index 000000000..9ba5eaff4 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "w39-umax", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 hfsc sc umax 5000 dmax 100ms rate 100mbit" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc sc umax 5000 dmax 100ms rate 100mbit", + "desc": "boundary: opt=plain cmd=w39-umax:class_add_dev_d0_parent_1:_classid_1:10_hfsc_sc_umax_5000_dmax_100ms_rate_100mbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-072", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/dump.out new file mode 100644 index 000000000..a3b60c951 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..3ed6e64d34b2e04878336ea6ff754f1c98f5b364 GIT binary patch literal 360 zcmca|c+)~A1{MYcU}5+RWR17ljJJ39kAz*{h%+mmh3ji_5yn>6#(;0wfGXwdDfiwspo5Q|? zn;``#2Eyp>3IPgfFtD;Ay9;EF0N5OeS)4$2Mp|()NV^IH6I70YA)}3vL1E86AfE{& j1?Pj@9tyP61Skf==ys|Ag@8I3L3UQ!gA_0@pt}PAs=+B{ literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.rc new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/ip.rc @@ -0,0 +1 @@ +0 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/netlink_route_class.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/netlink_route_class.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ac2d454399c715e0175a165ced7f2692a5dd9c38 GIT binary patch literal 760 zcmca|c+)~A1{MYcU}5+RC&Ua!hW|hS z65#~8DOr~v%|kz-)UXk%nh*s~AFX9BB(@u}rckfGG@C&(O7e0l-n6BPF#j2@pN KKp|$d_yhoKz&Nh} literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-072/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6a7c8acbf6a9b5711cd9515fa92788339f1e7f6f GIT binary patch literal 484 zcmZ{fy$ZrW5QOJ)@fQ)16gGAu78WTiEPWOg5iG?g5G;KHEd;^FO0czwzJYHeqBAk# zap1sacjuOm$vrvk0)+S}#FNW)QJyUyRSY<*5Zb=lS22e=3~s#pdTuYGiIM>duo&}L zyft}(q#%#ip>zYAYQtDJmpHDJWlzSDrpjk*XtfZe zS%w2H)Q4g4q5|$E=9*6CBfaH$E9Fp0d(5;^mOC}FPa~tap62c!-@ntY><4Dof2#cK J5iRRwe*;!wE}j4Y literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/class.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/class.out new file mode 100644 index 000000000..e20eadf94 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/class.out @@ -0,0 +1,2 @@ +class hfsc 1: root +class hfsc 1:10 parent 1: rt m1 9726Mbit d 1us m2 1Kbit diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/cmd.json new file mode 100644 index 000000000..85d98035c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/cmd.json @@ -0,0 +1,65 @@ +{ + "axes": { + "fix": "w40-m1", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 hfsc rt umax 100000 dmax 1us rate 1kbit" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 hfsc rt umax 100000 dmax 1us rate 1kbit", + "desc": "boundary: opt=plain cmd=w40-m1:class_add_dev_d0_parent_1:_classid_1:10_hfsc_rt_umax_100000_dmax_1us_rate_1kbit", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 0, + "refused_by": "none" + }, + "id": "tcswrite/ec-073", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: hfsc" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: hfsc", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/dump.out new file mode 100644 index 000000000..a3b60c951 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-073/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..6e5cc6551738cf1b5f09fa9a263ac4cac725d034 GIT binary patch literal 344 zcmca|c+)~A1{MYcU}5+RyewqPjHZzca7)XNvvN`HN zb3%Y(AdK!V7od;^11lS{yFlg$fX#uJ#R+6*q!lNFw2Lq>LF8VPd4ObVff(dgXP_M> aKsE@Y+o1v!Vgfo4WQU^zNC5)_y1f9^MWR17lj9nd_GAz*{h%+mmh3ji_5JoVqF&N2YaW(M*P18ERIHs?Rk z921}z2&2181t_G&z{rg3E|59M0OS^qO{@$XfJTEbx)~>cLK+NAV7DkaL3BdQU}X3Y z1RxPkpt~~CijzTX7NA-mpbJHyZUu?KfCShVFdl-IK?!q&ILJ9VIP@S?Az1j#xdBv$ z%^w0_cS6Dy*&iZ6e}Ls)lzD(;Yk`=(&_skg@4lYjtLPw!fC?;D zJQi<3o*)hs@cQ%{Eb(StJVCbQp0i6nXGhM6o+`|h(&{0yelBr*DN9Dig{CTGoM@#m zF3WVP1Gp^8^rj5=g!5*-U+S&QTd9P)>qDk(6}g>JeA)%Y_cRaw_~D&)Wj`>x{!rF++sR)SW$d6zg*!6{h*``z}i*7q2G^(FzM<90s7-%s~EOAPoY@=1c>c zV*(TdVRUz?0EM&|7@3jX1u_R2fZQ@4XvP7c(IAX&#tER11_Kk=Eh$bAoe(n^8U6zS zNQ4vUu8g$eWDuJLsMZJQLJ_E2L1Hi<0rmxqhoEIp!WZ=5D|Wg@ZxgaH`ZomFyX91WQJ;A^0Ozj HjF b.txt" + ], + "proto": "route", + "readback": [ + { + "cmd": "tc -d qdisc show dev d0", + "name": "dump" + }, + { + "cmd": "tc -d class show dev d0", + "name": "class" + } + ], + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "printf '%s\\n' 'qdisc add dev d0 root handle 1: hfsc default 10' 'class add dev d0 parent 1: classid 1:1 hfsc sc rate 10mbit ul rate 20mbit' 'class add dev d0 parent 1:1 classid 1:10 hfsc rt m2 1mbit ls m2 1mbit' > b.txt", + "rc": 0 + } + ], + "rc": 0, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/dump.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/dump.out new file mode 100644 index 000000000..d450b60a3 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/dump.out @@ -0,0 +1 @@ +qdisc hfsc 1: root refcnt 2 default 0x10 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..eca489e3274cf098a41e892b6e6887dc6994a3dd GIT binary patch literal 884 zcma)3J5B>J6ddm^34vx6Xz3P|0tt{(q@{=y`t%ee2#Js_fcx;d0pbEE;@45+3E!M@L5AOvVaCnl<;v;wCP9a}0$J)8r5Y_p6E1xs&KII- z85?Lg<9R2~JCVH9cGSqpYx~33^@XFe6x7HtBsF#3k-NxAh#z<9>+X1VDQE{ z-;47$+9(XL1&dn_i|>?tA}NUyz8?E^hWKXp&r^`wvYs;wG0z2g`s^uET^+U#U~H^Q zJTau@iX1N)%1AlhIov~5YH6Rjn~uZahft@WuF-IEqjS#LODb$FwW{Z_Q@Zd~$a^c_ zJoG6Ehkx7&Q{nU<&w^u{eAKB^j}ZIl(1+f6oG%P(DRNLhB$913m r#OFt&x#H8+VQU_``<3~YnksyYM|*tDJ=V@E(migmW$9J_g5Tp`yOKK4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/netlink_route_dump.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ec-075/netlink_route_dump.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d2e16f5678fa038e7a1d8e0df3be757e81aec77f GIT binary patch literal 484 zcmZ{fyAA+VM?K8HF5`@;J zJ<2tkY*42X@bM-V&hZM;Iz6LbIbM@}ix!@FwjUr{=Ral@WjT9t2JDIRcL}?RVkvu8t&i#zRw=lB!fb5(yhRLf`-tfHB6MnN!Nsj;Uv IUO1OC-Ve?+0{{R3 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-002/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/cmd.json new file mode 100644 index 000000000..119804d59 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/cmd.json @@ -0,0 +1,55 @@ +{ + "axes": { + "fix": "drr-cbogus", + "json": "0", + "words": "class add dev d0 parent 1: classid 1:10 drr bogus" + }, + "cmd": "tc class add dev d0 parent 1: classid 1:10 drr bogus", + "desc": "negative: opt=plain cmd=ng:drr-cbogus:class_add_dev_d0_parent_1:_classid_1:10_drr_bogus: class usage, rc 1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tcswrite/ng-003", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: drr" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: drr", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.err new file mode 100644 index 000000000..f07579ae7 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.err @@ -0,0 +1,2 @@ +What is "bogus"? +Usage: ... drr quantum SIZE diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-003/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*h86@$!c0GbCf1Z)tRc^W`*0U!pM_unGr0|U@(W+4ACkOl!{b0z`J z@c@c}FuJ=yW@|98qPPoW4kOeYkQNRgJGG>kfro*qfdlCG3+xd0%>}T_!;LgG-7slS>qm67y1u6;kpQ^72a*G7`&D6%rMa^YhX& U(@TpIlX6lO3QH67N=kDX0PbQu761SM literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-014/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/cmd.json new file mode 100644 index 000000000..626cc5c0c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "mq-nohw", + "json": "0", + "words": "qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4" + }, + "cmd": "tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4", + "desc": "negative: opt=plain cmd=ng:mq-nohw:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4: hw defaults to 1: a dummy has no offload", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-015", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.err new file mode 100644 index 000000000..4202048c0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.err @@ -0,0 +1 @@ +Error: Device does not support hardware offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ab9bc2a9cd42154f2c9ab3ae035a879525efc3ff GIT binary patch literal 580 zcmca|c+)~A1{MYcU}5+RG1_5Mqz5vac z0Tcsaba!e;@#9;Rc$STUbz(na{uw!N3HB42%$4K(au<$bu3g z5J6NDImA$9AUsg`{R6u54v-7N=`jVp%+Gj literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-015/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/cmd.json new file mode 100644 index 000000000..c296d9498 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/cmd.json @@ -0,0 +1,50 @@ +{ + "axes": { + "fix": "w33-bogus", + "json": "0", + "words": "qdisc add dev d1 root handle 1: mqprio bogus" + }, + "cmd": "tc qdisc add dev d1 root handle 1: mqprio bogus", + "desc": "negative: opt=plain cmd=ng:w33-bogus:qdisc_add_dev_d1_root_handle_1:_mqprio_bogus: an unknown word goes to invarg: rc 255 (W33)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 255, + "refused_by": "iproute2" + }, + "id": "tcswrite/ng-016", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 255, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.err new file mode 100644 index 000000000..f30c6c64f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.err @@ -0,0 +1 @@ +Error: argument "bogus" is wrong: unknown argument diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-016/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*hWLd>fLng=ojY!I4x8bEOYAO@LNz1!d)1JG=cs}2Kc5I{Dk2WZX$ zpcn|FyK4eaNQHrw4cT1~-!U@$2Lg~5ZlIaDg#|^K`3wvR3`{`CzzDGgBntv8C?Nt7 zLnVR~-h@Ab@O+2hf}Y zKrs+Tch?4>kO~7U8?w6~zGGzg4+J1B+(0vP3k!-e^BEW#7?^;Nfe~U0NEQTGP(lPE zhDsub7^)0}C&IwmzyWnT2hawP`7kjM8zcs_7aY#PK>sKJ1wk0yKLS88pgJaye>~k7 z7+wMWFx33$1N1#4ycI&69pn82LOlKbf)$bz^Az&)aw-*)^Ycm)GxHSkQcH3&^Rg8Z eOG=6|lS)fcixq&P8Hq(H<%vb93c2|ysSE(qE>Q&l literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-021/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/cmd.json new file mode 100644 index 000000000..592a9928a --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "w32-rates", + "json": "0", + "words": "qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit hw 1" + }, + "cmd": "tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit hw 1", + "desc": "negative: opt=plain cmd=ng:w32-rates:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_mode_channel_shaper_bw_rlimit_min_rate_1mbit_hw_1: one min_rate for two classes is sent (W32)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-022", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.err new file mode 100644 index 000000000..4202048c0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.err @@ -0,0 +1 @@ +Error: Device does not support hardware offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..d1e26864ed3b2845c2e26617317f73f7808a0910 GIT binary patch literal 1004 zcmca|c+)~A1{MYcU}5+RR~-h@Ab@PnI-of@ zKw%I@cUKHhOof4!4cT1~-!U@$2Lg~;+(0vP3k!-e^BEX)7?~KDfR;gQ0m%XZBMVB1 zKm<`qzpSd^-epO%)BpO^x21pr~EN*4eC literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-022/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/cmd.json new file mode 100644 index 000000000..4950d6bf2 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "mq-rates", + "json": "0", + "words": "qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit 2mbit max_rate 5mbit 6mbit hw 1" + }, + "cmd": "tc qdisc add dev d1 root handle 1: mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 mode channel shaper bw_rlimit min_rate 1mbit 2mbit max_rate 5mbit 6mbit hw 1", + "desc": "negative: opt=plain cmd=ng:mq-rates:qdisc_add_dev_d1_root_handle_1:_mqprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_mode_channel_shaper_bw_rlimit_min_rate_1mbit_2mbit_max_rate_5mbit_6mbit_hw_1: rates need hardware offload", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-023", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.err new file mode 100644 index 000000000..4202048c0 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.err @@ -0,0 +1 @@ +Error: Device does not support hardware offload. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-023/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..f47ee1dd96e4b08553f63db445c727b8e725c0f5 GIT binary patch literal 1396 zcmca|c+)~A1{MYcU}5+R*nt))-a> z111JAMt7G2P+Wz9l?~Zl5Z^H}{09P%S=>M~a|;WKGV>W2J}@#d0JSheYyrsv0V4}a zh(H8UN#qbim4WcsfOde)WCNNGqK_~zH}C+%!s7+RCJ=kV1!k~f5E}*tGy4bw3(yZN z3>lrAPu?wa)v#5%$h7B-TUqA60@*`^iA4mc=iHW_Q*!OlY1-bx?9BA{Sn zlfuHn%F0&|JtrZ!Y-{IPE_3J1-EZd3OvZPmL4sc;_~PU-ES=ncr06nNAc=Q0%++SH zjtEbzn|swU!v+>3pn(`Ui^Y2&Pmn37#@nL5#t^S;btWJ?=6uXis&Zb)`J|_)pX-g* zCenrKxx^9gn^LySd~|eP_%q-Z1{qR%K##s*;cQ1$N)f-mX+@npU+;<1fw^pwm}(~~ zr`+?`{5|sP}H^vEHcnn|+{UzyJ9@TD-Yo|M+nBmb>;K aoR0kVAh_Uc?k;@aSwFOe8w6jt9QXm&wNg<4 literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-024/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/cmd.json new file mode 100644 index 000000000..d9969caaf --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "w34-basetime", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time zz sched-entry S 01 300000 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time zz sched-entry S 01 300000 clockid CLOCK_TAI", + "desc": "negative: opt=plain cmd=ng:w34-basetime:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_zz_sched-entry_S_01_300000_clockid_CLOCK_TAI: a bad base-time ends the parse silently: no entries sent (W34)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-025", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.err new file mode 100644 index 000000000..fb7c36d2f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.err @@ -0,0 +1 @@ +Error: There should be at least one entry in the schedule. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..93a2bdaf6e14ceb810a2afd8bf34d881138fc141 GIT binary patch literal 604 zcmca|c+)~A1{MYcU}5+R#zRN@-3i0|Nj( CdrA}l literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-025/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/cmd.json new file mode 100644 index 000000000..8dec3751e --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "w34-cycle", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 cycle-time zz sched-entry S 01 300000 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 cycle-time zz sched-entry S 01 300000 clockid CLOCK_TAI", + "desc": "negative: opt=plain cmd=ng:w34-cycle:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_cycle-time_zz_sched-entry_S_01_300000_clockid_CLOCK_TAI: a bad cycle-time ends the parse silently (W34)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-026", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.err new file mode 100644 index 000000000..fb7c36d2f --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.err @@ -0,0 +1 @@ +Error: There should be at least one entry in the schedule. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..22410d80e30168cb33b7be46d08fbd42f2b8a756 GIT binary patch literal 604 zcmca|c+)~A1{MYcU}5+RR~-h@Ab@O+3(%Ye zKrs+Tch>}EsfP5yPg%F!SDnNh* zB~&0{s3dZzp~^sbEDTHypm1CObnhFW5D25Y_YP19Xg3qcy>HzZ7+wM0IN1DP4h)}= zjMSo3h2o6-(wr29q*R5(5`~=9#NrZ#{Jd0!)Vz|SN`=fkg^~=Qn&gbsl+v731_l87 C-b)bx literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-026/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/cmd.json new file mode 100644 index 000000000..26cd25e37 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/cmd.json @@ -0,0 +1,50 @@ +{ + "axes": { + "fix": "w35-flags", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 flags zz clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000 flags zz clockid CLOCK_TAI", + "desc": "negative: opt=plain cmd=ng:w35-flags:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_sched-entry_S_01_300000_flags_zz_clockid_CLOCK_TAI: a bad flags value: rc 1, no message (W35)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tcswrite/ng-027", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.err new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-027/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+RuX z$TDy;GBB_+Ff*hWLd+8eng=ojY!I4x8bEOYAO@Lt%jm;$2B6s>R~-h@Ab@O+3ecP! zpcn|FyDJ7Lq{6_;hU_kg?-&{W0|7`2H_*(I#Db#Cd4m#1^~1QL|Fg; literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-029/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/cmd.json new file mode 100644 index 000000000..d31f63951 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "taprio-noclock", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 sched-entry S 01 300000", + "desc": "negative: opt=plain cmd=ng:taprio-noclock:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_sched-entry_S_01_300000: clockid is mandatory", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-030", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.err new file mode 100644 index 000000000..7af630bd6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.err @@ -0,0 +1 @@ +Error: Specifying a 'clockid' is mandatory. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..548237a1ba02624ca21c9db0367dc41e403bd0a3 GIT binary patch literal 644 zcmca|c+)~A1{MYcU}5+Rog8;HQHrKfr z_5j5|7~NfKfI=z^tZc~cg7}V+;Xe?7v~UB>EJ-XV%FJhAs9|7Y2m|t&fEGe*0;vE2 z7L-tdh@q0mp@u30;VCdMHOK(XW(AoJ1RTJy0NKF-H2J|~7H}AE0{Z0#Pz;38{qh1R z1k}j{@{6bk1H&tz`-hVMG=RPhE=WzzOsmYyOIJu#P*2XuPtMLvQCG+;R>)1vOGzxr IFREk!02(PvD*ylh literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-030/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/cmd.json new file mode 100644 index 000000000..b8cdbb814 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/cmd.json @@ -0,0 +1,51 @@ +{ + "axes": { + "fix": "taprio-sdu", + "json": "0", + "words": "qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 max-sdu 1500 0 clockid CLOCK_TAI" + }, + "cmd": "tc qdisc add dev d1 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4 base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000 max-sdu 1500 0 clockid CLOCK_TAI", + "desc": "negative: opt=plain cmd=ng:taprio-sdu:qdisc_add_dev_d1_root_handle_1:_taprio_num_tc_2_map_0_0_1_1_queues_4@0_4@4_base-time_1000000000_sched-entry_S_01_300000_sched-entry_S_02_200000_max-sdu_1500_0_clockid_CLOCK_TAI: max-sdu over the MTU", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "ERANGE", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-031", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.err new file mode 100644 index 000000000..ae5522c90 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.err @@ -0,0 +1 @@ +Error: sch_taprio: TC max SDU exceeds device max MTU. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-031/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..24ae6a627e2745c7240c17afee2e7c108fd94bef GIT binary patch literal 832 zcmeHFu}T9$5Pi3|r<*f^NXiIXh*+wXs9-<~3$0A71PONs1`)-mq>SHSXP3@e@Czae z)+t3S6~96B&22*N?i(DKo1M3_Z)V@#p#RWQ&={M>50mGs@Z|n8M2%~4Xn$40$duX z$TDy;GBB_+Ff*h86@$zx2bu>m1Z)tRc^W`*0U!pMS2T%#5d+X{W+4ACkOl!{b2b9a zi2#a$FuJ=ufI=z^tZc~c0+|Cc?>`WLSR6oha#Asa3?vDCDQ5<>V)(0Nnxr26s-c literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-032/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/cmd.json new file mode 100644 index 000000000..f3c4cf0fe --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/cmd.json @@ -0,0 +1,50 @@ +{ + "axes": { + "fix": "cbs-bogus", + "json": "0", + "words": "qdisc add dev d0 root handle 1: cbs bogus" + }, + "cmd": "tc qdisc add dev d0 root handle 1: cbs bogus", + "desc": "negative: opt=plain cmd=ng:cbs-bogus:qdisc_add_dev_d0_root_handle_1:_cbs_bogus: cbs: unknown parameter, rc 1", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "rc": 1, + "refused_by": "iproute2" + }, + "id": "tcswrite/ng-033", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + } + ], + "rc": 1, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.err new file mode 100644 index 000000000..ad580e66c --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.err @@ -0,0 +1,3 @@ +cbs: unknown parameter "bogus" +Usage: ... cbs hicredit BYTES locredit BYTES sendslope BPS idleslope BPS + [offload 0|1] diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-033/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..dcb4ca9230c6394d543bc19b01657744a5108bbd GIT binary patch literal 24 Wcmca|c+)~A1{MYcU}5+R!{7j9gD?XNvjvEP0RtdIh=GyeI8Yr-44LL& zkY(UxWME)tU}i`GDh8Ry9?io5G6ZZ8nt2*PaRDF(nRja$-vb7q*~~!xVIU0x$mU1` z%?SXCfiSwe9DqV946JO(?gE(uGVebSfLI(rc4|o)g9rl?&`yZ?+(2*pDzd&2tZo6foA3w78GUXGcZIjFaaS0Bg7VvEC{fmga||o zl|&9PR2c{l6n-q0{0vWkTo6Wg=M|t3&|W5xe{DP&7+wM0Hdx$l1`HqPjKsY3RE7M4 t)S|?a%=|osy!;Y{;?jbG{GyW76osTph2nzLuX z$TDy;GBB_+Ff*hWLd-J(ng=ojY!I4x8bEOYAO@MIW9adj0cbYJRfmBz2q2pi12ks_ zPz;38-PHjUQej|aMRpg&cZ>}GfdHh18)#;3VL?%5J_ADp0}~K3FhXnr$$|h2N{B$j zP)XzvLzRK>K;f4TbmtQw7lhH>c?Bp0w3i9wPA^XehF3th4HmbX0mH{RBQY;MRUyA1 twJ5P9Ge1uuFTX^gxU`@kzo;ZNMIotDp|~J5IWsL2$SF+8EKUac2LMWvM+E=? literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-037/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/cmd.json new file mode 100644 index 000000000..d8c1e20d6 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "etf-change", + "json": "0", + "words": "qdisc change dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check" + }, + "cmd": "tc qdisc change dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check", + "desc": "negative: opt=plain cmd=ng:etf-change:qdisc_change_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_200000_deadline_mode_skip_sock_check: etf has no change op: EINVAL, rc 2 (K31)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-038", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.err new file mode 100644 index 000000000..79d8203ad --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.err @@ -0,0 +1 @@ +Error: Change operation not supported by specified qdisc. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..ccb0fa213c1506947c4965dcb24a3b75528f541d GIT binary patch literal 444 zcmca|c+)~A1{MYcU}5+RjvjQ>5ofm=T z&jGSQ7~T9Hpb!%ff!rDI$-wXmXr=>Dj1oJ|fNpTkNX$!5Rmd+$ElMoO%+FKE%P&zV hE-fg?FDgk*QAny(C@x4%&P>Y$atc#2i<5zN0s!`=L?-|M literal 0 HcmV?d00001 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.rc b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.rc new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-038/ip.rc @@ -0,0 +1 @@ +2 diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/cmd.json b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/cmd.json new file mode 100644 index 000000000..ec5a53af5 --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/cmd.json @@ -0,0 +1,56 @@ +{ + "axes": { + "fix": "etf-replace", + "json": "0", + "words": "qdisc replace dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check" + }, + "cmd": "tc qdisc replace dev d0 root handle 1: etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check", + "desc": "negative: opt=plain cmd=ng:etf-replace:qdisc_replace_dev_d0_root_handle_1:_etf_clockid_CLOCK_TAI_delta_200000_deadline_mode_skip_sock_check: etf has no change op: EINVAL, rc 2 (K31)", + "env": { + "iproute2": "ip utility, iproute2-7.2.0, libbpf 1.8.0", + "kconfig": [ + "CONFIG_IPV6_IOAM6_LWTUNNEL=y", + "CONFIG_IPV6_RPL_LWTUNNEL=y", + "CONFIG_IPV6_SEG6_LWTUNNEL=y", + "CONFIG_LWTUNNEL=y", + "CONFIG_LWTUNNEL_BPF=y" + ], + "kernel": "7.3.1" + }, + "expect": { + "errno": "EINVAL", + "rc": 2, + "refused_by": "kernel" + }, + "id": "tcswrite/ng-039", + "modules": [ + "sch_cbs", + "sch_drr", + "sch_etf", + "sch_ets", + "sch_hfsc", + "sch_mqprio", + "sch_multiq", + "sch_qfq", + "sch_taprio" + ], + "pre": [ + "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI" + ], + "proto": "route", + "result": { + "pre": [ + { + "cmd": "ip link add d0 address 02:00:00:00:02:00 type dummy && ip link set d0 addrgenmode none && ip link set d0 up && ip link add d1 address 02:00:00:00:02:01 numtxqueues 8 type dummy && ip link set d1 addrgenmode none && ip link set d1 up", + "rc": 0 + }, + { + "cmd": "tc qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI", + "rc": 0 + } + ], + "rc": 2, + "status": "OK" + } +} diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.err b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.err new file mode 100644 index 000000000..79d8203ad --- /dev/null +++ b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.err @@ -0,0 +1 @@ +Error: Change operation not supported by specified qdisc. diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.out b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.out new file mode 100644 index 000000000..e69de29bb diff --git a/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.pcap b/pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/ng-039/ip.pcap new file mode 100644 index 0000000000000000000000000000000000000000..c38a17fd825230f3baaf0d3f410993c3a7fb4573 GIT binary patch literal 444 zcmca|c+)~A1{MYcU}5+RL)A`DDGJAr=WWoF<8in9VS$enkA z=Fb7LK^Wcq9-t5t5P{53@MK_k1vJwEC`O5$W.c at +// v7.2.0, through 17's tc_qdisc_modify and tc_class_modify. The kernel's +// side is each net/sched/sch_.c init, change and class change. +// +// Each write is the captured command, its setup in Pre, and a readback +// (`tc -d qdisc show`, plus `tc -d class show` for classes) records what +// the kernel kept. The rows pin the plan's leads +// (docs/netlink/upstream/iproute2-tc-write.md, W27-W41): the ets priomap +// narrowed to u8 (W27), mqprio's summed queue pairs (W30), mode only after +// a nonzero hw (W31), invarg's rc 255 (W33), taprio's silent base-time +// break (W34), its messageless flags error (W35), map and queues dropped +// with no num_tc (W36), hfsc's 32-bit convex d (W39) and unchecked concave +// m1 (W40), and its unchecked curve repeats and double error (W41). The +// leads where tc overruns memory or crashes (W26, W28, W29, W38) are unit +// rows only: their captures would hold stack bytes or a core. +// +// multiq, mqprio and taprio need a multiqueue device: d1 has 8 tx queues. +// taprio's base-time is fixed in the past, so its schedule is the same on +// every run. Writes are plain only. Determinism: explicit handles, fixed +// MACs, no packets. + +// tcSwriteModules are the qdisc modules the rows use. +var tcSwriteModules = []string{ + "sch_cbs", "sch_drr", "sch_etf", "sch_ets", "sch_hfsc", "sch_mqprio", "sch_multiq", "sch_qfq", "sch_taprio", +} + +// tcSwriteDevs are the dummies every row has: d0 with one queue, d1 with 8. +var tcSwriteDevs = []string{tcDummies("d0", "d1/8")} + +// tcSwritePre is the dummies plus setup lines. +func tcSwritePre(lines ...string) []string { + return append(append([]string{}, tcSwriteDevs...), lines...) +} + +// tcSwriteTaprio is the head of every taprio add on d1. +const tcSwriteTaprio = "taprio num_tc 2 map 0 0 1 1 queues 4@0 4@4" + +// tcSwriteMq is mqprio's head, in software mode unless a row says hw 1. +const tcSwriteMq = "mqprio num_tc 2 map 0 0 1 1 queues 4@0 4@4" + +// tcSwriteSched is taprio's fixed schedule: a past base-time, two entries. +const tcSwriteSched = "base-time 1000000000 sched-entry S 01 300000 sched-entry S 02 200000" + +// tcSwriteQdisc is one qdisc kind's add bodies (after "root handle 1:") +// on its device, and whether change and replace succeed. A kind with no +// kernel change op (mqprio, etf) refuses them only when options are sent +// (K46): drr, qfq and multiq send none, so theirs succeed. +type tcSwriteQdisc struct { + name string + dev string + body []string + change bool +} + +// tcSwriteKinds are each kind's add bodies, each documented option at +// least once. +var tcSwriteKinds = []tcSwriteQdisc{ + {"drr", "d0", []string{"drr"}, true}, + {"qfq", "d0", []string{"qfq"}, true}, + {"multiq", "d1", []string{"multiq"}, true}, + {"hfsc", "d0", []string{"hfsc", "hfsc default 10"}, true}, + {"ets", "d0", []string{ + "ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0", + "ets strict 3", + "ets quanta 1000 2000", + "ets bands 4 strict 2 priomap 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0", + }, true}, + {"mqprio", "d1", []string{tcSwriteMq + " hw 0"}, false}, + {"taprio", "d1", []string{ + tcSwriteTaprio + " " + tcSwriteSched + " clockid CLOCK_TAI", + tcSwriteTaprio + " " + tcSwriteSched + " cycle-time 600000 cycle-time-extension 1000 clockid CLOCK_TAI", + tcSwriteTaprio + " base-time 1000000000 sched-entry S 01 300000 flags 0x1 txtime-delay 200000 clockid CLOCK_TAI", + tcSwriteTaprio + " base-time 1000000000 sched-entry H 01 300000 sched-entry R 02 200000 max-sdu 0 0 clockid CLOCK_TAI", + }, true}, + {"cbs", "d0", []string{ + "cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470", + "cbs idleslope 1000 sendslope -999000 hicredit 10 locredit -20 offload 0", + }, true}, + {"etf", "d0", []string{ + "etf clockid CLOCK_TAI", + "etf clockid CLOCK_TAI delta 300000 skip_sock_check", + "etf clockid CLOCK_TAI delta 300000 deadline_mode", + "etf clockid CLOCK_TAI delta 200000 deadline_mode skip_sock_check", + }, false}, +} + +// tcSwriteClass is a classful kind's class bodies (after the kind word's +// classid), under its qdisc on d0. +var tcSwriteClasses = []struct { + name string + qdisc string + body []string +}{ + {"drr", "drr", []string{"drr", "drr quantum 1514", "drr quantum 9k"}}, + {"qfq", "qfq", []string{"qfq", "qfq weight 30 maxpkt 9000", "qfq weight 1"}}, + {"hfsc", "hfsc default 10", []string{ + "hfsc sc rate 10mbit ul rate 20mbit", + "hfsc rt m1 2mbit d 10ms m2 1mbit ls m2 3mbit", + "hfsc sc umax 1500 dmax 10ms rate 1mbit", + "hfsc rt umax 1500 dmax 50ms rate 10mbit", + "hfsc ls m1 0 d 5ms m2 2mbit ul m2 4mbit", + }}, +} + +// tcswriteSpace: the qdisc and class writes of the increment-15 kinds. +func tcswriteSpace() *space { + var cmds []value + rb := map[string][]readback{} + add := func(kind brKind, name, dev, words string, pre []string, class bool) { + val := bc(kind, name, words, pre) + cmds = append(cmds, val) + r := []readback{{Name: "dump", Cmd: "tc -d qdisc show dev " + dev}} + if class { + r = append(r, readback{Name: "class", Cmd: "tc -d class show dev " + dev}) + } + rb[val.Name] = r + } + // A kind with no kernel change op gives EINVAL on a change or replace + // that carries options (K31, K46). + var verbBad []badValue + noChange := expect{RC: intp(2), Errno: "EINVAL", RefusedBy: refKernel} + for _, k := range tcSwriteKinds { + root := "dev " + k.dev + " root handle 1: " + for i, body := range k.body { + add(brPos, k.name+string(rune('0'+i)), k.dev, "qdisc add "+root+body, tcSwriteDevs, false) + } + pre := tcSwritePre("tc qdisc add " + root + k.body[0]) + last := k.body[len(k.body)-1] + for _, verb := range []string{"change", "replace"} { + words := "qdisc " + verb + " " + root + last + if !k.change { + verbBad = append(verbBad, brBad(k.name+"-"+verb, words, pre, noChange, + k.name+" has no change op: EINVAL, rc 2 (K31)")) + continue + } + add(brPos, k.name+"-"+verb, k.dev, words, pre, false) + } + add(brPos, k.name+"-delete", k.dev, "qdisc delete dev "+k.dev+" root", pre, false) + } + // Classes: each body added, then change, replace and delete of the first. + for _, c := range tcSwriteClasses { + qpre := tcSwritePre("tc qdisc add dev d0 root handle 1: " + c.qdisc) + for i, body := range c.body { + add(brPos, c.name+"-class"+string(rune('0'+i)), "d0", + "class add dev d0 parent 1: classid 1:10 "+body, qpre, true) + } + cpre := append(slices.Clone(qpre), "tc class add dev d0 parent 1: classid 1:10 "+c.body[0]) + last := c.body[len(c.body)-1] + add(brPos, c.name+"-class-change", "d0", "class change dev d0 parent 1: classid 1:10 "+last, cpre, true) + add(brPos, c.name+"-class-replace", "d0", "class replace dev d0 parent 1: classid 1:10 "+last, cpre, true) + add(brPos, c.name+"-class-delete", "d0", "class delete dev d0 classid 1:10", cpre, true) + } + etsPre := tcSwritePre("tc qdisc add dev d0 root handle 1: ets bands 3 strict 1") + add(brPos, "ets-class-change", "d0", "class change dev d0 classid 1:3 ets quantum 2000", etsPre, true) + add(brPos, "ets-class-replace", "d0", "class replace dev d0 classid 1:2 ets quantum 3000", etsPre, true) + // The plan's leads. + add(brBoundary, "w27-priomap", "d0", "qdisc add dev d0 root handle 1: ets bands 3 priomap 256 1 2", tcSwriteDevs, false) + add(brCorner, "w3-ets", "d0", "qdisc add dev d0 root handle 1: ets bands 0 bands 3", tcSwriteDevs, false) + add(brCorner, "w3-hfsc", "d0", "qdisc add dev d0 root handle 1: hfsc default 0 default 5", tcSwriteDevs, false) + add(brCorner, "w3-cbs", "d0", "qdisc add dev d0 root handle 1: cbs hicredit 0 hicredit 5", tcSwriteDevs, false) + add(brCorner, "w3-etf", "d0", "qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI delta 0 delta 5", tcSwriteDevs, false) + add(brCorner, "w3-taprio", "d1", + "qdisc add dev d1 root handle 1: "+tcSwriteTaprio+" sched-entry S 01 300000 cycle-time 0 cycle-time 600000 clockid CLOCK_TAI", + tcSwriteDevs, false) + hfscPre := tcSwritePre("tc qdisc add dev d0 root handle 1: hfsc") + add(brBoundary, "w39-umax", "d0", "class add dev d0 parent 1: classid 1:10 hfsc sc umax 5000 dmax 100ms rate 100mbit", hfscPre, true) + add(brBoundary, "w40-m1", "d0", "class add dev d0 parent 1: classid 1:10 hfsc rt umax 100000 dmax 1us rate 1kbit", hfscPre, true) + add(brCorner, "w41-repeat", "d0", "class add dev d0 parent 1: classid 1:10 hfsc rt m2 1mbit sc m2 2mbit", hfscPre, true) + // A batch: a qdisc and two classes. + cmds = append(cmds, + bb(brPos, "batch", "hfsc", "", false, batchFile( + "qdisc add dev d0 root handle 1: hfsc default 10", + "class add dev d0 parent 1: classid 1:1 hfsc sc rate 10mbit ul rate 20mbit", + "class add dev d0 parent 1:1 classid 1:10 hfsc rt m2 1mbit ls m2 1mbit"), tcSwriteDevs), + ) + rb[cmds[len(cmds)-1].Name] = []readback{{Name: "dump", Cmd: "tc -d qdisc show dev d0"}, {Name: "class", Cmd: "tc -d class show dev d0"}} + + tool1 := expect{RC: intp(1), RefusedBy: refIproute2} + invarg := expect{RC: intp(255), RefusedBy: refIproute2} + kEINVAL := expect{RC: intp(2), Errno: "EINVAL", RefusedBy: refKernel} + drrPre := tcSwritePre("tc qdisc add dev d0 root handle 1: drr") + bad := slices.Concat([]badValue{ + brBad("drr-bogus", "qdisc add dev d0 root handle 1: drr bogus", tcSwriteDevs, tool1, "What is \"bogus\"?, rc 1 (W4)"), + brBad("drr-q0", "class add dev d0 parent 1: classid 1:10 drr quantum 0", drrPre, kEINVAL, + "the kernel refuses a zero quantum"), + brBad("drr-cbogus", "class add dev d0 parent 1: classid 1:10 drr bogus", drrPre, tool1, "class usage, rc 1"), + brBad("qfq-weight", "class add dev d0 parent 1: classid 1:10 qfq weight zz", + tcSwritePre("tc qdisc add dev d0 root handle 1: qfq"), tool1, "Illegal \"weight\", rc 1"), + brBad("multiq-bands", "qdisc add dev d1 root handle 1: multiq bands 4", tcSwriteDevs, tool1, + "multiq takes no options (K27), rc 1"), + brBad("multiq-class", "class add dev d1 parent 1: classid 1:1 multiq", + tcSwritePre("tc qdisc add dev d1 root handle 1: multiq"), tool1, "multiq is classless, rc 1"), + brBad("w41-twoerr", "class add dev d0 parent 1: classid 1:10 hfsc rt m1 bogus m2 1mbit", hfscPre, tool1, + "a failed sc1 is retried as sc2: two errors (W41)"), + brBad("w16-m2", "class add dev d0 parent 1: classid 1:10 hfsc rt m2 40gbit", hfscPre, tool1, + "hfsc rates are 32-bit (W16)"), + brBad("w9-pct", "class add dev d0 parent 1: classid 1:10 hfsc ls m2 10%", hfscPre, tool1, + "a percent rate on a dummy with no speed (W9)"), + brBad("hfsc-bogus", "class add dev d0 parent 1: classid 1:10 hfsc bogus", hfscPre, tool1, "hfsc usage, rc 1"), + brBad("ets-cover", "qdisc add dev d0 root handle 1: ets bands 2 quanta 1 2 3", tcSwriteDevs, tool1, + "not enough bands for the quanta"), + brBad("ets-oob", "qdisc add dev d0 root handle 1: ets bands 2 priomap 2", tcSwriteDevs, tool1, + "a priomap band out of bounds"), + brBad("ets-none", "qdisc add dev d0 root handle 1: ets", tcSwriteDevs, tool1, "no bands, quanta or strict"), + brBad("ets-strictq", "class change dev d0 classid 1:1 ets quantum 2000", etsPre, kEINVAL, + "a strict band has no quantum"), + brBad("mq-nohw", "qdisc add dev d1 root handle 1: "+tcSwriteMq, tcSwriteDevs, kEINVAL, + "hw defaults to 1: a dummy has no offload"), + brBad("w33-bogus", "qdisc add dev d1 root handle 1: mqprio bogus", tcSwriteDevs, invarg, + "an unknown word goes to invarg: rc 255 (W33)"), + brBad("mq-numtc", "qdisc add dev d1 root handle 1: mqprio num_tc x", tcSwriteDevs, tool1, + "Illegal \"num_tc\", rc 1 (W33's contrast)"), + brBad("w31-hw-first", "qdisc add dev d1 root handle 1: "+tcSwriteMq+" hw 0 mode channel", tcSwriteDevs, invarg, + "mode after hw 0 is unknown: rc 255 (W31)"), + brBad("w31-mode-first", "qdisc add dev d1 root handle 1: "+tcSwriteMq+" mode channel hw 0", tcSwriteDevs, kEINVAL, + "mode before hw 0 is sent: the kernel's EINVAL (W31)"), + brBad("w30-queues", "qdisc add dev d1 root handle 1: "+tcSwriteMq+" queues 4@0 4@4 hw 0", tcSwriteDevs, tool1, + "queues twice sums the pair count (W30)"), + brBad("mq-fp", "qdisc add dev d1 root handle 1: "+tcSwriteMq+" fp E P hw 0", tcSwriteDevs, kEINVAL, + "fp needs hardware mode"), + brBad("w32-rates", "qdisc add dev d1 root handle 1: "+tcSwriteMq+" mode channel shaper bw_rlimit min_rate 1mbit hw 1", + tcSwriteDevs, kEINVAL, "one min_rate for two classes is sent (W32)"), + brBad("mq-rates", "qdisc add dev d1 root handle 1: "+tcSwriteMq+" mode channel shaper bw_rlimit min_rate 1mbit 2mbit max_rate 5mbit 6mbit hw 1", + tcSwriteDevs, kEINVAL, "rates need hardware offload"), + brBad("taprio-sq", "qdisc add dev d0 root handle 1: taprio num_tc 2 map 0 0 1 1 queues 1@0 1@0 "+tcSwriteSched+" clockid CLOCK_TAI", + tcSwriteDevs, expect{RC: intp(2), Errno: "ENOTSUP", RefusedBy: refKernel}, "taprio needs a multiqueue device"), + brBad("w34-basetime", "qdisc add dev d1 root handle 1: "+tcSwriteTaprio+" base-time zz sched-entry S 01 300000 clockid CLOCK_TAI", + tcSwriteDevs, kEINVAL, "a bad base-time ends the parse silently: no entries sent (W34)"), + brBad("w34-cycle", "qdisc add dev d1 root handle 1: "+tcSwriteTaprio+" cycle-time zz sched-entry S 01 300000 clockid CLOCK_TAI", + tcSwriteDevs, kEINVAL, "a bad cycle-time ends the parse silently (W34)"), + brBad("w35-flags", "qdisc add dev d1 root handle 1: "+tcSwriteTaprio+" sched-entry S 01 300000 flags zz clockid CLOCK_TAI", + tcSwriteDevs, tool1, "a bad flags value: rc 1, no message (W35)"), + brBad("w35-unknown", "qdisc add dev d1 root handle 1: taprio bogus", tcSwriteDevs, tool1, + "a bare \"Unknown argument\" (W35)"), + brBad("w36-nonumtc", "qdisc add dev d1 root handle 1: taprio map 0 1 queues 1@0 sched-entry S 01 300000 clockid CLOCK_TAI", + tcSwriteDevs, kEINVAL, "map and queues dropped with no num_tc (W36)"), + brBad("taprio-noclock", "qdisc add dev d1 root handle 1: "+tcSwriteTaprio+" sched-entry S 01 300000", tcSwriteDevs, kEINVAL, + "clockid is mandatory"), + brBad("taprio-sdu", "qdisc add dev d1 root handle 1: "+tcSwriteTaprio+" "+tcSwriteSched+" max-sdu 1500 0 clockid CLOCK_TAI", + tcSwriteDevs, expect{RC: intp(2), Errno: "ERANGE", RefusedBy: refKernel}, "max-sdu over the MTU"), + brBad("cbs-offload", "qdisc add dev d0 root handle 1: cbs idleslope 20000 sendslope -980000 hicredit 30 locredit -1470 offload 1", + tcSwriteDevs, expect{RC: intp(2), Errno: "ENOTSUP", RefusedBy: refKernel}, "cbs offload on a dummy"), + brBad("cbs-bogus", "qdisc add dev d0 root handle 1: cbs bogus", tcSwriteDevs, tool1, "cbs: unknown parameter, rc 1"), + brBad("etf-offload", "qdisc add dev d0 root handle 1: etf clockid CLOCK_TAI offload", tcSwriteDevs, + expect{RC: intp(2), Errno: "ENOTSUP", RefusedBy: refKernel}, "etf offload on a dummy"), + brBad("etf-clock", "qdisc add dev d0 root handle 1: etf clockid BOGUS", tcSwriteDevs, tool1, "a bad clockid, rc 1"), + }, verbBad) + sp := &space{ + Name: "tcswrite", + Axes: []axis{{Name: "opt", Values: []value{v("plain", "", f("json", "0"))}}, {Name: "cmd", Values: cmds}}, + Bad: bad, + } + sp.NegBase = func([]value) bool { return true } + sp.Build = func(vals []value) row { + r := tcBuildMods(tcSwriteModules, vals) + r.Readback = rb[vals[len(vals)-1].Name] + return r + } + return sp +} + +// tcSwriteWords is a write row's words, for tests. +func tcSwriteWords(r row) string { return strings.TrimPrefix(r.Cmd, "tc ") } diff --git a/tools/nlcapgen/matrix_tcswrite_test.go b/tools/nlcapgen/matrix_tcswrite_test.go new file mode 100644 index 000000000..0523af908 --- /dev/null +++ b/tools/nlcapgen/matrix_tcswrite_test.go @@ -0,0 +1,136 @@ +package main + +import ( + "bytes" + "strings" + "testing" +) + +// TestTcSwriteSpace pins the scheduler write rows (gotc 18C): every +// increment-15 kind's add bodies, change, replace and delete on each, the +// classful kinds' classes, the leads, a batch and the refusals. +// +// go test ./tools/nlcapgen/ -run TestTcSwriteSpace +func TestTcSwriteSpace(t *testing.T) { + rows, err := matrixRows(families["tcswrite"](), matrixOpts{Seed: 1}) + if err != nil { + t.Fatal(err) + } + if err := checkRows(rows); err != nil { + t.Fatal(err) + } + if len(rows) != 114 { + t.Errorf("%d rows, want 114 (69 commands plain, 45 negatives)", len(rows)) + } + byCmd := map[string]row{} + for _, r := range rows { + if !strings.HasPrefix(r.ID, "tcswrite/") { + t.Errorf("%s: not in tcswrite/", r.ID) + } + if r.InitNS || r.Serial || r.Proto != "route" { + t.Errorf("%s: initns %t serial %t proto %q", r.ID, r.InitNS, r.Serial, r.Proto) + } + for _, m := range r.Modules { + if !tdcGuestModules[m] { + t.Errorf("%s: module %s is not one the guest has", r.ID, m) + } + } + // Every write targets d0 or d1, made in the row's own namespace. + if w := tcSwriteWords(r); strings.Contains(w, "dev lo") || strings.Contains(r.Cmd, "-netns") { + t.Errorf("%s: writes outside its dummies: %q", r.ID, r.Cmd) + } + if r.Expect.RefusedBy == refNone && len(r.Readback) == 0 { + t.Errorf("%s: a positive write with no readback", r.ID) + } + k := r.Cmd + "|" + r.Axes["fix"] + if _, dup := byCmd[k]; dup { + t.Errorf("%s: %q twice", r.ID, k) + } + byCmd[k] = r + } + has := func(sub string) bool { + for _, r := range rows { + if strings.Contains(r.Cmd, sub) { + return true + } + } + return false + } + + tests := []struct { + description string + sub string // a substring some row's command holds + expected bool + }{ + {"positive: drr class quantum", "drr quantum 1514", true}, + {"positive: qfq class weight and maxpkt", "qfq weight 30 maxpkt 9000", true}, + {"positive: multiq", "root handle 1: multiq", true}, + {"positive: hfsc default", "root handle 1: hfsc default 10", true}, + {"positive: hfsc m1 d m2", "rt m1 2mbit d 10ms m2 1mbit", true}, + {"positive: hfsc umax dmax rate", "sc umax 1500 dmax 10ms rate 1mbit", true}, + {"positive: ets quanta and priomap", "ets bands 3 strict 1 quanta 1500 3000 priomap 2 1 0", true}, + {"positive: ets class quantum", "ets quantum 2000", true}, + {"positive: mqprio software", "queues 4@0 4@4 hw 0", true}, + {"positive: taprio cycle-time-extension", "cycle-time-extension 1000", true}, + {"positive: taprio txtime-assist", "flags 0x1 txtime-delay 200000", true}, + {"positive: taprio H and R entries", "sched-entry H 01 300000 sched-entry R 02", true}, + {"positive: cbs", "cbs idleslope 20000 sendslope -980000", true}, + {"positive: etf deadline_mode", "deadline_mode", true}, + {"positive: delete", "qdisc delete dev d1 root", true}, + {"positive: class delete", "class delete dev d0 classid 1:10", true}, + {"lead: W27 priomap 256", "priomap 256 1 2", true}, + {"lead: W30 queues twice", "queues 4@0 4@4 queues 4@0 4@4", true}, + {"lead: W31 hw before mode", "hw 0 mode channel", true}, + {"lead: W31 mode before hw", "mode channel hw 0", true}, + {"lead: W32 one min_rate", "min_rate 1mbit hw 1", true}, + {"lead: W33 invarg", "mqprio bogus", true}, + {"lead: W34 base-time", "base-time zz", true}, + {"lead: W35 flags", "flags zz", true}, + {"lead: W36 no num_tc", "taprio map 0 1 queues 1@0", true}, + {"lead: W39 umax wrap", "umax 5000 dmax 100ms", true}, + {"lead: W40 concave m1", "umax 100000 dmax 1us", true}, + {"lead: W41 two errors", "rt m1 bogus m2 1mbit", true}, + {"lead: W41 curve repeat", "rt m2 1mbit sc m2 2mbit", true}, + {"lead: W3 ets bands 0", "ets bands 0 bands 3", true}, + {"boundary: hfsc 32-bit rate", "rt m2 40gbit", true}, + {"corner: K46 drr change without options", "qdisc change dev d0 root handle 1: drr", true}, + {"negative: W26 17 quanta are not captured", "quanta 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1", false}, + {"negative: W38 hfsc rate 0 is not captured", "rate 0", false}, + {"negative: no show command is captured", "qdisc show", false}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + if got := has(tc.sub); got != tc.expected { + t.Errorf("a row with %q: %t, want %t", tc.sub, got, tc.expected) + } + }) + } + + // Every kind has add, change, replace and delete. + fixes := map[string]bool{} + for _, r := range rows { + fixes[r.Axes["fix"]] = true + } + for _, k := range tcSwriteKinds { + for _, verb := range []string{"0", "-change", "-replace", "-delete"} { + if !fixes[k.name+verb] { + t.Errorf("%s has no %s row", k.name, verb) + } + } + } + + // Generation is deterministic. + var a, b bytes.Buffer + for i, buf := range []*bytes.Buffer{&a, &b} { + rs, err := matrixRows(families["tcswrite"](), matrixOpts{Seed: 1}) + if err != nil { + t.Fatalf("run %d: %v", i, err) + } + if err := writeRows(buf, nil, rs); err != nil { + t.Fatal(err) + } + } + if !bytes.Equal(a.Bytes(), b.Bytes()) { + t.Error("two generations differ") + } +} From 7eb9c7ec404e3a917ece1a5bf03b02c5fcc8f25f Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 22:50:15 -0800 Subject: [PATCH 2/9] feat(xtcpnl): increment-15 kind encoders and BeginNestData (gotc 18P) Append for the multiq, hfsc, mqprio, cbs and etf structs, and an AttrBuilder nest for q_mqprio's stretched TCA_OPTIONS. Nine requests equal tc's tcswrite captures byte for byte (V043). Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gotc-status.md | 3 + pkg/xtcpnl/xtcpnl_tc_qencode.go | 54 ++++++++ pkg/xtcpnl/xtcpnl_tc_qencode_test.go | 13 ++ pkg/xtcpnl/xtcpnl_tc_swrite_test.go | 178 +++++++++++++++++++++++++++ pkg/xtcpnl/xtcpnl_tc_write.go | 13 ++ 5 files changed, 261 insertions(+) create mode 100644 pkg/xtcpnl/xtcpnl_tc_swrite_test.go diff --git a/docs/netlink/gotc-status.md b/docs/netlink/gotc-status.md index a50b1f9e9..1187c35da 100644 --- a/docs/netlink/gotc-status.md +++ b/docs/netlink/gotc-status.md @@ -234,6 +234,8 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr - **18C (captures): done.** `tcswrite`: 114 rows (69 writes, 45 refusals), each write with a `qdisc`/`class show` readback. Two batches on one boot agree on every row (V042). +- **18P (encoders): done.** `Append` for the multiq, hfsc, mqprio, cbs and etf structs, plus `BeginNestData` for + mqprio's stretched TCA_OPTIONS; nine requests equal tc's captured bytes (V043). ## Ledger @@ -287,6 +289,7 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr | V040 | 17L | **Live diff** on the workbench (kernel 7.3.1, tc 7.2.0 `/nix/store/x1pwsbz5cm23hk58b7fcpn3hhg9j7gwh-iproute2-7.2.0`): gotc built with `-tags gotc_write` at 17W (`/nix/store/4jqbwh9si1kacb7frig6hwxkalkfdgr1-gotc-write-17l`), with `GOTC_CONF_USR_DIR` and `TC_LIB_DIR` set to tc's `share/iproute2` and `lib/tc`. Each row of `tcqwrite.rows.jsonl` runs its pre steps in a fresh named namespace, then gotc with `GOTC_WRITE_OUT` (it sends only its link lookups), then tc, which applies the write. gotc's requests are compared with tc's from the corpus pcaps (seq and pid zeroed), and stdout, stderr and rc with the live tc's. **Result: 125/125.** Every request matches byte for byte, the batch rows' two included, with one masked field: the tcmsg ifindex, 2 live and 3 in the capture, because nlcapgen's nlmon device took index 2 in the capture namespace (tc in the live namespace also has d0 at 2). **Named exceptions** (request identical, output differs because gotc never hears the kernel): ec-092 (htb's quantum warning) and the 12 kernel refusals ng-001, 002, 003, 007, 012, 014, 020–025, where tc prints the extack and exits 2 and gotc exits 0. Everywhere tc stops before sending (ng-004–006, 008–011, 013, 015–019, help rows ec-088, ec-099), stdout, stderr and rc are identical. **tc against the corpus:** stdout, stderr and rc match `ws/tcqwrite` on all 125 rows, so nothing has drifted. **VM:** pre-checked (`free -g`, port 12061 held only by this session's boot, bracketed pgrep). This run loaded no module (17C's captures had already loaded all eight on this boot), and none were removed here. No namespace or extra link is left, there are no core files, `/tmp/t17l` is removed, and the VM is powered off (`nlcap-ws down`; port 12061 free). | | V041 | 17W | **Review fix (PR 356):** `cStrtod` dropped strtod's ERANGE on a hex float, so `0x1p1024` passed get_time and get_rate64 as an integer conversion of infinity: gotc sent where tc says `Illegal "target"` (fq_codel), `Illegal "latency"`/`"rate"` (netem) and `Illegal "timer_slack"` (fq), each rc 1. `hexFloat` now reports the overflow and `cStrtod` returns it, as the decimal path does. `inf` stays no ERANGE. Pinned by `TestCStrtod` (hex overflow ±, `0x1p1023` the largest power) and `TestGotcHexOverflow` (the four commands: rc 1, tc's stderr, no request). | | V042 | 18C | **Captures** `tcswrite`: `tools/nlcapgen/matrix_tcswrite.go` (+ `TestTcSwriteSpace`), rows in `nix/microvms/workbench/tcswrite.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/` (114 rows, 2.8M). Devices: d0 (one queue) and d1 (8 tx queues, for multiq, mqprio and taprio). **Rows:** every add body of the nine kinds (hfsc with and without `default`; ets bands/strict/quanta/priomap in four shapes; software mqprio; taprio with cycle-time and extension, txtime-assist flags and delay, H and R entries with `max-sdu 0 0`; cbs with `offload 0`; etf with delta, `skip_sock_check` and `deadline_mode`), then change, replace and delete on each; drr, qfq and hfsc classes (quantum, weight/maxpkt, rt/ls/sc/ul in the m1/d/m2 and umax/dmax/rate forms) with change, replace and delete; ets class change and replace; a three-line hfsc batch. **Leads pinned:** W27 (ets `priomap 256` is sent as band 0), W3 in ets, hfsc, cbs, etf and taprio, W39 (`umax 5000`), W40 (`umax 100000 dmax 1us rate 1kbit` is accepted), W41 (`rt ... sc ...` accepted; `rt m1 bogus` prints two errors). **Refusals (45):** drr, qfq, multiq, hfsc, ets and cbs parse errors (rc 1); W33 (`mqprio bogus` and W31's `hw 0 mode channel` exit 255 through invarg, against `num_tc x`'s rc 1); W30 (`queues` twice: the pair-count error); W31's `mode channel hw 0` sent and refused by the kernel (EINVAL); W32 (one `min_rate` for two classes sent, EINVAL: no offload); W34 (a bad `base-time` or `cycle-time` sends no entries: `There should be at least one entry`, EINVAL); W35 (`flags zz`: rc 1, no message; `taprio bogus`: a bare `Unknown argument`); W36 (no num_tc: map and queues dropped, `'mqprio' configuration is necessary`); W16 (hfsc `m2 40gbit`) and W9 (`10%` on a dummy); the kernel's drr quantum 0, ets strict-band quantum, mqprio hw default, taprio on a single-queue device (ENOTSUP), no clockid, max-sdu over the MTU (ERANGE), cbs and etf offload (ENOTSUP); and mqprio and etf change/replace (EINVAL, K31). **K46 (new):** a kind with no kernel change op fails only when the request carries `TCA_OPTIONS` (sch_api.c `qdisc_change`), so `qdisc change`/`replace` of an optionless drr, qfq or multiq succeeds. Every expectation was first checked against the host's tc 7.2.0 in an unprivileged netns (kernel 7.3.3), twice, with identical output. **Gate:** pre-checked (`free -g`, port 12061 free, no workbench process), booted, two batches on one boot, 114/114 OK each, with stdout, stderr, rc and every readback identical. **VM:** the 15 modules the run added were removed with `modprobe -r` (lsmod back to the 86-module baseline); no namespace, no core files; powered off with `down`. | +| V043 | 18P | **Encoders**: `Append` on `TcMultiqQopt`, `TcHfscQopt`, `TcServiceCurve`, `TcMqprioQopt` (82 bytes), `TcCbsQopt` (offload then 3 pad bytes) and `TcEtfQopt` (`pkg/xtcpnl/xtcpnl_tc_qencode.go`, cited to pkt_sched.h), each round-tripped through its 15P decoder (`TestTcQencodeRoundTrip`). New `AttrBuilder.BeginNestData`: q_mqprio sets TCA_OPTIONS's rta_len from the aligned tail (q_mqprio.c:216,251), so the struct counts as 84 bytes and the MODE/SHAPER/TC_ENTRY/rate attributes sit inside it; not `addattr_nest_compat`, which adds an inner header. `TestBuildTcSchedWrite` (gotc_write) builds nine requests through `BuildTcWriteRequest` and compares them byte for byte with the tcswrite captures: drr (no options, ec-001), multiq (ec-009), hfsc without and with `default 10` (ec-013/014), ets with flagged TCA_OPTIONS/QUANTA/PRIOMAP nests, NBANDS as u8 and NSTRICT (ec-018), mqprio (ec-025, the 84-byte boundary), cbs PARMS in a nest (ec-034), etf with CLOCK_TAI and `skip_sock_check` = bit 2 (ec-040), and an hfsc class with RSC then FSC (ec-057). `TestBuildTcSchedWriteAllocs` pins 2 allocations; `BenchmarkBuildTcSchedWrite` runs at about 57 µs per request, the same cost as 17P's pfifo benchmark (the framework's request buffer dominates). | | DOC009 | 16B | **Write-up:** `docs/netlink/upstream/iproute2-tc-aqm.md`: status header, reachability, contents, 24 summary rows, six sections, and K32–K43. Not submitted to netdev. **At HEAD** (GitHub mirror, `5d13122576d6`, 2026-11-26): none of the thirteen printers, `tc_red.c`, `tc_qevent.c` or `tc_qdisc.c` has a commit since v7.2.0, so all are present. **Confirmed in the corpus:** Q66 (ec-007), Q73 (ec-021, pw-021), Q79 (ec-038), Q80/Q81 (pw-035, ec-040, pw-040, pw-042), Q83 (pw-052), Q84 (pw-052, ec-055, pw-055), Q86 (ec-053), Q87 (ec-001, pw-005). **Latent, with unit rows:** Q67–Q72, Q74–Q78, Q82, Q85, Q88, Q89. **Dropped:** none. **New leads:** Q88 (gred_parse_vqs's plain parse_rtattr misses a VQ_ENTRY flagged NLA_F_NESTED), Q89 (an unknown dualpi2 ECN mask warns twice and prints an empty word). **Kernel notes:** K32–K42 confirmed at v7.4-rc4, refined: red's qevents only when bound; idle cake MIN_NETLEN 65535; cake_mq no dump_stats; plug no .dump; skbprio 64 classes; dualpi2 rejects both step_thresh forms (sch_dualpi2.c:812). **K43 (new):** codel times lose 1 µs (target 4ms dumps 3999, pw-024). **Unit rows:** TestGotcAqm adds Q88 (44 rows). **Bug classes:** none new; Q88 and Q89 fit C3/C15 and C10. | | DOC010 | 17B | **Write-up:** `docs/netlink/upstream/iproute2-tc-write.md`: status header, reachability, contents, 25 summary rows, eight sections, K44–K45. Not submitted to netdev. **At HEAD** (GitHub mirror, `35033e4713fe`, 2026-11-27): no tc file in scope has a commit since v7.2.0; `lib/utils.c`'s one (`552d9842b1f4`, resolve_address's cache) touches none of it, so all are present. **Confirmed in the corpus:** W1 (ec-088, ec-099), W2 (ec-079, ng-011), W3 (ec-089), W4 (ng-004, ng-005, ng-019), W9 (ng-013), W17 (ec-092), W22 (ec-062). **Latent, with unit rows:** W5, W6, W8, W10–W16, W18–W21, W23–W25. **Dropped:** W7. **Kernel notes:** K44 (each verb's errno and extack, ng-001–003, 007, 014, 020–025), K45 (extack errors and warnings printed in place of RTNETLINK answers). **Bug classes:** candidates for the user: a wrong option named in a copied error message (W15, W20) and a divide by a user-given zero (W21). | | V033 | 16C | **Captures** `tcaqm`: `tools/nlcapgen/matrix_tcaqm.go` (+ `TestTcAqmSpace`), rows in `nix/microvms/workbench/tcaqm.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcaqm/` (132 rows, 2.7M). Modules: sch_cake (with cake_mq), sch_choke, sch_codel, sch_dualpi2, sch_fq_pie, sch_gred, sch_hhf, sch_pie, sch_plug, sch_red, sch_sfb, sch_skbprio. **Fixtures (26):** red default and `ecn harddrop adaptive qevent early_drop block 10`; choke with ecn; gred `setup vqs 4 default 0 grio` with VQs 0 and 1 changed in, and gred with no VQ configured; sfb default and `rehash 5000000 db 5000000` (Q73); codel, pie, fq_pie and hhf defaults plus an option variant each; cake default, plus four variants covering every diffserv mode, the flow modes, nat/wash/ingress, both ack-filters, no-split-gso, rtt, atm overhead mpu, memlimit, fwmark 0xff, autorate-ingress and docsis; cake_mq on a four-queue dummy; dualpi2 default, step_thresh in packets with drop_enqueue/drop_on_overload/any_ect/no_split_gso, and step_thresh in time; plug; skbprio (with `class show`). Each gets `qdisc show` plus `-s`/`-d`/`-o` forms; batches: cake `-s` qdisc/class/qdisc and red `-d` twice. **Refusals:** ng-001 cake_mq under plug (ENOTSUP, "Parent qdisc is not classful"), ng-002 cake_mq autorate-ingress (ENOTSUP, K39), ng-003 gred change over plug (EINVAL), ng-004 `show dev nosuch` (rc 1). **Notes:** batch lines take no options, so the batches pass `-s`/`-d` on tc's own command line; hhf's `admit_bytes 64Kb` is not accepted, so the fixture uses 65536. Q66 is confirmed live (`Scell_log 15qevent early_drop block 10`), and Q73 (sfb prints `rehash 705s`), Q80, Q81, Q83 and Q84 show in the captures. misspell flags dualpi2's `any_ect`; a scoped exclusion in both golangci configs covers the tcaqm and dualpi2 files. **Gate:** two batches on one boot, 132/132 OK, stdout, stderr and rc identical; `TestTcAqmSpace` pins 132 rows, 26 fixtures and 21 cases; no row sends packets. | diff --git a/pkg/xtcpnl/xtcpnl_tc_qencode.go b/pkg/xtcpnl/xtcpnl_tc_qencode.go index 3aa9530f0..cac0065d7 100644 --- a/pkg/xtcpnl/xtcpnl_tc_qencode.go +++ b/pkg/xtcpnl/xtcpnl_tc_qencode.go @@ -191,3 +191,57 @@ func (g TcNetemGemodel) Append(b []byte) []byte { } return b } + +// The increment-15 kinds (gotc 18P): the fixed structs their parse_qopt +// and parse_copt send (tc/q_{multiq,hfsc,mqprio,cbs,etf}.c at v7.2.0). +// drr, qfq, ets and taprio send only scalar attributes and nests, which +// gotc lays out with an AttrBuilder. + +// Append lays out q, struct tc_multiq_qopt (pkt_sched.h:155). multiq's +// parse_qopt sends it zeroed; the kernel writes bands back (K27). +func (q TcMultiqQopt) Append(b []byte) []byte { + b = appendU16(b, q.Bands) + return appendU16(b, q.MaxBands) +} + +// Append lays out q, struct tc_hfsc_qopt (pkt_sched.h:453). +func (q TcHfscQopt) Append(b []byte) []byte { return appendU16(b, q.Defcls) } + +// Append lays out c, struct tc_service_curve (pkt_sched.h:457). +func (c TcServiceCurve) Append(b []byte) []byte { + b = appendU32(b, c.M1) + b = appendU32(b, c.D) + return appendU32(b, c.M2) +} + +// Append lays out q, struct tc_mqprio_qopt (pkt_sched.h:629): 82 bytes, +// which the attribute holding it pads to 84 (RTA_ALIGN). +func (q TcMqprioQopt) Append(b []byte) []byte { + b = append(b, q.NumTc) + b = append(b, q.PrioTcMap[:]...) + b = append(b, q.Hw) + for _, c := range q.Count { + b = appendU16(b, c) + } + for _, o := range q.Offset { + b = appendU16(b, o) + } + return b +} + +// Append lays out q, struct tc_cbs_qopt (pkt_sched.h:969): offload, three +// pad bytes (zero, as tc's memset leaves them), then the four s32s. +func (q TcCbsQopt) Append(b []byte) []byte { + b = append(b, q.Offload, 0, 0, 0) + b = appendS32(b, q.Hicredit) + b = appendS32(b, q.Locredit) + b = appendS32(b, q.Idleslope) + return appendS32(b, q.Sendslope) +} + +// Append lays out q, struct tc_etf_qopt (pkt_sched.h:988). +func (q TcEtfQopt) Append(b []byte) []byte { + b = appendS32(b, q.Delta) + b = appendS32(b, q.Clockid) + return appendU32(b, q.Flags) +} diff --git a/pkg/xtcpnl/xtcpnl_tc_qencode_test.go b/pkg/xtcpnl/xtcpnl_tc_qencode_test.go index 1f4a78c71..d85b45645 100644 --- a/pkg/xtcpnl/xtcpnl_tc_qencode_test.go +++ b/pkg/xtcpnl/xtcpnl_tc_qencode_test.go @@ -55,6 +55,19 @@ func TestTcQencodeRoundTrip(t *testing.T) { {"positive: tc_netem_slot", TcNetemSlot{MinDelay: 800000, MaxDelay: 1000000, MaxPackets: 10, MaxBytes: 3000, DistDelay: -1, DistJitter: math.MinInt64}, TcNetemSlotSizeCst, func(b []byte) (any, error) { return DecodeTcNetemSlot(b) }}, + {"positive: tc_multiq_qopt", TcMultiqQopt{Bands: 8, MaxBands: 8}, TcMultiqQoptSizeCst, + func(b []byte) (any, error) { return DecodeTcMultiqQopt(b) }}, + {"positive: tc_hfsc_qopt", TcHfscQopt{Defcls: 0x10}, TcHfscQoptSizeCst, + func(b []byte) (any, error) { return DecodeTcHfscQopt(b) }}, + {"boundary: tc_service_curve at the u32 maxima", TcServiceCurve{M1: math.MaxUint32, D: math.MaxUint32, M2: 1}, + TcServiceCurveSizeCst, func(b []byte) (any, error) { return DecodeTcServiceCurve(b) }}, + {"positive: tc_mqprio_qopt", TcMqprioQopt{NumTc: 2, PrioTcMap: [16]uint8{0, 0, 1, 1}, Hw: 1, + Count: [16]uint16{4, 4}, Offset: [16]uint16{0, 4}}, TcMqprioQoptSizeCst, + func(b []byte) (any, error) { return DecodeTcMqprioQopt(b) }}, + {"corner: tc_cbs_qopt with negative credits and slope", TcCbsQopt{Offload: 1, Hicredit: 30, Locredit: math.MinInt32, + Idleslope: 20000, Sendslope: -980000}, TcCbsQoptSizeCst, func(b []byte) (any, error) { return DecodeTcCbsQopt(b) }}, + {"corner: tc_etf_qopt with a negative delta", TcEtfQopt{Delta: -1, Clockid: 11, Flags: 3}, TcEtfQoptSizeCst, + func(b []byte) (any, error) { return DecodeTcEtfQopt(b) }}, {"positive: tc_netem_gimodel", TcNetemGimodel{1, 2, 3, 4, 5}, TcNetemGimodelSizeCst, func(b []byte) (any, error) { return DecodeTcNetemGimodel(b) }}, {"positive: tc_netem_gemodel", TcNetemGemodel{1, 2, 3, 4}, TcNetemGemodelSizeCst, diff --git a/pkg/xtcpnl/xtcpnl_tc_swrite_test.go b/pkg/xtcpnl/xtcpnl_tc_swrite_test.go new file mode 100644 index 000000000..29113ffc0 --- /dev/null +++ b/pkg/xtcpnl/xtcpnl_tc_swrite_test.go @@ -0,0 +1,178 @@ +//go:build gotc_write + +package xtcpnl + +import ( + "encoding/binary" + "encoding/hex" + "testing" + + "golang.org/x/sys/unix" +) + +const tdTcswrite = "testdata/7_3_1/ws/tcswrite/" + +// tcSwriteCaptured is the first qdisc or class write in a tcswrite row's +// capture. +func tcSwriteCaptured(t testing.TB, id string) []byte { + t.Helper() + for _, m := range pcapNlMsgs(t, tdTcswrite+id+"/ip.pcap") { + if m.h.Flags&unix.NLM_F_REQUEST == 0 || !IsAdmittedWriteType(m.h.Type) { + continue + } + b := make([]byte, NlMsgHdrSizeCst, NlMsgHdrSizeCst+len(m.body)) + binary.LittleEndian.PutUint32(b[0:], uint32(NlMsgHdrSizeCst+len(m.body))) + binary.LittleEndian.PutUint16(b[4:], m.h.Type) + binary.LittleEndian.PutUint16(b[6:], m.h.Flags) + return append(b, m.body...) + } + t.Fatalf("%s: no tc write in the capture", id) + return nil +} + +// tcNest is a TCA_OPTIONS-style nest of type atype around fill. +func tcNest(atype uint16, fill func(*AttrBuilder) error) func(*AttrBuilder) error { + return func(ab *AttrBuilder) error { + m, err := ab.BeginNest(atype) + if err != nil { + return err + } + if err := fill(ab); err != nil { + return err + } + return ab.EndNest(m) + } +} + +// TestBuildTcSchedWrite is the increment-15 kinds' structs and nests, +// through BuildTcWriteRequest, against the requests tc sent for tcswrite +// rows (gotc 18P): each struct's Append and each nest's layout as tc's +// parser writes it (tc/q_{multiq,hfsc,ets,mqprio,cbs,etf}.c at v7.2.0). +// +// go test -tags gotc_write ./pkg/xtcpnl/ -run TestBuildTcSchedWrite +func TestBuildTcSchedWrite(t *testing.T) { + q := func(kind string, opts func(*AttrBuilder) error) TcWrite { + return TcWrite{MsgType: unix.RTM_NEWQDISC, Flags: tcAdd, Handle: 0x10000, Parent: tcRoot, Kind: kind, Opts: opts} + } + mq := TcMqprioQopt{NumTc: 2, PrioTcMap: [16]uint8{0, 0, 1, 1}, Count: [16]uint16{4, 4}, Offset: [16]uint16{0, 4}} + tests := []struct { + description string + id string + w TcWrite + }{ + {"positive: drr qdisc sends no TCA_OPTIONS", "ec-001", q("drr", nil)}, + {"positive: multiq sends a zeroed tc_multiq_qopt", "ec-009", q("multiq", tcOpts(TcMultiqQopt{}.Append(nil)))}, + {"positive: hfsc qdisc with no default", "ec-013", q("hfsc", tcOpts(TcHfscQopt{}.Append(nil)))}, + {"positive: hfsc default 10", "ec-014", q("hfsc", tcOpts(TcHfscQopt{Defcls: 0x10}.Append(nil)))}, + // ets: TCA_OPTIONS and its lists carry NLA_F_NESTED (K30); bands as a + // u8, the strict count only when nonzero. + {"corner: ets nests are flagged", "ec-018", q("ets", tcNest(TcaOptions|unix.NLA_F_NESTED, func(ab *AttrBuilder) error { + if err := ab.PutU8(TcaEtsNbands, 3); err != nil { + return err + } + if err := ab.PutU8(TcaEtsNstrict, 1); err != nil { + return err + } + if err := tcNest(TcaEtsQuanta|unix.NLA_F_NESTED, func(ab *AttrBuilder) error { + for _, v := range []uint32{1500, 3000} { + if err := ab.PutU32(TcaEtsQuantaBand, v); err != nil { + return err + } + } + return nil + })(ab); err != nil { + return err + } + return tcNest(TcaEtsPriomap|unix.NLA_F_NESTED, func(ab *AttrBuilder) error { + for _, v := range []uint8{2, 1, 0} { + if err := ab.PutU8(TcaEtsPriomapBand, v); err != nil { + return err + } + } + return nil + })(ab) + }))}, + // mqprio: TCA_OPTIONS is a compat nest; tc sets its rta_len from the + // aligned tail (q_mqprio.c:251), so the 82-byte header counts as 84. + {"boundary: mqprio header padded to RTA_ALIGN", "ec-025", q("mqprio", func(ab *AttrBuilder) error { + m, err := ab.BeginNestData(TcaOptions, mq.Append(nil)) + if err != nil { + return err + } + return ab.EndNest(m) + })}, + {"positive: cbs PARMS in a plain nest", "ec-034", q("cbs", tcNest(TcaOptions, func(ab *AttrBuilder) error { + return ab.PutBytes(TcaCbsParms, TcCbsQopt{Hicredit: 30, Locredit: -1470, Idleslope: 20000, Sendslope: -980000}.Append(nil)) + }))}, + // etf: CLOCK_TAI is 11; skip_sock_check is TC_ETF_SKIP_SOCK_CHECK (bit 2). + {"positive: etf PARMS in a hand-made nest", "ec-040", q("etf", tcNest(TcaOptions, func(ab *AttrBuilder) error { + return ab.PutBytes(TcaEtfParms, TcEtfQopt{Delta: 300000, Clockid: unix.CLOCK_TAI, Flags: 4}.Append(nil)) + }))}, + } + // hfsc class (ec-057): rt m1 2mbit d 10ms m2 1mbit, ls m2 3mbit; rates + // in bytes/s, d in us, RSC before FSC (q_hfsc.c:150-179). + hc := TcWrite{MsgType: unix.RTM_NEWTCLASS, Flags: tcAdd, Handle: 0x10010, Parent: 0x10000, Kind: "hfsc", Opts: tcHfscCurves} + tests = append(tests, struct { + description string + id string + w TcWrite + }{"positive: hfsc class curves in a plain nest", "ec-057", hc}) + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + want := tcSwriteCaptured(t, tc.id) + w := tc.w + w.Ifindex = tcCapturedIfindex(want) + got, err := BuildTcWriteRequest(&w, 0) + if err != nil { + t.Fatal(err) + } + if !tcSameRequest(got, want) { + t.Errorf("request differs\n got %s\nwant %s", hex.EncodeToString(got), hex.EncodeToString(want)) + } + }) + } +} + +// tcHfscCurves is ec-057's TCA_OPTIONS: RSC then FSC. +func tcHfscCurves(ab *AttrBuilder) error { + m, err := ab.BeginNest(TcaOptions) + if err != nil { + return err + } + if err := ab.PutBytes(TcaHfscRsc, TcServiceCurve{M1: 250000, D: 10000, M2: 125000}.Append(nil)); err != nil { + return err + } + if err := ab.PutBytes(TcaHfscFsc, TcServiceCurve{M2: 375000}.Append(nil)); err != nil { + return err + } + return ab.EndNest(m) +} + +// TestBuildTcSchedWriteAllocs pins an hfsc class request's allocations: +// the attribute buffer and the laid-out message, as for pfifo. +func TestBuildTcSchedWriteAllocs(t *testing.T) { + w := TcWrite{MsgType: unix.RTM_NEWTCLASS, Flags: tcAdd, Ifindex: 2, Handle: 0x10010, Parent: 0x10000, + Kind: "hfsc", Opts: tcHfscCurves} + n := testing.AllocsPerRun(100, func() { + if _, err := BuildTcWriteRequest(&w, 1); err != nil { + t.Fatal(err) + } + }) + if n > 2 { + t.Errorf("%v allocations per request, want at most 2", n) + } +} + +// BenchmarkBuildTcSchedWrite is ec-057's hfsc class add. +// +// go test -tags gotc_write ./pkg/xtcpnl/ -run '^$' -bench BuildTcSchedWrite -benchmem +func BenchmarkBuildTcSchedWrite(b *testing.B) { + w := TcWrite{MsgType: unix.RTM_NEWTCLASS, Flags: tcAdd, Ifindex: 2, Handle: 0x10010, Parent: 0x10000, + Kind: "hfsc", Opts: tcHfscCurves} + b.ReportAllocs() + for b.Loop() { + if _, err := BuildTcWriteRequest(&w, 1); err != nil { + b.Fatal(err) + } + } +} diff --git a/pkg/xtcpnl/xtcpnl_tc_write.go b/pkg/xtcpnl/xtcpnl_tc_write.go index 1f02d4eb6..ff7b25dbd 100644 --- a/pkg/xtcpnl/xtcpnl_tc_write.go +++ b/pkg/xtcpnl/xtcpnl_tc_write.go @@ -217,6 +217,19 @@ func (w *TcWrite) putStab(ab *AttrBuilder) error { return ab.EndNest(m) } +// BeginNestData is an attribute carrying data whose rta_len EndNest later +// stretches over every attribute after it, to the cursor. q_mqprio sends +// TCA_OPTIONS this way: addattr_l of tc_mqprio_qopt, then +// tail->rta_len = NLMSG_TAIL(n) - tail (tc/q_mqprio.c:216,251), so the +// 82-byte struct counts as its aligned 84 even with nothing after it. +func (a *AttrBuilder) BeginNestData(atype uint16, data []byte) (NestMark, error) { + start := a.n + if err := a.PutBytes(atype, data); err != nil { + return NestMark{}, err + } + return NestMark{off: start}, nil +} + // NestCompat is an open addattr_nest_compat: the outer attribute holding a // struct, and the empty nest after it. type NestCompat struct { From 8864660d5b11a5b6cf37ac49264c1df64ed70ce8 Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 22:53:41 -0800 Subject: [PATCH 3/9] test(xtcpnl): hfsc class row in the table literal (gotc 18P lint) Co-Authored-By: Claude Opus 5.5 --- pkg/xtcpnl/xtcpnl_tc_swrite_test.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/xtcpnl/xtcpnl_tc_swrite_test.go b/pkg/xtcpnl/xtcpnl_tc_swrite_test.go index 29113ffc0..5f5c5d7d9 100644 --- a/pkg/xtcpnl/xtcpnl_tc_swrite_test.go +++ b/pkg/xtcpnl/xtcpnl_tc_swrite_test.go @@ -54,6 +54,9 @@ func TestBuildTcSchedWrite(t *testing.T) { q := func(kind string, opts func(*AttrBuilder) error) TcWrite { return TcWrite{MsgType: unix.RTM_NEWQDISC, Flags: tcAdd, Handle: 0x10000, Parent: tcRoot, Kind: kind, Opts: opts} } + // hfsc class (ec-057): rt m1 2mbit d 10ms m2 1mbit, ls m2 3mbit; rates + // in bytes/s, d in us, RSC before FSC (q_hfsc.c:150-179). + hc := TcWrite{MsgType: unix.RTM_NEWTCLASS, Flags: tcAdd, Handle: 0x10010, Parent: 0x10000, Kind: "hfsc", Opts: tcHfscCurves} mq := TcMqprioQopt{NumTc: 2, PrioTcMap: [16]uint8{0, 0, 1, 1}, Count: [16]uint16{4, 4}, Offset: [16]uint16{0, 4}} tests := []struct { description string @@ -108,15 +111,8 @@ func TestBuildTcSchedWrite(t *testing.T) { {"positive: etf PARMS in a hand-made nest", "ec-040", q("etf", tcNest(TcaOptions, func(ab *AttrBuilder) error { return ab.PutBytes(TcaEtfParms, TcEtfQopt{Delta: 300000, Clockid: unix.CLOCK_TAI, Flags: 4}.Append(nil)) }))}, + {"positive: hfsc class curves in a plain nest", "ec-057", hc}, } - // hfsc class (ec-057): rt m1 2mbit d 10ms m2 1mbit, ls m2 3mbit; rates - // in bytes/s, d in us, RSC before FSC (q_hfsc.c:150-179). - hc := TcWrite{MsgType: unix.RTM_NEWTCLASS, Flags: tcAdd, Handle: 0x10010, Parent: 0x10000, Kind: "hfsc", Opts: tcHfscCurves} - tests = append(tests, struct { - description string - id string - w TcWrite - }{"positive: hfsc class curves in a plain nest", "ec-057", hc}) for _, tc := range tests { t.Run(tc.description, func(t *testing.T) { want := tcSwriteCaptured(t, tc.id) From 048e0864559c3413726840c1991671e590fa814e Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 23:07:28 -0800 Subject: [PATCH 4/9] feat(gotc): qdisc and class writes for the increment-15 kinds (gotc 18W) parse_qopt for drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs and etf, and parse_copt for drr, qfq, hfsc and ets, line for line from v7.2.0. All 114 tcswrite rows replay byte for byte; tdc matches 273 writes (100 of these kinds' 101; W26 is known). W26, W28, W29 and W38, where tc overruns memory or crashes, are refused by name (V044). Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gotc-status.md | 3 + internal/gotc/corpus_test.go | 9 +- internal/gotc/qw_ets.go | 244 +++++++++++++++++++++ internal/gotc/qw_hfsc.go | 306 ++++++++++++++++++++++++++ internal/gotc/qw_mqprio.go | 308 ++++++++++++++++++++++++++ internal/gotc/qw_sched.go | 309 ++++++++++++++++++++++++++ internal/gotc/qw_sched_test.go | 204 +++++++++++++++++ internal/gotc/qw_taprio.go | 365 +++++++++++++++++++++++++++++++ internal/gotc/qwrite.go | 15 +- internal/gotc/qwrite_tdc_test.go | 14 +- internal/gotc/qwrite_test.go | 2 - 11 files changed, 1769 insertions(+), 10 deletions(-) create mode 100644 internal/gotc/qw_ets.go create mode 100644 internal/gotc/qw_hfsc.go create mode 100644 internal/gotc/qw_mqprio.go create mode 100644 internal/gotc/qw_sched.go create mode 100644 internal/gotc/qw_sched_test.go create mode 100644 internal/gotc/qw_taprio.go diff --git a/docs/netlink/gotc-status.md b/docs/netlink/gotc-status.md index 1187c35da..d25d9315b 100644 --- a/docs/netlink/gotc-status.md +++ b/docs/netlink/gotc-status.md @@ -236,6 +236,8 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr readback. Two batches on one boot agree on every row (V042). - **18P (encoders): done.** `Append` for the multiq, hfsc, mqprio, cbs and etf structs, plus `BeginNestData` for mqprio's stretched TCA_OPTIONS; nine requests equal tc's captured bytes (V043). +- **18W (writes): done.** parse_qopt for the nine kinds and parse_copt for drr, qfq, hfsc and ets; all 114 tcswrite + rows replay byte for byte, and 100 of tdc's 101 rows for these kinds now match (the other is W26) (V044). ## Ledger @@ -290,6 +292,7 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr | V041 | 17W | **Review fix (PR 356):** `cStrtod` dropped strtod's ERANGE on a hex float, so `0x1p1024` passed get_time and get_rate64 as an integer conversion of infinity: gotc sent where tc says `Illegal "target"` (fq_codel), `Illegal "latency"`/`"rate"` (netem) and `Illegal "timer_slack"` (fq), each rc 1. `hexFloat` now reports the overflow and `cStrtod` returns it, as the decimal path does. `inf` stays no ERANGE. Pinned by `TestCStrtod` (hex overflow ±, `0x1p1023` the largest power) and `TestGotcHexOverflow` (the four commands: rc 1, tc's stderr, no request). | | V042 | 18C | **Captures** `tcswrite`: `tools/nlcapgen/matrix_tcswrite.go` (+ `TestTcSwriteSpace`), rows in `nix/microvms/workbench/tcswrite.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/` (114 rows, 2.8M). Devices: d0 (one queue) and d1 (8 tx queues, for multiq, mqprio and taprio). **Rows:** every add body of the nine kinds (hfsc with and without `default`; ets bands/strict/quanta/priomap in four shapes; software mqprio; taprio with cycle-time and extension, txtime-assist flags and delay, H and R entries with `max-sdu 0 0`; cbs with `offload 0`; etf with delta, `skip_sock_check` and `deadline_mode`), then change, replace and delete on each; drr, qfq and hfsc classes (quantum, weight/maxpkt, rt/ls/sc/ul in the m1/d/m2 and umax/dmax/rate forms) with change, replace and delete; ets class change and replace; a three-line hfsc batch. **Leads pinned:** W27 (ets `priomap 256` is sent as band 0), W3 in ets, hfsc, cbs, etf and taprio, W39 (`umax 5000`), W40 (`umax 100000 dmax 1us rate 1kbit` is accepted), W41 (`rt ... sc ...` accepted; `rt m1 bogus` prints two errors). **Refusals (45):** drr, qfq, multiq, hfsc, ets and cbs parse errors (rc 1); W33 (`mqprio bogus` and W31's `hw 0 mode channel` exit 255 through invarg, against `num_tc x`'s rc 1); W30 (`queues` twice: the pair-count error); W31's `mode channel hw 0` sent and refused by the kernel (EINVAL); W32 (one `min_rate` for two classes sent, EINVAL: no offload); W34 (a bad `base-time` or `cycle-time` sends no entries: `There should be at least one entry`, EINVAL); W35 (`flags zz`: rc 1, no message; `taprio bogus`: a bare `Unknown argument`); W36 (no num_tc: map and queues dropped, `'mqprio' configuration is necessary`); W16 (hfsc `m2 40gbit`) and W9 (`10%` on a dummy); the kernel's drr quantum 0, ets strict-band quantum, mqprio hw default, taprio on a single-queue device (ENOTSUP), no clockid, max-sdu over the MTU (ERANGE), cbs and etf offload (ENOTSUP); and mqprio and etf change/replace (EINVAL, K31). **K46 (new):** a kind with no kernel change op fails only when the request carries `TCA_OPTIONS` (sch_api.c `qdisc_change`), so `qdisc change`/`replace` of an optionless drr, qfq or multiq succeeds. Every expectation was first checked against the host's tc 7.2.0 in an unprivileged netns (kernel 7.3.3), twice, with identical output. **Gate:** pre-checked (`free -g`, port 12061 free, no workbench process), booted, two batches on one boot, 114/114 OK each, with stdout, stderr, rc and every readback identical. **VM:** the 15 modules the run added were removed with `modprobe -r` (lsmod back to the 86-module baseline); no namespace, no core files; powered off with `down`. | | V043 | 18P | **Encoders**: `Append` on `TcMultiqQopt`, `TcHfscQopt`, `TcServiceCurve`, `TcMqprioQopt` (82 bytes), `TcCbsQopt` (offload then 3 pad bytes) and `TcEtfQopt` (`pkg/xtcpnl/xtcpnl_tc_qencode.go`, cited to pkt_sched.h), each round-tripped through its 15P decoder (`TestTcQencodeRoundTrip`). New `AttrBuilder.BeginNestData`: q_mqprio sets TCA_OPTIONS's rta_len from the aligned tail (q_mqprio.c:216,251), so the struct counts as 84 bytes and the MODE/SHAPER/TC_ENTRY/rate attributes sit inside it; not `addattr_nest_compat`, which adds an inner header. `TestBuildTcSchedWrite` (gotc_write) builds nine requests through `BuildTcWriteRequest` and compares them byte for byte with the tcswrite captures: drr (no options, ec-001), multiq (ec-009), hfsc without and with `default 10` (ec-013/014), ets with flagged TCA_OPTIONS/QUANTA/PRIOMAP nests, NBANDS as u8 and NSTRICT (ec-018), mqprio (ec-025, the 84-byte boundary), cbs PARMS in a nest (ec-034), etf with CLOCK_TAI and `skip_sock_check` = bit 2 (ec-040), and an hfsc class with RSC then FSC (ec-057). `TestBuildTcSchedWriteAllocs` pins 2 allocations; `BenchmarkBuildTcSchedWrite` runs at about 57 µs per request, the same cost as 17P's pfifo benchmark (the framework's request buffer dominates). | +| V044 | 18W | **Writes**: `internal/gotc/qw_sched.go` (drr, qfq, multiq, cbs, etf, and `get_clockid`), `qw_hfsc.go`, `qw_ets.go`, `qw_mqprio.go`, `qw_taprio.go` (with a base-10 `get_s64`), registered in `qoptParsers` and, for drr/qfq/hfsc/ets, `coptParsers`. Each follows its C parser at v7.2.0: messages, the `invarg` exit 255 (W33, W31's `hw 0 mode channel`), the W3 nonzero duplicate checks, W27 (an ets priomap band narrowed to u8 before the bound check), W30 (`queues` twice sums the pairs), W32 (too few rates pass when a word follows), W34 (a bad base-time/cycle-time breaks out silently and sends the rest unread), W35 (`flags zz`: no message; an unknown word: a bare `Unknown argument`), W39 (hfsc `umax*10^6` in 32 bits), W40 (the concave m1 converted as x86 does), W41 (sc1's message, then sc2's attempt, then `HFSC: Illegal "rt"`). **Refused by name** (`not implemented`): W26 (a 17th ets quantum: tc writes past `quanta[16]`), W28 (more than 16 mqprio fp entries: tc reads past `fp[16]`), W29 (the same for taprio's fp and max-sdu), W38 (an hfsc convex curve at rate 0: SIGFPE). **Corpus:** `TestGotcCorpus` now replays `tcswrite` (114 rows, gotc_write) and sends tcsched ng-001..004; 1181 tc rows pass in both builds. **tdc:** `tdcWritesSent` 173 → 273; the nine kinds leave `tdcWriteSkips`; `tdc/qdiscs/ets/65b6` (17 quanta, W26) is in `tdcWriteKnown`. **Tests:** `TestGotcSchedWrite` (34 rows: the leads, with bytes for W27 and W39, and each kind's edges), `TestGetClockid`, `TestGetS64Strtok`. **Mutants:** 8 of 8 killed, each run alone (`systemd-run --user --scope -p MemoryMax=6G`, `-timeout=180s`): priomap not narrowed (ec-066, W27 row), hfsc d in 64 bits (ec-072, W39 row), mqprio not stretched (ec-025, tcsched ng-001), ets nest unflagged (ec-018..020), a base-time message printed (ng-025/026, W34 row), invarg returning 1 (ng-016/018, W33 row), cbs credits unsigned (ec-034/035, tcsched ng-003), W26 not refused (W26 row). `internal/gotc` coverage 84.6% (gotc_write). | | DOC009 | 16B | **Write-up:** `docs/netlink/upstream/iproute2-tc-aqm.md`: status header, reachability, contents, 24 summary rows, six sections, and K32–K43. Not submitted to netdev. **At HEAD** (GitHub mirror, `5d13122576d6`, 2026-11-26): none of the thirteen printers, `tc_red.c`, `tc_qevent.c` or `tc_qdisc.c` has a commit since v7.2.0, so all are present. **Confirmed in the corpus:** Q66 (ec-007), Q73 (ec-021, pw-021), Q79 (ec-038), Q80/Q81 (pw-035, ec-040, pw-040, pw-042), Q83 (pw-052), Q84 (pw-052, ec-055, pw-055), Q86 (ec-053), Q87 (ec-001, pw-005). **Latent, with unit rows:** Q67–Q72, Q74–Q78, Q82, Q85, Q88, Q89. **Dropped:** none. **New leads:** Q88 (gred_parse_vqs's plain parse_rtattr misses a VQ_ENTRY flagged NLA_F_NESTED), Q89 (an unknown dualpi2 ECN mask warns twice and prints an empty word). **Kernel notes:** K32–K42 confirmed at v7.4-rc4, refined: red's qevents only when bound; idle cake MIN_NETLEN 65535; cake_mq no dump_stats; plug no .dump; skbprio 64 classes; dualpi2 rejects both step_thresh forms (sch_dualpi2.c:812). **K43 (new):** codel times lose 1 µs (target 4ms dumps 3999, pw-024). **Unit rows:** TestGotcAqm adds Q88 (44 rows). **Bug classes:** none new; Q88 and Q89 fit C3/C15 and C10. | | DOC010 | 17B | **Write-up:** `docs/netlink/upstream/iproute2-tc-write.md`: status header, reachability, contents, 25 summary rows, eight sections, K44–K45. Not submitted to netdev. **At HEAD** (GitHub mirror, `35033e4713fe`, 2026-11-27): no tc file in scope has a commit since v7.2.0; `lib/utils.c`'s one (`552d9842b1f4`, resolve_address's cache) touches none of it, so all are present. **Confirmed in the corpus:** W1 (ec-088, ec-099), W2 (ec-079, ng-011), W3 (ec-089), W4 (ng-004, ng-005, ng-019), W9 (ng-013), W17 (ec-092), W22 (ec-062). **Latent, with unit rows:** W5, W6, W8, W10–W16, W18–W21, W23–W25. **Dropped:** W7. **Kernel notes:** K44 (each verb's errno and extack, ng-001–003, 007, 014, 020–025), K45 (extack errors and warnings printed in place of RTNETLINK answers). **Bug classes:** candidates for the user: a wrong option named in a copied error message (W15, W20) and a divide by a user-given zero (W21). | | V033 | 16C | **Captures** `tcaqm`: `tools/nlcapgen/matrix_tcaqm.go` (+ `TestTcAqmSpace`), rows in `nix/microvms/workbench/tcaqm.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcaqm/` (132 rows, 2.7M). Modules: sch_cake (with cake_mq), sch_choke, sch_codel, sch_dualpi2, sch_fq_pie, sch_gred, sch_hhf, sch_pie, sch_plug, sch_red, sch_sfb, sch_skbprio. **Fixtures (26):** red default and `ecn harddrop adaptive qevent early_drop block 10`; choke with ecn; gred `setup vqs 4 default 0 grio` with VQs 0 and 1 changed in, and gred with no VQ configured; sfb default and `rehash 5000000 db 5000000` (Q73); codel, pie, fq_pie and hhf defaults plus an option variant each; cake default, plus four variants covering every diffserv mode, the flow modes, nat/wash/ingress, both ack-filters, no-split-gso, rtt, atm overhead mpu, memlimit, fwmark 0xff, autorate-ingress and docsis; cake_mq on a four-queue dummy; dualpi2 default, step_thresh in packets with drop_enqueue/drop_on_overload/any_ect/no_split_gso, and step_thresh in time; plug; skbprio (with `class show`). Each gets `qdisc show` plus `-s`/`-d`/`-o` forms; batches: cake `-s` qdisc/class/qdisc and red `-d` twice. **Refusals:** ng-001 cake_mq under plug (ENOTSUP, "Parent qdisc is not classful"), ng-002 cake_mq autorate-ingress (ENOTSUP, K39), ng-003 gred change over plug (EINVAL), ng-004 `show dev nosuch` (rc 1). **Notes:** batch lines take no options, so the batches pass `-s`/`-d` on tc's own command line; hhf's `admit_bytes 64Kb` is not accepted, so the fixture uses 65536. Q66 is confirmed live (`Scell_log 15qevent early_drop block 10`), and Q73 (sfb prints `rehash 705s`), Q80, Q81, Q83 and Q84 show in the captures. misspell flags dualpi2's `any_ect`; a scoped exclusion in both golangci configs covers the tcaqm and dualpi2 files. **Gate:** two batches on one boot, 132/132 OK, stdout, stderr and rc identical; `TestTcAqmSpace` pins 132 rows, 26 fixtures and 21 cases; no row sends packets. | diff --git a/internal/gotc/corpus_test.go b/internal/gotc/corpus_test.go index a422fa946..43bbde047 100644 --- a/internal/gotc/corpus_test.go +++ b/internal/gotc/corpus_test.go @@ -38,8 +38,11 @@ var corpusRefused = map[string]string{ } // qwriteSent are the corpusWrites rows the gotc_write build sends and -// matches (17W). -var qwriteSent = map[string]bool{"tcqdisc/ng-018": true, "tcclass/ng-011": true} +// matches (17W, 18W). +var qwriteSent = map[string]bool{ + "tcqdisc/ng-018": true, "tcclass/ng-011": true, + "tcsched/ng-001": true, "tcsched/ng-002": true, "tcsched/ng-003": true, "tcsched/ng-004": true, +} var corpusWrites = map[string]bool{ "tcqdisc/ng-018": true, "tcclass/ng-011": true, "tcfilter/ng-024": true, "tcflower/ng-009": true, @@ -234,6 +237,8 @@ func TestGotcCorpus(t *testing.T) { if writesBuilt { spaces = append(spaces, "tcqwrite") corpusRows["tcqwrite"] = 125 + spaces = append(spaces, "tcswrite") + corpusRows["tcswrite"] = 114 } for _, sp := range spaces { more, err := filepath.Glob("../../pkg/xtcpnl/testdata/*/ws/" + sp) diff --git a/internal/gotc/qw_ets.go b/internal/gotc/qw_ets.go new file mode 100644 index 000000000..c8500ae43 --- /dev/null +++ b/internal/gotc/qw_ets.go @@ -0,0 +1,244 @@ +//go:build gotc_write + +package gotc + +import ( + "fmt" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/q_ets.c ets_parse_opt and ets_parse_copt at iproute2 v7.2.0. + +func (r *runner) etsExplain() { + r.errf("Usage: ... ets [bands NUMBER] [strict NUMBER] [quanta Q1 Q2...] [priomap P1 P2...]\n") +} + +// etsQuantum is parse_quantum: 0 is its failure, after the message. +func (r *runner) etsQuantum(a string) uint32 { + q, ok := getUnsigned(a, 10) + if !ok { + r.errf("Illegal \"quanta\" element\n") + return 0 + } + if q == 0 { + r.errf("\"quanta\" must be > 0\n") + } + return q +} + +// etsNbands is parse_nbands. +func (r *runner) etsNbands(a, what string) (uint8, bool) { + v, ok := getUnsigned(a, 10) + if !ok { + r.errf("Illegal \"%s\"\n", what) + return 0, false + } + if v > xtcpnl.TcqEtsMaxBandsCst { + r.errf("The number of \"%s\" must be <= %d\n", what, xtcpnl.TcqEtsMaxBandsCst) + return 0, false + } + return uint8(v), true +} + +// etsArgs is ets_parse_opt's locals. +type etsArgs struct { + nbands, nstrict uint8 + quantaMode, prioMode bool + quanta []uint32 + priomap []uint8 +} + +// etsWord is one turn of ets_parse_opt's loop on a word that is not a +// keyword (or follows quanta/priomap): a quantum or a priomap band. A +// band is a u32 stored in a __u8, so 256 passes the bound check as 0 +// (W27); a 17th quantum overruns tc's quanta[16] (W26): gotc refuses it. +func (r *runner) etsWord(e *etsArgs, a string) error { + switch { + case e.quantaMode: + q := r.etsQuantum(a) + if q == 0 { + return errKindParse + } + if len(e.quanta) == xtcpnl.TcqEtsMaxBandsCst { + return fmt.Errorf("%w: ets with more than %d quanta (tc writes past quanta[%d])", + errNotImplemented, xtcpnl.TcqEtsMaxBandsCst, xtcpnl.TcqEtsMaxBandsCst) + } + e.quanta = append(e.quanta, q) + case e.prioMode: + band, ok := getUnsigned(a, 10) + if !ok { + r.errf("Illegal \"priomap\" element\n") + return errKindParse + } + if len(e.priomap) > tcPrioMax { + r.errf("\"priomap\" index cannot be higher than %d\n", tcPrioMax) + return errKindParse + } + e.priomap = append(e.priomap, uint8(band&0xff)) + default: + r.errf("What is \"%s\"?\n", a) + r.etsExplain() + return errKindParse + } + return nil +} + +// parseEtsQopt is ets_parse_opt. The duplicate checks are on a nonzero +// count (W3). +func parseEtsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + var e etsArgs + for ; len(args) > 0; args = args[1:] { + a := args[0] + var err error + switch a { + case wordBands, "strict": + if (a == wordBands && e.nbands != 0) || (a == "strict" && e.nstrict != 0) { + r.errf("Duplicate \"%s\"\n", a) + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + v, ok := r.etsNbands(args[0], a) + if !ok { + return nil, errKindParse + } + if a == wordBands { + e.nbands = v + } else { + e.nstrict = v + } + e.prioMode, e.quantaMode = false, false + case "quanta", "priomap": + if (a == "quanta" && len(e.quanta) != 0) || (a == "priomap" && len(e.priomap) != 0) { + r.errf("Duplicate \"%s\"\n", a) + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + e.quantaMode, e.prioMode = a == "quanta", a == "priomap" + err = r.etsWord(&e, args[0]) + case helpWord: + r.etsExplain() + return nil, errKindParse + default: + err = r.etsWord(&e, a) + } + if err != nil { + return nil, err + } + } + if e.nbands == 0 { + e.nbands = uint8(len(e.quanta)) + e.nstrict + } + if e.nbands == 0 { + r.errf("One of \"bands\", \"quanta\" or \"strict\" needs to be specified\n") + r.etsExplain() + return nil, errKindParse + } + if int(e.nstrict)+len(e.quanta) > int(e.nbands) { + r.errf("Not enough total bands to cover all the strict bands and quanta\n") + r.etsExplain() + return nil, errKindParse + } + for _, p := range e.priomap { + if p >= e.nbands { + r.errf("\"priomap\" element is out of bounds\n") + return nil, errKindParse + } + } + return e.attrs, nil +} + +// attrs is ets_parse_opt's TCA_OPTIONS: flagged nests (K30), NBANDS as a +// u8, NSTRICT only when nonzero. +func (e *etsArgs) attrs(ab *xtcpnl.AttrBuilder) error { + tail, err := ab.BeginNest(xtcpnl.TcaOptions | unix.NLA_F_NESTED) + if err != nil { + return err + } + if err := ab.PutU8(xtcpnl.TcaEtsNbands, e.nbands); err != nil { + return err + } + if e.nstrict != 0 { + if err := ab.PutU8(xtcpnl.TcaEtsNstrict, e.nstrict); err != nil { + return err + } + } + if len(e.quanta) != 0 { + nest, err := ab.BeginNest(xtcpnl.TcaEtsQuanta | unix.NLA_F_NESTED) + if err != nil { + return err + } + for _, q := range e.quanta { + if err := ab.PutU32(xtcpnl.TcaEtsQuantaBand, q); err != nil { + return err + } + } + if err := ab.EndNest(nest); err != nil { + return err + } + } + if len(e.priomap) != 0 { + nest, err := ab.BeginNest(xtcpnl.TcaEtsPriomap | unix.NLA_F_NESTED) + if err != nil { + return err + } + for _, p := range e.priomap { + if err := ab.PutU8(xtcpnl.TcaEtsPriomapBand, p); err != nil { + return err + } + } + if err := ab.EndNest(nest); err != nil { + return err + } + } + return ab.EndNest(tail) +} + +// parseEtsCopt is ets_parse_copt: a flagged TCA_OPTIONS, with +// TCA_ETS_QUANTA_BAND when a quantum is given. +func parseEtsCopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + cexplain := func() { r.errf("Usage: ... ets [quantum Q1]\n") } + var quantum uint32 + for ; len(args) > 0; args = args[1:] { + switch a := args[0]; a { + case wordQuantum: + if quantum != 0 { + r.errf("Duplicate \"quantum\"\n") + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if quantum = r.etsQuantum(args[0]); quantum == 0 { + return nil, errKindParse + } + case helpWord: + cexplain() + return nil, errKindParse + default: + r.errf("What is \"%s\"?\n", a) + cexplain() + return nil, errKindParse + } + } + return func(ab *xtcpnl.AttrBuilder) error { + tail, err := ab.BeginNest(xtcpnl.TcaOptions | unix.NLA_F_NESTED) + if err != nil { + return err + } + if quantum != 0 { + if err := ab.PutU32(xtcpnl.TcaEtsQuantaBand, quantum); err != nil { + return err + } + } + return ab.EndNest(tail) + }, nil +} diff --git a/internal/gotc/qw_hfsc.go b/internal/gotc/qw_hfsc.go new file mode 100644 index 000000000..cd4727d1e --- /dev/null +++ b/internal/gotc/qw_hfsc.go @@ -0,0 +1,306 @@ +//go:build gotc_write + +package gotc + +import ( + "fmt" + "math" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// tc/q_hfsc.c hfsc_parse_opt, hfsc_parse_class_opt and hfsc_get_sc at +// iproute2 v7.2.0. + +func (r *runner) hfscExplainQdisc() { + r.errf("Usage: ... hfsc [ default CLASSID ]\n" + + "\n" + + " default: default class for unclassified packets\n") +} + +func (r *runner) hfscExplainClass() { + r.errf("Usage: ... hfsc [ [ rt SC ] [ ls SC ] | [ sc SC ] ] [ ul SC ]\n" + + "\n" + + "SC := [ [ m1 BPS ] d SEC ] m2 BPS\n" + + "\n" + + " m1 : slope of first segment\n" + + " d : x-coordinate of intersection\n" + + " m2 : slope of second segment\n" + + "\n" + + "Alternative format:\n" + + "\n" + + "SC := [ [ umax BYTE ] dmax SEC ] rate BPS\n" + + "\n" + + " umax : maximum unit of work\n" + + " dmax : maximum delay\n" + + " rate : rate\n" + + "\n" + + "Remarks:\n" + + " - at least one of 'rt', 'ls' or 'sc' must be specified\n" + + " - 'ul' can only be specified with 'ls' or 'sc'\n" + + "\n") +} + +func (r *runner) hfscExplain1(arg string) { r.errf("HFSC: Illegal \"%s\"\n", arg) } + +// parseHfscQopt is hfsc_parse_opt: default is get_u16 base 16, its +// duplicate check on a nonzero value (W3). TCA_OPTIONS is always sent. +func parseHfscQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + var q xtcpnl.TcHfscQopt + for ; len(args) > 0; args = args[1:] { + switch a := args[0]; { + case matches(a, "default"): + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if q.Defcls != 0 { + r.errf("HFSC: Double \"default\"\n") + return nil, errKindParse + } + v, ok := getU16(args[0], 16) + if !ok { + r.hfscExplain1("default") + return nil, errKindParse + } + q.Defcls = v + case matches(a, helpWord): + r.hfscExplainQdisc() + return nil, errKindParse + default: + r.errf("HFSC: What is \"%s\" ?\n", a) + r.hfscExplainQdisc() + return nil, errKindParse + } + } + return func(ab *xtcpnl.AttrBuilder) error { + var b [xtcpnl.TcHfscQoptSizeCst]byte + return ab.PutBytes(xtcpnl.TcaOptions, q.Append(b[:0])) + }, nil +} + +// parseHfscCopt is hfsc_parse_class_opt. rt, ls, sc and ul may repeat, +// the last one winning (W41); sc sets both rt and ls. +func parseHfscCopt(r *runner, args []string, dev string) (func(*xtcpnl.AttrBuilder) error, error) { + var rsc, fsc, usc xtcpnl.TcServiceCurve + var rscOK, fscOK, uscOK bool + for ; len(args) > 0; args = args[1:] { + a := args[0] + var sc *xtcpnl.TcServiceCurve + var name string + switch { + case matches(a, "rt"): + sc, name = &rsc, "rt" + case matches(a, "ls"): + sc, name = &fsc, "ls" + case matches(a, "sc"): + sc, name = &rsc, "sc" + case matches(a, "ul"): + sc, name = &usc, "ul" + case matches(a, helpWord): + r.hfscExplainClass() + return nil, errKindParse + default: + r.errf("HFSC: What is \"%s\" ?\n", a) + r.hfscExplainClass() + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + rest, err := r.hfscGetSc(args[1:], sc, dev) + if err != nil { + if err == errKindParse { + r.hfscExplain1(name) + } + return nil, err + } + args = rest + switch name { + case "rt": + rscOK = true + case "ls": + fscOK = true + case "sc": + fsc, rscOK, fscOK = rsc, true, true + default: + uscOK = true + } + } + if !rscOK && !fscOK && !uscOK { + r.errf("HFSC: no parameters given\n") + r.hfscExplainClass() + return nil, errKindParse + } + if uscOK && !fscOK { + r.errf("HFSC: Upper-limit Service Curve without Link-Share Service Curve\n") + r.hfscExplainClass() + return nil, errKindParse + } + return func(ab *xtcpnl.AttrBuilder) error { + m, err := ab.BeginNest(xtcpnl.TcaOptions) + if err != nil { + return err + } + for _, c := range []struct { + ok bool + t uint16 + sc xtcpnl.TcServiceCurve + }{{rscOK, xtcpnl.TcaHfscRsc, rsc}, {fscOK, xtcpnl.TcaHfscFsc, fsc}, {uscOK, xtcpnl.TcaHfscUsc, usc}} { + if !c.ok { + continue + } + var b [xtcpnl.TcServiceCurveSizeCst]byte + if err := ab.PutBytes(c.t, c.sc.Append(b[:0])); err != nil { + return err + } + } + return ab.EndNest(m) + }, nil +} + +// hfscGetSc is hfsc_get_sc: the m1/d/m2 form, else the umax/dmax/rate form +// from the same word, then the two-zero-slopes check. args[0] is the +// curve's first word; on success the returned args[0] is its last. +func (r *runner) hfscGetSc(args []string, sc *xtcpnl.TcServiceCurve, dev string) ([]string, error) { + rest, err := r.hfscGetSc1(args, sc, dev) + if err == errKindParse { + rest, err = r.hfscGetSc2(args, sc, dev) + } + if err != nil { + return nil, err + } + if sc.M1 == 0 && sc.M2 == 0 { + r.errf("HFSC: Service Curve has two zero slopes\n") + return nil, errKindParse + } + return rest, nil +} + +// hfscRate is the m1, m2 and rate values: a '%' is get_percent_rate. +func (r *runner) hfscRate(name, v, dev string) (uint32, bool) { + var rate uint32 + var ok bool + if strings.Contains(v, "%") { + rate, ok = r.getPercentRate(v, dev) + } else { + rate, ok = getRate(v) + } + if !ok { + r.hfscExplain1(name) + } + return rate, ok +} + +// time2ktime is tc_core.c tc_core_time2ktime: time * clock_factor, a +// double, into an unsigned int. +func (r *runner) time2ktime(t uint32) uint32 { return cDoubleToU32(float64(t) * r.core.clockFactor) } + +// hfscGetSc1 is hfsc_get_sc1. NEXT_ARG exits (incomplete) even when the +// other form would have parsed the words. +func (r *runner) hfscGetSc1(args []string, sc *xtcpnl.TcServiceCurve, dev string) ([]string, error) { + var m1, d, m2 uint32 + var ok bool + if matches(args[0], "m1") { + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if m1, ok = r.hfscRate("m1", args[0], dev); !ok { + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + } + if matches(args[0], "d") { + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if d, ok = getTime(args[0]); !ok { + r.hfscExplain1("d") + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + } + if !matches(args[0], "m2") { + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if m2, ok = r.hfscRate("m2", args[0], dev); !ok { + return nil, errKindParse + } + *sc = xtcpnl.TcServiceCurve{M1: m1, D: r.time2ktime(d), M2: m2} + return args, nil +} + +// hfscGetSc2 is hfsc_get_sc2. Its arithmetic is C's: umax * +// TIME_UNITS_PER_SEC in 32 bits (W39), a concave m1 converted from a +// double with no range check (W40). A convex curve at rate 0 divides by +// zero (SIGFPE in tc, W38): gotc refuses it. +func (r *runner) hfscGetSc2(args []string, sc *xtcpnl.TcServiceCurve, dev string) ([]string, error) { + var umax, dmax, rate uint32 + var ok bool + if matches(args[0], "umax") { + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if umax, ok = getSize(args[0]); !ok { + r.hfscExplain1("umax") + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + } + if matches(args[0], "dmax") { + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if dmax, ok = getTime(args[0]); !ok { + r.hfscExplain1("dmax") + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + } + if !matches(args[0], wordRate) { + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if rate, ok = r.hfscRate(wordRate, args[0], dev); !ok { + return nil, errKindParse + } + if umax != 0 && dmax == 0 { + r.errf("HFSC: umax given but dmax is zero.\n") + return nil, errKindParse + } + if dmax != 0 { + if m1 := math.Ceil(float64(umax) * timeUnitsPerSec / float64(dmax)); m1 > float64(rate) { + *sc = xtcpnl.TcServiceCurve{M1: cDoubleToU32(m1), D: r.time2ktime(dmax), M2: rate} + return args, nil + } + } + if rate == 0 { + return nil, fmt.Errorf("%w: hfsc convex curve at rate 0 (tc divides by it, SIGFPE)", errNotImplemented) + } + *sc = xtcpnl.TcServiceCurve{D: r.time2ktime(dmax - umax*timeUnitsPerSec/rate), M2: rate} + return args, nil +} diff --git a/internal/gotc/qw_mqprio.go b/internal/gotc/qw_mqprio.go new file mode 100644 index 000000000..fc83e1ba5 --- /dev/null +++ b/internal/gotc/qw_mqprio.go @@ -0,0 +1,308 @@ +//go:build gotc_write + +package gotc + +import ( + "fmt" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/q_mqprio.c mqprio_parse_opt at iproute2 v7.2.0. + +// pkt_sched.h's mqprio and frame-preemption values. +const ( + mqprioModeChannel = 1 // TC_MQPRIO_MODE_CHANNEL; TC_MQPRIO_MODE_DCB is 0 + mqprioShaperBwRate = 1 // TC_MQPRIO_SHAPER_BW_RATE; TC_MQPRIO_SHAPER_DCB is 0 + mqprioFMode = 0x1 + mqprioFShaper = 0x2 + mqprioFMinRate = 0x4 + mqprioFMaxRate = 0x8 + tcFpExpress = 1 + tcFpPreemptible = 2 +) + +func (r *runner) mqprioExplain() { + r.errf("Usage: ... mqprio\t[num_tc NUMBER] [map P0 P1 ...]\n" + + "\t\t\t[queues count1@offset1 count2@offset2 ...] " + + "[hw 1|0]\n" + + "\t\t\t[fp FP0 FP1 FP2 ...]\n" + + "\t\t\t[mode dcb|channel]\n" + + "\t\t\t[shaper bw_rlimit SHAPER_PARAMS]\n" + + "Where: SHAPER_PARAMS := { min_rate MIN_RATE1 MIN_RATE2 ...|\n" + + "\t\t\t max_rate MAX_RATE1 MAX_RATE2 ... }\n") +} + +// mqprioArgs is mqprio_parse_opt's locals. +type mqprioArgs struct { + opt xtcpnl.TcMqprioQopt + minRate, maxRate [xtcpnl.TcQoptMaxQueueCst]uint64 + shaper, mode uint16 + fp [xtcpnl.TcQoptMaxQueueCst]uint32 + haveTcEntries bool + cntOffPairs int + numFp uint32 + flags uint32 +} + +// strtokAt is strtok(s, "@") then strtok(NULL, "@"): the first two runs +// of non-'@' bytes; ok2 false is the second strtok's NULL. +func strtokAt(s string) (tok1 string, ok1 bool, tok2 string, ok2 bool) { + var toks []string + for _, t := range strings.Split(s, "@") { + if t != "" { + toks = append(toks, t) + } + } + switch len(toks) { + case 0: + return "", false, "", false + case 1: + return toks[0], true, "", false + } + return toks[0], true, toks[1], true +} + +// mqprioList is one of the inner loops (map, queues, fp, min_rate, +// max_rate): while idx < TC_QOPT_MAX_QUEUE and NEXT_ARG_OK, take the next +// word with take, which returns false for PREV_ARG and break. It returns +// the args left (args[0] the last word taken, or the keyword) and idx. +func mqprioList(args []string, take func(idx int, a string) bool) ([]string, int) { + idx := 0 + for idx < xtcpnl.TcQoptMaxQueueCst && len(args) > 1 { + if !take(idx, args[1]) { + break + } + args = args[1:] + idx++ + } + return args, idx +} + +// mqprioRates is min_rate and max_rate: the values, then too few of them +// is an error only when no word follows (W32). +func (r *runner) mqprioRateList(m *mqprioArgs, args []string, rates *[xtcpnl.TcQoptMaxQueueCst]uint64, what string) ([]string, error) { + args, idx := mqprioList(args, func(idx int, a string) bool { + v, ok := getRate64(a) + if ok { + rates[idx] = v + } + return ok + }) + if idx < int(m.opt.NumTc) && len(args) <= 1 { + r.errf("Incomplete arguments, %s values expected\n", what) + return nil, errKindParse + } + return args, nil +} + +// mqprioWord is one turn of mqprio_parse_opt's loop; it returns the args +// left, args[0] the last word the turn took. +func (r *runner) mqprioWord(m *mqprioArgs, args []string) ([]string, error) { + next := func() error { + if len(args) < 2 { + return r.incomplete() + } + args = args[1:] + return nil + } + switch a := args[0]; { + case a == "num_tc", a == "hw": + if err := next(); err != nil { + return nil, err + } + v, ok := getU8(args[0], 10) + if !ok { + r.errf("Illegal \"%s\"\n", a) + return nil, errKindParse + } + if a == "hw" { + m.opt.Hw = v + } else { + m.opt.NumTc = v + } + case a == "map": + var idx int + args, idx = mqprioList(args, func(idx int, a string) bool { + v, ok := getU8(a, 10) + if ok { + m.opt.PrioTcMap[idx] = v + } + return ok + }) + for ; idx < xtcpnl.TcQoptMaxQueueCst; idx++ { + m.opt.PrioTcMap[idx] = 0 + } + case a == "queues": + // A repeat restarts idx but keeps counting pairs (W30); a count + // parsed before a bad offset stays. + args, _ = mqprioList(args, func(idx int, a string) bool { + t1, ok1, t2, ok2 := strtokAt(a) + c, good := getU16(t1, 10) + if !ok1 || !good { + return false + } + m.opt.Count[idx] = c + o, good := getU16(t2, 10) + if !ok2 || !good { + return false + } + m.opt.Offset[idx] = o + m.cntOffPairs++ + return true + }) + case a == "fp": + // A repeat restarts idx but keeps counting entries (W28). + args, _ = mqprioList(args, func(idx int, a string) bool { + switch a { + case "E": + m.fp[idx] = tcFpExpress + case "P": + m.fp[idx] = tcFpPreemptible + default: + return false + } + m.numFp++ + return true + }) + m.haveTcEntries = true + case m.opt.Hw != 0 && a == "mode": // only after a nonzero hw (W31) + if err := next(); err != nil { + return nil, err + } + switch v := args[0]; { + case matches(v, "dcb"): + m.mode = 0 + case matches(v, "channel"): + m.mode = mqprioModeChannel + default: + r.errf("Illegal mode (%s)\n", v) + return nil, errKindParse + } + if m.mode != 0 { + m.flags |= mqprioFMode + } + case m.opt.Hw != 0 && a == "shaper": + if err := next(); err != nil { + return nil, err + } + switch v := args[0]; { + case matches(v, "dcb"): + m.shaper = 0 + case matches(v, "bw_rlimit"): + m.shaper = mqprioShaperBwRate + if len(args) <= 1 { + r.errf("Incomplete shaper arguments\n") + return nil, errKindParse + } + default: + r.errf("Illegal shaper (%s)\n", v) + return nil, errKindParse + } + if m.shaper != 0 { + m.flags |= mqprioFShaper + } + case m.shaper == mqprioShaperBwRate && a == "min_rate": + var err error + if args, err = r.mqprioRateList(m, args, &m.minRate, "min_rate"); err != nil { + return nil, err + } + m.flags |= mqprioFMinRate + case m.shaper == mqprioShaperBwRate && a == "max_rate": + var err error + if args, err = r.mqprioRateList(m, args, &m.maxRate, "max_rate"); err != nil { + return nil, err + } + m.flags |= mqprioFMaxRate + case a == helpWord: + r.mqprioExplain() + return nil, errKindParse + default: + return nil, r.invarg("unknown argument", a) // exit 255 (W33) + } + return args, nil +} + +// parseMqprioQopt is mqprio_parse_opt. +func parseMqprioQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + m := &mqprioArgs{opt: xtcpnl.TcMqprioQopt{ + NumTc: 8, + PrioTcMap: [16]uint8{0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 1, 1, 3, 3, 3, 3}, + Hw: 1, + }} + for ; len(args) > 0; args = args[1:] { + var err error + if args, err = r.mqprioWord(m, args); err != nil { + return nil, err + } + } + if m.cntOffPairs > int(m.opt.NumTc) { + r.errf("queues count/offset pair count %d can not be higher than given num_tc %d\n", + m.cntOffPairs, m.opt.NumTc) + return nil, errKindParse + } + if m.haveTcEntries && m.numFp > xtcpnl.TcQoptMaxQueueCst { + return nil, fmt.Errorf("%w: mqprio with %d fp entries (tc reads past fp[%d])", + errNotImplemented, m.numFp, xtcpnl.TcQoptMaxQueueCst) + } + return m.attrs, nil +} + +// attrs is mqprio's TCA_OPTIONS: the struct, then MODE, SHAPER, the +// TC_ENTRY nests and the rate nests, all inside it (BeginNestData). +func (m *mqprioArgs) attrs(ab *xtcpnl.AttrBuilder) error { + var b [xtcpnl.TcMqprioQoptSizeCst]byte + tail, err := ab.BeginNestData(xtcpnl.TcaOptions, m.opt.Append(b[:0])) + if err != nil { + return err + } + if m.flags&mqprioFMode != 0 { + if err := ab.PutU16(xtcpnl.TcaMqprioMode, m.mode); err != nil { + return err + } + } + if m.flags&mqprioFShaper != 0 { + if err := ab.PutU16(xtcpnl.TcaMqprioShaper, m.shaper); err != nil { + return err + } + } + if m.haveTcEntries { + for tc := range m.numFp { + l, err := ab.BeginNest(xtcpnl.TcaMqprioTcEntry | unix.NLA_F_NESTED) + if err != nil { + return err + } + if err := putU32s(ab, []u32Attr{{xtcpnl.TcaMqprioTcEntryIndex, tc}, + {xtcpnl.TcaMqprioTcEntryFp, m.fp[tc]}}); err != nil { + return err + } + if err := ab.EndNest(l); err != nil { + return err + } + } + } + for _, rs := range []struct { + flag uint32 + t uint16 + rates *[xtcpnl.TcQoptMaxQueueCst]uint64 + }{{mqprioFMinRate, xtcpnl.TcaMqprioMinRate64, &m.minRate}, {mqprioFMaxRate, xtcpnl.TcaMqprioMaxRate64, &m.maxRate}} { + if m.flags&rs.flag == 0 { + continue + } + start, err := ab.BeginNest(rs.t | unix.NLA_F_NESTED) + if err != nil { + return err + } + for _, v := range rs.rates { + if err := putU64(ab, rs.t, v); err != nil { + return err + } + } + if err := ab.EndNest(start); err != nil { + return err + } + } + return ab.EndNest(tail) +} diff --git a/internal/gotc/qw_sched.go b/internal/gotc/qw_sched.go new file mode 100644 index 000000000..33ed4f6b4 --- /dev/null +++ b/internal/gotc/qw_sched.go @@ -0,0 +1,309 @@ +//go:build gotc_write + +package gotc + +import ( + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// tc/q_drr.c, q_qfq.c, q_multiq.c, q_cbs.c and q_etf.c parse_opt and +// parse_class_opt at iproute2 v7.2.0, with tc_util.c get_clockid. + +// whatIs is the kinds' `What is "%s"?` for an unknown word. +func (r *runner) whatIs(a string) { r.errf("What is \"%s\"?\n", a) } + +// parseDrrQopt is drr_parse_opt: no options. +func parseDrrQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + if len(args) > 0 { + if args[0] != helpWord { + r.whatIs(args[0]) + } + r.errf("Usage: ... drr\n") + return nil, errKindParse + } + return nil, nil +} + +// parseDrrCopt is drr_parse_class_opt: TCA_OPTIONS always, with one +// TCA_DRR_QUANTUM for each quantum given (a repeat is sent twice). +func parseDrrCopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + explain2 := func() { r.errf("Usage: ... drr quantum SIZE\n") } + var quanta []u32Attr + for ; len(args) > 0; args = args[1:] { + switch args[0] { + case wordQuantum: + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + v, ok := getSize(args[0]) + if !ok { + r.errf("Illegal \"quantum\"\n") + return nil, errKindParse + } + quanta = append(quanta, u32Attr{xtcpnl.TcaDrrQuantum, v}) + case helpWord: + explain2() + return nil, errKindParse + default: + r.whatIs(args[0]) + explain2() + return nil, errKindParse + } + } + return optionsNest(quanta), nil +} + +// optionsNest is addattr_nest(TCA_OPTIONS) around the u32 attributes. +func optionsNest(attrs []u32Attr) func(*xtcpnl.AttrBuilder) error { + return func(ab *xtcpnl.AttrBuilder) error { + m, err := ab.BeginNest(xtcpnl.TcaOptions) + if err != nil { + return err + } + if err := putU32s(ab, attrs); err != nil { + return err + } + return ab.EndNest(m) + } +} + +// parseQfqQopt is qfq_parse_opt: any word fails; one that is a prefix of +// "help" skips the "What is" line. +func parseQfqQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + if len(args) > 0 { + if !matches(args[0], helpWord) { + r.whatIs(args[0]) + } + r.errf("Usage: ... qfq\n") + return nil, errKindParse + } + return nil, nil +} + +// parseQfqCopt is qfq_parse_class_opt: weight and maxpkt as get_u32 base +// 10, each sent as given, in argv order. +func parseQfqCopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + explain := func() { r.errf("Usage: ... qfq weight NUMBER maxpkt BYTES\n") } + var attrs []u32Attr + for ; len(args) > 0; args = args[1:] { + var t uint16 + var name string + switch a := args[0]; { + case matches(a, "weight"): + t, name = xtcpnl.TcaQfqWeight, "weight" + case matches(a, "maxpkt"): + t, name = xtcpnl.TcaQfqLmax, "maxpkt" + case a == helpWord: + explain() + return nil, errKindParse + default: + r.whatIs(a) + explain() + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + v, ok := getU32(args[0], 10) + if !ok { + r.errf("Illegal \"%s\"\n", name) + return nil, errKindParse + } + attrs = append(attrs, u32Attr{t, v}) + } + return optionsNest(attrs), nil +} + +// parseMultiqQopt is multiq_parse_opt: a zeroed tc_multiq_qopt. +func parseMultiqQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + if len(args) > 0 { + if args[0] != helpWord { + r.whatIs(args[0]) + } + r.errf("Usage: ... multiq [help]\n") + return nil, errKindParse + } + return func(ab *xtcpnl.AttrBuilder) error { + var b [xtcpnl.TcMultiqQoptSizeCst]byte + return ab.PutBytes(xtcpnl.TcaOptions, xtcpnl.TcMultiqQopt{}.Append(b[:0])) + }, nil +} + +// parseCbsQopt is cbs_parse_opt. Each option's duplicate check is on a +// nonzero value (W3), so `hicredit 0 hicredit 5` passes. +func parseCbsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + explain := func() { + r.errf("Usage: ... cbs hicredit BYTES locredit BYTES sendslope BPS idleslope BPS\n" + + "\t [offload 0|1]\n") + } + var opt xtcpnl.TcCbsQopt + for ; len(args) > 0; args = args[1:] { + a := args[0] + var s32 *int32 + var name string + switch { + case matches(a, "offload"): + name = "offload" + case matches(a, "hicredit"): + s32, name = &opt.Hicredit, "hicredit" + case matches(a, "locredit"): + s32, name = &opt.Locredit, "locredit" + case matches(a, "sendslope"): + s32, name = &opt.Sendslope, "sendslope" + case matches(a, "idleslope"): + s32, name = &opt.Idleslope, "idleslope" + case a == helpWord: + explain() + return nil, errKindParse + default: + r.errf("cbs: unknown parameter \"%s\"\n", a) + explain() + return nil, errKindParse + } + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if (s32 == nil && opt.Offload != 0) || (s32 != nil && *s32 != 0) { + r.errf("cbs: duplicate \"%s\" specification\n", name) + return nil, errKindParse + } + ok := true + if s32 == nil { + opt.Offload, ok = getU8(args[0], 0) + } else { + *s32, ok = getS32(args[0], 0) + } + if !ok { + r.errf("cbs: illegal value for \"%s\": \"%s\"\n", name, args[0]) + return nil, errKindParse + } + } + return func(ab *xtcpnl.AttrBuilder) error { + m, err := ab.BeginNest(xtcpnl.TcaOptions) + if err != nil { + return err + } + var b [xtcpnl.TcCbsQoptSizeCst]byte + if err := ab.PutBytes(xtcpnl.TcaCbsParms, opt.Append(b[:0])); err != nil { + return err + } + return ab.EndNest(m) + }, nil +} + +// The tc_etf_qopt flags (pkt_sched.h:992-994). +const ( + etfDeadlineModeOn = 1 << 0 + etfOffloadOn = 1 << 1 + etfSkipSockCheck = 1 << 2 +) + +// clockNames is tc_util.c clockt_map: the clocks a qdisc can use. +var clockNames = []struct { + name string + id int32 +}{{"BOOTTIME", 7}, {"MONOTONIC", 1}, {"REALTIME", 0}, {"TAI", 11}} + +// getClockid is tc_util.c get_clockid: a "CLOCK_" anywhere in the word +// (strcasestr) drops the word's first six bytes, then the rest is matched +// without case. +func getClockid(s string) (int32, bool) { + if strings.Contains(strings.ToUpper(s), "CLOCK_") { + s = s[len("CLOCK_"):] + } + for _, c := range clockNames { + if strings.EqualFold(c.name, s) { + return c.id, true + } + } + return 0, false +} + +// parseEtfQopt is etf_parse_opt; delta's duplicate check is on a nonzero +// value (W3). TCA_OPTIONS is opened by hand (addattr_l with no data) and +// closed over TCA_ETF_PARMS: a plain nest's bytes. +func parseEtfQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + explain := func() { + r.errf("Usage: ... etf delta NANOS clockid CLOCKID [offload] [deadline_mode]\n" + + "CLOCKID must be a valid SYS-V id (i.e. CLOCK_TAI)\n") + } + dup := func(name string) error { + r.errf("etf: duplicate \"%s\" specification\n", name) + return errKindParse + } + opt := xtcpnl.TcEtfQopt{Clockid: clockidInvalid} + flag := func(bit uint32, name string) error { + if opt.Flags&bit != 0 { + return dup(name) + } + opt.Flags |= bit + return nil + } + for ; len(args) > 0; args = args[1:] { + a := args[0] + var err error + switch { + case matches(a, "offload"): + err = flag(etfOffloadOn, "offload") + case matches(a, "deadline_mode"): + err = flag(etfDeadlineModeOn, "deadline_mode") + case matches(a, "delta"): + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if opt.Delta != 0 { + return nil, dup("delta") + } + v, ok := getS32(args[0], 0) + if !ok { + r.errf("etf: illegal value for \"delta\": \"%s\"\n", args[0]) + return nil, errKindParse + } + opt.Delta = v + case matches(a, "clockid"): + if len(args) < 2 { + return nil, r.incomplete() + } + args = args[1:] + if opt.Clockid != clockidInvalid { + return nil, dup("clockid") + } + v, ok := getClockid(args[0]) + if !ok { + r.errf("etf: illegal value for \"clockid\": \"%s\".\n"+ + "It must be a valid SYS-V id (i.e. CLOCK_TAI)\n", args[0]) + return nil, errKindParse + } + opt.Clockid = v + case a == "skip_sock_check": + err = flag(etfSkipSockCheck, "skip_sock_check") + case a == helpWord: + explain() + return nil, errKindParse + default: + r.errf("etf: unknown parameter \"%s\"\n", a) + explain() + return nil, errKindParse + } + if err != nil { + return nil, err + } + } + return func(ab *xtcpnl.AttrBuilder) error { + m, err := ab.BeginNest(xtcpnl.TcaOptions) + if err != nil { + return err + } + var b [xtcpnl.TcEtfQoptSizeCst]byte + if err := ab.PutBytes(xtcpnl.TcaEtfParms, opt.Append(b[:0])); err != nil { + return err + } + return ab.EndNest(m) + }, nil +} diff --git a/internal/gotc/qw_sched_test.go b/internal/gotc/qw_sched_test.go new file mode 100644 index 000000000..924e97323 --- /dev/null +++ b/internal/gotc/qw_sched_test.go @@ -0,0 +1,204 @@ +//go:build gotc_write + +package gotc + +import ( + "bytes" + "encoding/hex" + "errors" + "strings" + "testing" + + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" +) + +// How a kind parser ends. +const ( + outOK = "ok" // opts returned + outParse = "parse" // errKindParse: tc's return -1, rc 1 + outNotImpl = "notimpl" // refused by name: tc overruns memory or crashes + outExit = "exit" // invarg: exit 255 +) + +// TestGotcSchedWrite is the increment-15 kinds' parse_qopt and parse_copt +// on the leads (W26-W41) and their edges: how each ends, its message, and +// the attributes' length or bytes (the full requests are the tcswrite +// corpus's). +// +// go test -tags gotc_write ./internal/gotc/ -run TestGotcSchedWrite +func TestGotcSchedWrite(t *testing.T) { + type expected struct { + outcome string + stderr string // a substring; "" with outOK or outParse also means stderr is empty + attrs int // the opts' length when outOK; 0 skips + has string // hex the opts must contain, when outOK + } + sixteen := strings.Repeat("E ", 16) + tests := []struct { + description string + parse kindParser + args string + expected expected + }{ + {"positive: drr class quantum", parseDrrCopt, "quantum 1500", expected{outOK, "", 12, ""}}, + {"positive: qfq class weight and maxpkt", parseQfqCopt, "weight 10 maxpkt 2000", expected{outOK, "", 20, ""}}, + {"negative: qfq qdisc takes nothing", parseQfqQopt, "x", expected{outParse, "What is \"x\"?\nUsage: ... qfq\n", 0, ""}}, + {"corner: qfq qdisc h is help, no What is", parseQfqQopt, "h", expected{outParse, "Usage: ... qfq\n", 0, ""}}, + {"negative: multiq takes nothing", parseMultiqQopt, "x", expected{outParse, "Usage: ... multiq [help]", 0, ""}}, + {"positive: cbs credits and slopes", parseCbsQopt, "hicredit 30 locredit -1470 sendslope -980000 idleslope 20000", + expected{outOK, "", 28, "1800010000000000" + "1e000000" + "42faffff"}}, + {"corner: cbs duplicate check is on nonzero (W3)", parseCbsQopt, "hicredit 0 hicredit 5", expected{outOK, "", 28, ""}}, + {"negative: cbs duplicate", parseCbsQopt, "idleslope 1 idleslope 2", expected{outParse, "cbs: duplicate \"idleslope\"", 0, ""}}, + {"positive: etf clock_tai without case", parseEtfQopt, "clockid clock_tai delta 300000 skip_sock_check", + expected{outOK, "", 20, "e09304000b00000004000000"}}, + {"negative: etf offload twice", parseEtfQopt, "offload offload", expected{outParse, "etf: duplicate \"offload\"", 0, ""}}, + {"negative: etf bad clockid", parseEtfQopt, "clockid FOO", expected{outParse, "It must be a valid SYS-V id", 0, ""}}, + {"positive: hfsc sc sets rt and ls", parseHfscCopt, "sc rate 1mbit", expected{outOK, "", 36, ""}}, + // umax 5000 dmax 1s rate 1mbit is convex: d = 1000000 - (5000*10^6 + // mod 2^32)/125000 = 994360, not 960000. + {"boundary: hfsc umax 5000 wraps in 32 bits (W39)", parseHfscCopt, "rt umax 5000 dmax 1s rate 1mbit", + expected{outOK, "", 20, "10000100" + "00000000" + "382c0f00" + "48e80100"}}, + {"negative: hfsc rt rate 0 is tc's SIGFPE (W38)", parseHfscCopt, "rt rate 0", expected{outNotImpl, "", 0, ""}}, + {"corner: hfsc a bad m1 prints two errors (W41)", parseHfscCopt, "rt m1 bogus m2 1mbit", + expected{outParse, "HFSC: Illegal \"m1\"\nHFSC: Illegal \"rt\"\n", 0, ""}}, + {"negative: hfsc ul without ls", parseHfscCopt, "ul m2 1mbit", expected{outParse, "Upper-limit Service Curve", 0, ""}}, + {"negative: hfsc two zero slopes", parseHfscCopt, "rt m2 0", expected{outParse, "two zero slopes", 0, ""}}, + {"boundary: ets priomap 256 is band 0 (W27)", parseEtsQopt, "bands 2 priomap 256 1", + expected{outOK, "", 32, "0500060000000000" + "0500060001000000"}}, + {"negative: ets 17 quanta overrun tc's quanta[16] (W26)", parseEtsQopt, + "quanta 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17", expected{outNotImpl, "", 0, ""}}, + {"boundary: ets 16 quanta", parseEtsQopt, "quanta 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16", expected{outOK, "", 0, ""}}, + {"negative: ets nothing", parseEtsQopt, "", expected{outParse, "One of \"bands\", \"quanta\" or \"strict\"", 0, ""}}, + {"negative: ets quanta 0", parseEtsQopt, "quanta 0", expected{outParse, "\"quanta\" must be > 0", 0, ""}}, + {"positive: ets class quantum", parseEtsCopt, "quantum 1500", expected{outOK, "", 12, "08000400dc050000"}}, + {"positive: mqprio header in the stretched nest", parseMqprioQopt, "num_tc 2 map 0 0 1 1 queues 4@0 4@4 hw 0", + expected{outOK, "", 88, "58000200"}}, + {"negative: mqprio unknown word is invarg (W33)", parseMqprioQopt, "bogus", expected{outExit, "is wrong: unknown argument", 0, ""}}, + {"corner: mqprio mode after hw 0 is unknown (W31)", parseMqprioQopt, "hw 0 mode channel", + expected{outExit, "argument \"mode\" is wrong", 0, ""}}, + {"negative: mqprio queues twice sums the pairs (W30)", parseMqprioQopt, "num_tc 2 queues 1@0 1@1 queues 1@0", + expected{outParse, "pair count 3 can not be higher than given num_tc 2", 0, ""}}, + {"negative: mqprio 17 fp entries read past fp[16] (W28)", parseMqprioQopt, "fp " + sixteen + "fp E", + expected{outNotImpl, "", 0, ""}}, + {"positive: taprio two entries and base-time", parseTaprioQopt, + "clockid TAI base-time 1000 sched-entry S 1 300000 sched-entry S 2 200000", expected{outOK, "", 0, ""}}, + {"corner: taprio bad base-time sends the rest unread (W34)", parseTaprioQopt, + "clockid TAI base-time x sched-entry S 1 1000", expected{outOK, "", 16, ""}}, + {"negative: taprio bad flags says nothing (W35)", parseTaprioQopt, "flags zz", expected{outParse, "", 0, ""}}, + {"negative: taprio unknown word is unnamed (W35)", parseTaprioQopt, "bogus", expected{outParse, "Unknown argument\n", 0, ""}}, + {"negative: taprio 17 max-sdu read past index 16 (W29)", parseTaprioQopt, + "max-sdu " + strings.Repeat("0 ", 16) + "max-sdu 0", expected{outNotImpl, "", 0, ""}}, + {"negative: taprio duplicate cycle-time", parseTaprioQopt, "cycle-time 5 cycle-time 6", + expected{outParse, "duplicate \"cycle-time\"", 0, ""}}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + var errb bytes.Buffer + r := &runner{stderr: &errb, core: tcCore{clockFactor: 1, tickInUsec: 1}} + opts, err := tc.parse(r, strings.Fields(tc.args), "d0") + var ec exitCode + got := outOK + switch { + case err == nil: + case errors.Is(err, errKindParse): + got = outParse + case errors.Is(err, errNotImplemented): + got = outNotImpl + case errors.As(err, &ec) && ec == -1: + got = outExit + default: + t.Fatalf("unexpected err %v", err) + } + if got != tc.expected.outcome { + t.Fatalf("outcome %s (%v), want %s; stderr %q", got, err, tc.expected.outcome, errb.String()) + } + if !strings.Contains(errb.String(), tc.expected.stderr) { + t.Errorf("stderr %q lacks %q", errb.String(), tc.expected.stderr) + } + if tc.expected.stderr == "" && got != outNotImpl && errb.Len() != 0 { + t.Errorf("stderr %q, want none", errb.String()) + } + if got != outOK || opts == nil { + return + } + ab := xtcpnl.NewAttrBuilder(make([]byte, 8192)) + if err := opts(&ab); err != nil { + t.Fatal(err) + } + if tc.expected.attrs != 0 && ab.Len() != tc.expected.attrs { + t.Errorf("attrs %d bytes, want %d: %x", ab.Len(), tc.expected.attrs, ab.Bytes()) + } + if h := hex.EncodeToString(ab.Bytes()); !strings.Contains(h, tc.expected.has) { + t.Errorf("attrs %s lack %s", h, tc.expected.has) + } + }) + } +} + +// TestGetClockid is tc_util.c get_clockid: a CLOCK_ anywhere drops the +// first six bytes. +func TestGetClockid(t *testing.T) { + tests := []struct { + description string + in string + expected int32 + ok bool + }{ + {"positive: TAI", "TAI", 11, true}, + {"positive: CLOCK_ prefix, any case", "clock_monotonic", 1, true}, + {"negative: unknown clock", "CLOCK_PROCESS", 0, false}, + {"corner: CLOCK_ not at the start drops the wrong bytes", "xCLOCK_TAI", 0, false}, + {"boundary: empty", "", 0, false}, + } + for _, tc := range tests { + t.Run(tc.description, func(t *testing.T) { + got, ok := getClockid(tc.in) + if got != tc.expected || ok != tc.ok { + t.Errorf("getClockid(%q) = %d, %t; want %d, %t", tc.in, got, ok, tc.expected, tc.ok) + } + }) + } +} + +// TestGetS64Strtok is lib/utils.c get_s64 in base 10 and strtok on '@'. +func TestGetS64Strtok(t *testing.T) { + s64 := []struct { + description string + in string + expected int64 + ok bool + }{ + {"positive: negative number", "-5", -5, true}, + {"negative: hex is not base 10", "0x10", 0, false}, + {"boundary: LLONG_MAX is ERANGE's value", "9223372036854775807", 0, false}, + {"boundary: one below LLONG_MAX", "9223372036854775806", 9223372036854775806, true}, + {"corner: empty", "", 0, false}, + } + for _, tc := range s64 { + t.Run(tc.description, func(t *testing.T) { + got, ok := getS64(tc.in, 10) + if got != tc.expected || ok != tc.ok { + t.Errorf("getS64(%q) = %d, %t; want %d, %t", tc.in, got, ok, tc.expected, tc.ok) + } + }) + } + toks := []struct { + description string + in string + expected [2]string + ok [2]bool + }{ + {"positive: count@offset", "4@0", [2]string{"4", "0"}, [2]bool{true, true}}, + {"corner: leading and doubled @ are skipped", "@@4@@0", [2]string{"4", "0"}, [2]bool{true, true}}, + {"negative: no offset", "4@", [2]string{"4", ""}, [2]bool{true, false}}, + {"boundary: only @", "@", [2]string{"", ""}, [2]bool{false, false}}, + } + for _, tc := range toks { + t.Run(tc.description, func(t *testing.T) { + t1, ok1, t2, ok2 := strtokAt(tc.in) + if [2]string{t1, t2} != tc.expected || [2]bool{ok1, ok2} != tc.ok { + t.Errorf("strtokAt(%q) = %q %t %q %t", tc.in, t1, ok1, t2, ok2) + } + }) + } +} diff --git a/internal/gotc/qw_taprio.go b/internal/gotc/qw_taprio.go new file mode 100644 index 000000000..b8812cd98 --- /dev/null +++ b/internal/gotc/qw_taprio.go @@ -0,0 +1,365 @@ +//go:build gotc_write + +package gotc + +import ( + "fmt" + "math" + "strings" + + "github.com/randomizedcoder/xtcp2/pkg/cint" + "github.com/randomizedcoder/xtcp2/pkg/xtcpnl" + "golang.org/x/sys/unix" +) + +// tc/q_taprio.c taprio_parse_opt at iproute2 v7.2.0. + +// taprioSchedEntry is TCA_TAPRIO_SCHED_ENTRY, a member of the entry list. +const taprioSchedEntry = 1 + +func (r *runner) taprioExplain() { + r.errf("Usage: ... taprio clockid CLOCKID\n" + + "\t\t[num_tc NUMBER] [map P0 P1 ...]\n" + + "\t\t[queues COUNT@OFFSET COUNT@OFFSET COUNT@OFFSET ...]\n" + + "\t\t[ [sched-entry index cmd gate-mask interval] ... ]\n" + + "\t\t[base-time time] [txtime-delay delay]\n" + + "\t\t[fp FP0 FP1 FP2 ...]\n" + + "\n" + + "CLOCKID must be a valid SYS-V id (i.e. CLOCK_TAI)\n") +} + +// getS64 is lib/utils.c get_s64: strtoll in base, all of it, no ERANGE. +func getS64(s string, base uint64) (int64, bool) { + t := strings.TrimLeft(s, " \t\n\v\f\r") + neg := false + if t != "" && (t[0] == '+' || t[0] == '-') { + neg, t = t[0] == '-', t[1:] + } + if t == "" || t[0] == '+' || t[0] == '-' || cIsSpace(t[0]) { + return 0, false + } + mag, rest, ok, over := strtoulOver(t, base) + if !ok || rest != "" || over { + return 0, false + } + if neg { + if mag >= 1<<63 { + return 0, false // LLONG_MIN, and beyond, is ERANGE + } + n, _ := cint.NegInt64(mag) + return n, true + } + if mag >= math.MaxInt64 { + return 0, false + } + return cint.LongLong(mag), true +} + +// taprioSchedItem is a struct sched_entry. +type taprioSchedItem struct { + cmd uint8 + mask, interval uint32 +} + +// taprioArgs is taprio_parse_opt's locals. +type taprioArgs struct { + maxSdu, fp [xtcpnl.TcQoptMaxQueueCst]uint32 + clockid int32 + opt xtcpnl.TcMqprioQopt + cycleTimeExt, cycleTime, base int64 + entries []taprioSchedItem + haveTcEntries bool + numMaxSdu, numFp uint32 + flags, txtimeDelay uint32 +} + +// taprioEntryCmd is str_to_entry_cmd: S, H and R. +func taprioEntryCmd(s string) (uint8, bool) { + switch s { + case "S": + return 0, true // TC_TAPRIO_CMD_SET_GATES + case "H": + return 1, true // TC_TAPRIO_CMD_SET_AND_HOLD + case "R": + return 2, true // TC_TAPRIO_CMD_SET_AND_RELEASE + } + return 0, false +} + +// errTaprioStop is a bad base-time, cycle-time or cycle-time-extension: +// PREV_ARG and break, so the request goes with what was parsed and the +// rest of argv unread, and no message (W34). +var errTaprioStop = fmt.Errorf("gotc: taprio stops parsing") + +// taprioWord is one turn of taprio_parse_opt's loop; it returns the args +// left, args[0] the last word the turn took. +func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { + next := func() error { + if len(args) < 2 { + return r.incomplete() + } + args = args[1:] + return nil + } + dup := func(name string) error { + r.errf("taprio: duplicate \"%s\" specification\n", name) + return errKindParse + } + switch a := args[0]; a { + case "num_tc": + if err := next(); err != nil { + return nil, err + } + v, ok := getU8(args[0], 10) + if !ok { + r.errf("Illegal \"num_tc\"\n") + return nil, errKindParse + } + t.opt.NumTc = v + case "map": + var idx int + args, idx = mqprioList(args, func(idx int, a string) bool { + v, ok := getU8(a, 10) + if ok { + t.opt.PrioTcMap[idx] = v + } + return ok + }) + for ; idx < xtcpnl.TcQoptMaxQueueCst; idx++ { + t.opt.PrioTcMap[idx] = 0 + } + case "queues": + args, _ = mqprioList(args, func(idx int, a string) bool { + t1, ok1, t2, ok2 := strtokAt(a) + c, good := getU16(t1, 10) + if !ok1 || !good { + return false + } + t.opt.Count[idx] = c + o, good := getU16(t2, 10) + if !ok2 || !good { + return false + } + t.opt.Offset[idx] = o + return true + }) + case "fp": + // A repeat restarts idx but keeps counting entries (W29). + args, _ = mqprioList(args, func(idx int, a string) bool { + switch a { + case "E": + t.fp[idx] = tcFpExpress + case "P": + t.fp[idx] = tcFpPreemptible + default: + return false + } + t.numFp++ + return true + }) + t.haveTcEntries = true + case "max-sdu": + args, _ = mqprioList(args, func(idx int, a string) bool { + v, ok := getU32(a, 10) + if ok { + t.maxSdu[idx] = v + t.numMaxSdu++ + } + return ok + }) + t.haveTcEntries = true + case "sched-entry": + explain := func() { r.errf("Usage: ... taprio ... sched-entry \n") } + if err := next(); err != nil { + return nil, err + } + cmd, ok := taprioEntryCmd(args[0]) + if !ok { + explain() + return nil, errKindParse + } + if err := next(); err != nil { + return nil, err + } + mask, ok := getU32(args[0], 16) + if !ok { + explain() + return nil, errKindParse + } + if err := next(); err != nil { + return nil, err + } + interval, ok := getU32(args[0], 0) + if !ok { + explain() + return nil, errKindParse + } + t.entries = append(t.entries, taprioSchedItem{cmd, mask, interval}) + case "base-time", "cycle-time", "cycle-time-extension": + if err := next(); err != nil { + return nil, err + } + v := map[string]*int64{"base-time": &t.base, "cycle-time": &t.cycleTime, "cycle-time-extension": &t.cycleTimeExt}[a] + if a != "base-time" && *v != 0 { + return nil, dup(a) + } + s, ok := getS64(args[0], 10) + if !ok { + return nil, errTaprioStop + } + *v = s + case "clockid": + if err := next(); err != nil { + return nil, err + } + if t.clockid != clockidInvalid { + return nil, dup("clockid") + } + v, ok := getClockid(args[0]) + if !ok { + r.errf("taprio: illegal value for \"clockid\": \"%s\".\n", args[0]) + r.errf("It must be a valid SYS-V id (i.e. CLOCK_TAI)\n") + return nil, errKindParse + } + t.clockid = v + case "flags", "txtime-delay": + if err := next(); err != nil { + return nil, err + } + v := &t.flags + if a == "txtime-delay" { + v = &t.txtimeDelay + } + if *v != 0 { + return nil, dup(a) + } + u, ok := getU32(args[0], 0) + if !ok { + return nil, errKindParse // no message (W35) + } + *v = u + case helpWord: + r.taprioExplain() + return nil, errKindParse + default: + r.errf("Unknown argument\n") // the word unnamed (W35) + return nil, errKindParse + } + return args, nil +} + +// parseTaprioQopt is taprio_parse_opt. +func parseTaprioQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { + t := &taprioArgs{clockid: clockidInvalid} + for ; len(args) > 0; args = args[1:] { + var err error + args, err = r.taprioWord(t, args) + if err == errTaprioStop { + break + } + if err != nil { + return nil, err + } + } + if t.haveTcEntries && max(t.numMaxSdu, t.numFp) > xtcpnl.TcQoptMaxQueueCst { + return nil, fmt.Errorf("%w: taprio with %d max-sdu or fp entries (tc reads past index %d)", + errNotImplemented, max(t.numMaxSdu, t.numFp), xtcpnl.TcQoptMaxQueueCst) + } + return t.attrs, nil +} + +// attrs is taprio's TCA_OPTIONS, a plain nest opened by hand: the scalar +// attributes when set, the TC_ENTRY nests, then the flagged entry list, +// sent even when empty. +func (t *taprioArgs) attrs(ab *xtcpnl.AttrBuilder) error { + tail, err := ab.BeginNest(xtcpnl.TcaOptions) + if err != nil { + return err + } + if t.clockid != clockidInvalid { + if err := ab.PutS32(xtcpnl.TcaTaprioAttrSchedClockid, t.clockid); err != nil { + return err + } + } + if t.flags != 0 { + if err := ab.PutU32(xtcpnl.TcaTaprioAttrFlags, t.flags); err != nil { + return err + } + } + if t.opt.NumTc > 0 { + var b [xtcpnl.TcMqprioQoptSizeCst]byte + if err := ab.PutBytes(xtcpnl.TcaTaprioAttrPriomap, t.opt.Append(b[:0])); err != nil { + return err + } + } + if t.txtimeDelay != 0 { + if err := ab.PutU32(xtcpnl.TcaTaprioAttrTxtimeDelay, t.txtimeDelay); err != nil { + return err + } + } + for _, s := range []struct { + t uint16 + v int64 + }{{xtcpnl.TcaTaprioAttrSchedBaseTime, t.base}, {xtcpnl.TcaTaprioAttrSchedCycleTime, t.cycleTime}, + {xtcpnl.TcaTaprioAttrSchedCycleTimeExtension, t.cycleTimeExt}} { + if s.v != 0 { + if err := putU64(ab, s.t, cint.U64Bits(s.v)); err != nil { + return err + } + } + } + if t.haveTcEntries { + if err := t.tcEntries(ab); err != nil { + return err + } + } + l, err := ab.BeginNest(xtcpnl.TcaTaprioAttrSchedEntryList | unix.NLA_F_NESTED) + if err != nil { + return err + } + for _, e := range t.entries { + a, err := ab.BeginNest(taprioSchedEntry) + if err != nil { + return err + } + if err := ab.PutU8(xtcpnl.TcaTaprioSchedEntryCmd, e.cmd); err != nil { + return err + } + if err := putU32s(ab, []u32Attr{{xtcpnl.TcaTaprioSchedEntryGateMask, e.mask}, + {xtcpnl.TcaTaprioSchedEntryInterval, e.interval}}); err != nil { + return err + } + if err := ab.EndNest(a); err != nil { + return err + } + } + if err := ab.EndNest(l); err != nil { + return err + } + return ab.EndNest(tail) +} + +// tcEntries is add_tc_entries: max(entries) flagged TC_ENTRY nests, each +// with MAX_SDU and FP for the indices that have them. +func (t *taprioArgs) tcEntries(ab *xtcpnl.AttrBuilder) error { + for tc := range max(t.numMaxSdu, t.numFp) { + l, err := ab.BeginNest(xtcpnl.TcaTaprioAttrTcEntry | unix.NLA_F_NESTED) + if err != nil { + return err + } + attrs := []u32Attr{{xtcpnl.TcaTaprioTcEntryIndex, tc}} + if tc < t.numMaxSdu { + attrs = append(attrs, u32Attr{xtcpnl.TcaTaprioTcEntryMaxSdu, t.maxSdu[tc]}) + } + if tc < t.numFp { + attrs = append(attrs, u32Attr{xtcpnl.TcaTaprioTcEntryFp, t.fp[tc]}) + } + if err := putU32s(ab, attrs); err != nil { + return err + } + if err := ab.EndNest(l); err != nil { + return err + } + } + return nil +} diff --git a/internal/gotc/qwrite.go b/internal/gotc/qwrite.go index b1de7b9c6..89bdb0719 100644 --- a/internal/gotc/qwrite.go +++ b/internal/gotc/qwrite.go @@ -63,12 +63,25 @@ var qoptParsers = map[string]kindParser{ xtcpnl.TcKindNetem: parseNetemQopt, xtcpnl.TcKindIngress: parseIngressQopt, xtcpnl.TcKindClsact: parseClsactQopt, + xtcpnl.TcKindDrr: parseDrrQopt, + xtcpnl.TcKindQfq: parseQfqQopt, + xtcpnl.TcKindMultiq: parseMultiqQopt, + xtcpnl.TcKindCbs: parseCbsQopt, + xtcpnl.TcKindEtf: parseEtfQopt, + xtcpnl.TcKindHfsc: parseHfscQopt, + xtcpnl.TcKindEts: parseEtsQopt, + xtcpnl.TcKindMqprio: parseMqprioQopt, + xtcpnl.TcKindTaprio: parseTaprioQopt, } // coptParsers are the parse_copts gotc clones. A kind whose qdisc_util has // a parse_copt (printCopt stands for it) but is not here is refused. var coptParsers = map[string]kindParser{ - xtcpnl.TcKindHtb: parseHtbCopt, + xtcpnl.TcKindHtb: parseHtbCopt, + xtcpnl.TcKindDrr: parseDrrCopt, + xtcpnl.TcKindQfq: parseQfqCopt, + xtcpnl.TcKindHfsc: parseHfscCopt, + xtcpnl.TcKindEts: parseEtsCopt, } // Words the kind parsers take more than twice. diff --git a/internal/gotc/qwrite_tdc_test.go b/internal/gotc/qwrite_tdc_test.go index 945c3d7d1..9e9872c84 100644 --- a/internal/gotc/qwrite_tdc_test.go +++ b/internal/gotc/qwrite_tdc_test.go @@ -22,16 +22,20 @@ import ( // tdcWriteSkips pins the refusals by kind. var tdcWriteSkips = map[string]int{ - "cake": 21, "cake_mq": 22, "cbs": 11, "choke": 7, "codel": 13, "drr": 3, "dualpi2": 12, "etf": 4, "ets": 49, - "fq_pie": 2, "gred": 7, "hfsc": 9, "hhf": 16, "mqprio": 4, "multiq": 4, "pie": 2, "plug": 9, "qfq": 10, "red": 9, - "sfb": 12, "skbprio": 4, "taprio": 7, + "cake": 21, "cake_mq": 22, "choke": 7, "codel": 13, "dualpi2": 12, + "fq_pie": 2, "gred": 7, "hhf": 16, "pie": 2, "plug": 9, "red": 9, + "sfb": 12, "skbprio": 4, } // tdcWriteKnown are the rows gotc cannot match, each with why. -var tdcWriteKnown = map[string]string{} +var tdcWriteKnown = map[string]string{ + // W26: tc writes the 17th quantum past quanta[16] and sends what the + // stack holds; gotc refuses the 17th by name. + "tdc/qdiscs/ets/65b6": "W26: 17 ets quanta", +} // tdcWritesSent pins how many tdc writes gotc sends exactly. -const tdcWritesSent = 173 +const tdcWritesSent = 273 var writeKindRefused = regexp.MustCompile(`not implemented: tc (?:qdisc|class) write of kind (\S+)`) diff --git a/internal/gotc/qwrite_test.go b/internal/gotc/qwrite_test.go index a27d571f3..a27289911 100644 --- a/internal/gotc/qwrite_test.go +++ b/internal/gotc/qwrite_test.go @@ -90,8 +90,6 @@ func TestGotcQwrite(t *testing.T) { []Reply{rep(nlErr(unix.EEXIST))}, "RTNETLINK answers: File exists\n", 2, 1, nil}, {"negative: a write of a deferred kind is refused by name", []string{"qdisc", "add", "root", "red"}, nil, notImpl + "tc qdisc write of kind red\n", 255, 0, nil}, - {"negative: a class write of a deferred classful kind is refused", []string{"class", "add", "classid", "1:1", "drr"}, nil, - notImpl + "tc class write of kind drr\n", 255, 0, nil}, {"negative: an unknown kind with options is parse_noqopt's, rc 1", []string{"qdisc", "add", "root", "nosuch", "x"}, nil, "Unknown qdisc \"nosuch\", hence option \"x\" is unparsable\n", 1, 0, nil}, {"negative: pfifo_fast takes no options, rc 255 (W8)", []string{"qdisc", "add", "root", "pfifo_fast", "x"}, nil, From d3175a6e548746891b097edf42571a459ae9c8c4 Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 23:09:31 -0800 Subject: [PATCH 5/9] docs(gotc): W26-W41 and K46 for the increment-15 kinds (gotc 18B) Every lead is present at HEAD (main 35033e4713fe). W38's SIGFPE was checked on the host's tc 7.2.0. K46 is corrected: multiq succeeds on change because it has a change op, not because it sends no options (DOC011). Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gotc-status.md | 7 ++- docs/netlink/upstream/iproute2-tc-write.md | 61 +++++++++++++++++++++- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/docs/netlink/gotc-status.md b/docs/netlink/gotc-status.md index d25d9315b..05184b8ba 100644 --- a/docs/netlink/gotc-status.md +++ b/docs/netlink/gotc-status.md @@ -238,6 +238,8 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr mqprio's stretched TCA_OPTIONS; nine requests equal tc's captured bytes (V043). - **18W (writes): done.** parse_qopt for the nine kinds and parse_copt for drr, qfq, hfsc and ets; all 114 tcswrite rows replay byte for byte, and 100 of tdc's 101 rows for these kinds now match (the other is W26) (V044). +- **18B (write-up): done.** W26–W41 and K46 appended to [iproute2-tc-write.md](upstream/iproute2-tc-write.md); + every lead is present at HEAD (DOC011). ## Ledger @@ -290,9 +292,10 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr | V039 | 17W | **gotc writes.** `qwrite.go` (`gotc_write`; `qwrite_off.go` keeps refusing without it): do_qdisc's verbs (add EXCL\|CREATE, change 0, replace CREATE\|REPLACE, link REPLACE, delete) and do_class's (replace is CREATE alone), both argument loops with every lead kept as tc behaves (W1 help goes on, W2 ingress/clsact overwrite handle and break, W3 `handle 0: handle 1:`, W4 parser failure rc 1, W5 unreachable Garbage arm, W8 pfifo_fast's missing parse_qopt, W13 refused rather than hang, W14 silent stab), parse_noqopt for unknown kinds, and kinds of increments 15/16 refused by name. `sendWrite`: a replay compares and echoes the recorded ack (rtnl_talk, rc 2 on error); on the kernel socket the request is appended to `GOTC_WRITE_OUT`, else `ErrWriteNotApplied`; `LiveSource.Talk` refuses anything but RTM_GET*. Per-kind parsers in `qw_fifo.go`, `qw_fq.go`, `qw_htb.go`, `qw_tbf.go`, `qw_netem.go` (distribution tables from `TC_LIB_DIR`/`/usr/lib/tc`, copies in `testdata/tc-lib`), `qw_ingress.go`. **Corpus:** all 125 tcqwrite rows replay byte for byte (requests, stdout, stderr, rc), and tcqdisc/ng-018 and tcclass/ng-011 are now sent. **`TestGotcTdcWrites`:** of 410 tdc qdisc/class writes, 173 match exactly and 237 are refused by kind (pinned per kind). **`TestGotcQwrite`** (34 rows), `TestGotcPercentRate`, `TestGotcWriteOut`, `TestIsGetRequest`, plus per-kind tables (`TestParseFqQopts`, `TestParseHtb`, `TestParseTbfSfq`, `TestRedEval`, netem's). Coverage 85.3% (tagged). **New leads** for 17B: q_fq.c orphan_mask says `Illegal "initial_quantum"`; fq maxrate percent goes through 32-bit get_percent_rate; htb and tbf build rtables from the 32-bit-clamped rate beside RATE64; htb `debug` stops silently at a digit outside 0-3; tbf's `"limit" and "/latency"`; sfq `depth` says `Illegal "flows"` and `quantum` says `Illegal "limit"`; sfq red with avpkt 0 divides by zero (gotc refuses); netem `duplicate P C` drops the correlation (ec-062); netem's second `loss` message holds a newline inside the quotes; an empty `.dist` fails silently. | | V040 | 17L | **Live diff** on the workbench (kernel 7.3.1, tc 7.2.0 `/nix/store/x1pwsbz5cm23hk58b7fcpn3hhg9j7gwh-iproute2-7.2.0`): gotc built with `-tags gotc_write` at 17W (`/nix/store/4jqbwh9si1kacb7frig6hwxkalkfdgr1-gotc-write-17l`), with `GOTC_CONF_USR_DIR` and `TC_LIB_DIR` set to tc's `share/iproute2` and `lib/tc`. Each row of `tcqwrite.rows.jsonl` runs its pre steps in a fresh named namespace, then gotc with `GOTC_WRITE_OUT` (it sends only its link lookups), then tc, which applies the write. gotc's requests are compared with tc's from the corpus pcaps (seq and pid zeroed), and stdout, stderr and rc with the live tc's. **Result: 125/125.** Every request matches byte for byte, the batch rows' two included, with one masked field: the tcmsg ifindex, 2 live and 3 in the capture, because nlcapgen's nlmon device took index 2 in the capture namespace (tc in the live namespace also has d0 at 2). **Named exceptions** (request identical, output differs because gotc never hears the kernel): ec-092 (htb's quantum warning) and the 12 kernel refusals ng-001, 002, 003, 007, 012, 014, 020–025, where tc prints the extack and exits 2 and gotc exits 0. Everywhere tc stops before sending (ng-004–006, 008–011, 013, 015–019, help rows ec-088, ec-099), stdout, stderr and rc are identical. **tc against the corpus:** stdout, stderr and rc match `ws/tcqwrite` on all 125 rows, so nothing has drifted. **VM:** pre-checked (`free -g`, port 12061 held only by this session's boot, bracketed pgrep). This run loaded no module (17C's captures had already loaded all eight on this boot), and none were removed here. No namespace or extra link is left, there are no core files, `/tmp/t17l` is removed, and the VM is powered off (`nlcap-ws down`; port 12061 free). | | V041 | 17W | **Review fix (PR 356):** `cStrtod` dropped strtod's ERANGE on a hex float, so `0x1p1024` passed get_time and get_rate64 as an integer conversion of infinity: gotc sent where tc says `Illegal "target"` (fq_codel), `Illegal "latency"`/`"rate"` (netem) and `Illegal "timer_slack"` (fq), each rc 1. `hexFloat` now reports the overflow and `cStrtod` returns it, as the decimal path does. `inf` stays no ERANGE. Pinned by `TestCStrtod` (hex overflow ±, `0x1p1023` the largest power) and `TestGotcHexOverflow` (the four commands: rc 1, tc's stderr, no request). | -| V042 | 18C | **Captures** `tcswrite`: `tools/nlcapgen/matrix_tcswrite.go` (+ `TestTcSwriteSpace`), rows in `nix/microvms/workbench/tcswrite.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/` (114 rows, 2.8M). Devices: d0 (one queue) and d1 (8 tx queues, for multiq, mqprio and taprio). **Rows:** every add body of the nine kinds (hfsc with and without `default`; ets bands/strict/quanta/priomap in four shapes; software mqprio; taprio with cycle-time and extension, txtime-assist flags and delay, H and R entries with `max-sdu 0 0`; cbs with `offload 0`; etf with delta, `skip_sock_check` and `deadline_mode`), then change, replace and delete on each; drr, qfq and hfsc classes (quantum, weight/maxpkt, rt/ls/sc/ul in the m1/d/m2 and umax/dmax/rate forms) with change, replace and delete; ets class change and replace; a three-line hfsc batch. **Leads pinned:** W27 (ets `priomap 256` is sent as band 0), W3 in ets, hfsc, cbs, etf and taprio, W39 (`umax 5000`), W40 (`umax 100000 dmax 1us rate 1kbit` is accepted), W41 (`rt ... sc ...` accepted; `rt m1 bogus` prints two errors). **Refusals (45):** drr, qfq, multiq, hfsc, ets and cbs parse errors (rc 1); W33 (`mqprio bogus` and W31's `hw 0 mode channel` exit 255 through invarg, against `num_tc x`'s rc 1); W30 (`queues` twice: the pair-count error); W31's `mode channel hw 0` sent and refused by the kernel (EINVAL); W32 (one `min_rate` for two classes sent, EINVAL: no offload); W34 (a bad `base-time` or `cycle-time` sends no entries: `There should be at least one entry`, EINVAL); W35 (`flags zz`: rc 1, no message; `taprio bogus`: a bare `Unknown argument`); W36 (no num_tc: map and queues dropped, `'mqprio' configuration is necessary`); W16 (hfsc `m2 40gbit`) and W9 (`10%` on a dummy); the kernel's drr quantum 0, ets strict-band quantum, mqprio hw default, taprio on a single-queue device (ENOTSUP), no clockid, max-sdu over the MTU (ERANGE), cbs and etf offload (ENOTSUP); and mqprio and etf change/replace (EINVAL, K31). **K46 (new):** a kind with no kernel change op fails only when the request carries `TCA_OPTIONS` (sch_api.c `qdisc_change`), so `qdisc change`/`replace` of an optionless drr, qfq or multiq succeeds. Every expectation was first checked against the host's tc 7.2.0 in an unprivileged netns (kernel 7.3.3), twice, with identical output. **Gate:** pre-checked (`free -g`, port 12061 free, no workbench process), booted, two batches on one boot, 114/114 OK each, with stdout, stderr, rc and every readback identical. **VM:** the 15 modules the run added were removed with `modprobe -r` (lsmod back to the 86-module baseline); no namespace, no core files; powered off with `down`. | +| V042 | 18C | **Captures** `tcswrite`: `tools/nlcapgen/matrix_tcswrite.go` (+ `TestTcSwriteSpace`), rows in `nix/microvms/workbench/tcswrite.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/` (114 rows, 2.8M). Devices: d0 (one queue) and d1 (8 tx queues, for multiq, mqprio and taprio). **Rows:** every add body of the nine kinds (hfsc with and without `default`; ets bands/strict/quanta/priomap in four shapes; software mqprio; taprio with cycle-time and extension, txtime-assist flags and delay, H and R entries with `max-sdu 0 0`; cbs with `offload 0`; etf with delta, `skip_sock_check` and `deadline_mode`), then change, replace and delete on each; drr, qfq and hfsc classes (quantum, weight/maxpkt, rt/ls/sc/ul in the m1/d/m2 and umax/dmax/rate forms) with change, replace and delete; ets class change and replace; a three-line hfsc batch. **Leads pinned:** W27 (ets `priomap 256` is sent as band 0), W3 in ets, hfsc, cbs, etf and taprio, W39 (`umax 5000`), W40 (`umax 100000 dmax 1us rate 1kbit` is accepted), W41 (`rt ... sc ...` accepted; `rt m1 bogus` prints two errors). **Refusals (45):** drr, qfq, multiq, hfsc, ets and cbs parse errors (rc 1); W33 (`mqprio bogus` and W31's `hw 0 mode channel` exit 255 through invarg, against `num_tc x`'s rc 1); W30 (`queues` twice: the pair-count error); W31's `mode channel hw 0` sent and refused by the kernel (EINVAL); W32 (one `min_rate` for two classes sent, EINVAL: no offload); W34 (a bad `base-time` or `cycle-time` sends no entries: `There should be at least one entry`, EINVAL); W35 (`flags zz`: rc 1, no message; `taprio bogus`: a bare `Unknown argument`); W36 (no num_tc: map and queues dropped, `'mqprio' configuration is necessary`); W16 (hfsc `m2 40gbit`) and W9 (`10%` on a dummy); the kernel's drr quantum 0, ets strict-band quantum, mqprio hw default, taprio on a single-queue device (ENOTSUP), no clockid, max-sdu over the MTU (ERANGE), cbs and etf offload (ENOTSUP); and mqprio and etf change/replace (EINVAL, K31). **K46 (new):** a kind with no kernel change op fails only when the request carries `TCA_OPTIONS` (sch_api.c `qdisc_change`), so `qdisc change`/`replace` of an optionless drr or qfq succeeds (multiq's succeed because it has a change op, `multiq_tune`; corrected in 18B). Every expectation was first checked against the host's tc 7.2.0 in an unprivileged netns (kernel 7.3.3), twice, with identical output. **Gate:** pre-checked (`free -g`, port 12061 free, no workbench process), booted, two batches on one boot, 114/114 OK each, with stdout, stderr, rc and every readback identical. **VM:** the 15 modules the run added were removed with `modprobe -r` (lsmod back to the 86-module baseline); no namespace, no core files; powered off with `down`. | | V043 | 18P | **Encoders**: `Append` on `TcMultiqQopt`, `TcHfscQopt`, `TcServiceCurve`, `TcMqprioQopt` (82 bytes), `TcCbsQopt` (offload then 3 pad bytes) and `TcEtfQopt` (`pkg/xtcpnl/xtcpnl_tc_qencode.go`, cited to pkt_sched.h), each round-tripped through its 15P decoder (`TestTcQencodeRoundTrip`). New `AttrBuilder.BeginNestData`: q_mqprio sets TCA_OPTIONS's rta_len from the aligned tail (q_mqprio.c:216,251), so the struct counts as 84 bytes and the MODE/SHAPER/TC_ENTRY/rate attributes sit inside it; not `addattr_nest_compat`, which adds an inner header. `TestBuildTcSchedWrite` (gotc_write) builds nine requests through `BuildTcWriteRequest` and compares them byte for byte with the tcswrite captures: drr (no options, ec-001), multiq (ec-009), hfsc without and with `default 10` (ec-013/014), ets with flagged TCA_OPTIONS/QUANTA/PRIOMAP nests, NBANDS as u8 and NSTRICT (ec-018), mqprio (ec-025, the 84-byte boundary), cbs PARMS in a nest (ec-034), etf with CLOCK_TAI and `skip_sock_check` = bit 2 (ec-040), and an hfsc class with RSC then FSC (ec-057). `TestBuildTcSchedWriteAllocs` pins 2 allocations; `BenchmarkBuildTcSchedWrite` runs at about 57 µs per request, the same cost as 17P's pfifo benchmark (the framework's request buffer dominates). | -| V044 | 18W | **Writes**: `internal/gotc/qw_sched.go` (drr, qfq, multiq, cbs, etf, and `get_clockid`), `qw_hfsc.go`, `qw_ets.go`, `qw_mqprio.go`, `qw_taprio.go` (with a base-10 `get_s64`), registered in `qoptParsers` and, for drr/qfq/hfsc/ets, `coptParsers`. Each follows its C parser at v7.2.0: messages, the `invarg` exit 255 (W33, W31's `hw 0 mode channel`), the W3 nonzero duplicate checks, W27 (an ets priomap band narrowed to u8 before the bound check), W30 (`queues` twice sums the pairs), W32 (too few rates pass when a word follows), W34 (a bad base-time/cycle-time breaks out silently and sends the rest unread), W35 (`flags zz`: no message; an unknown word: a bare `Unknown argument`), W39 (hfsc `umax*10^6` in 32 bits), W40 (the concave m1 converted as x86 does), W41 (sc1's message, then sc2's attempt, then `HFSC: Illegal "rt"`). **Refused by name** (`not implemented`): W26 (a 17th ets quantum: tc writes past `quanta[16]`), W28 (more than 16 mqprio fp entries: tc reads past `fp[16]`), W29 (the same for taprio's fp and max-sdu), W38 (an hfsc convex curve at rate 0: SIGFPE). **Corpus:** `TestGotcCorpus` now replays `tcswrite` (114 rows, gotc_write) and sends tcsched ng-001..004; 1181 tc rows pass in both builds. **tdc:** `tdcWritesSent` 173 → 273; the nine kinds leave `tdcWriteSkips`; `tdc/qdiscs/ets/65b6` (17 quanta, W26) is in `tdcWriteKnown`. **Tests:** `TestGotcSchedWrite` (34 rows: the leads, with bytes for W27 and W39, and each kind's edges), `TestGetClockid`, `TestGetS64Strtok`. **Mutants:** 8 of 8 killed, each run alone (`systemd-run --user --scope -p MemoryMax=6G`, `-timeout=180s`): priomap not narrowed (ec-066, W27 row), hfsc d in 64 bits (ec-072, W39 row), mqprio not stretched (ec-025, tcsched ng-001), ets nest unflagged (ec-018..020), a base-time message printed (ng-025/026, W34 row), invarg returning 1 (ng-016/018, W33 row), cbs credits unsigned (ec-034/035, tcsched ng-003), W26 not refused (W26 row). `internal/gotc` coverage 84.6% (gotc_write). | +| V044 | 18W | **Writes**: `internal/gotc/qw_sched.go` (drr, qfq, multiq, cbs, etf, and `get_clockid`), `qw_hfsc.go`, `qw_ets.go`, `qw_mqprio.go`, `qw_taprio.go` (with a base-10 `get_s64`), registered in `qoptParsers` and, for drr/qfq/hfsc/ets, `coptParsers`. Each follows its C parser at v7.2.0: messages, the `invarg` exit 255 (W33, W31's `hw 0 mode channel`), the W3 nonzero duplicate checks, W27 (an ets priomap band narrowed to u8 before the bound check), W30 (`queues` twice sums the pairs), W32 (too few rates pass when a word follows), W34 (a bad base-time/cycle-time breaks out silently and sends the rest unread), W35 (`flags zz`: no message; an unknown word: a bare `Unknown argument`), W39 (hfsc `umax*10^6` in 32 bits), W40 (the concave m1 converted as x86 does), W41 (sc1's message, then sc2's attempt, then `HFSC: Illegal "rt"`). **Refused by name** (`not implemented`): W26 (a 17th ets quantum: tc writes past `quanta[16]`), W28 (more than 16 mqprio fp entries: tc reads past `fp[16]`), W29 (the same for taprio's fp and max-sdu), W38 (an hfsc convex curve at rate 0: SIGFPE). **Corpus:** `TestGotcCorpus` now replays `tcswrite` (114 rows, gotc_write) and sends tcsched ng-001..004; 1181 tc rows pass with gotc_write, 1067 without (tcswrite and tcqwrite are replayed only by the write build). **tdc:** `tdcWritesSent` 173 → 273; the nine kinds leave `tdcWriteSkips`; `tdc/qdiscs/ets/65b6` (17 quanta, W26) is in `tdcWriteKnown`. **Tests:** `TestGotcSchedWrite` (34 rows: the leads, with bytes for W27 and W39, and each kind's edges), `TestGetClockid`, `TestGetS64Strtok`. **Mutants:** 8 of 8 killed, each run alone (`systemd-run --user --scope -p MemoryMax=6G`, `-timeout=180s`): priomap not narrowed (ec-066, W27 row), hfsc d in 64 bits (ec-072, W39 row), mqprio not stretched (ec-025, tcsched ng-001), ets nest unflagged (ec-018..020), a base-time message printed (ng-025/026, W34 row), invarg returning 1 (ng-016/018, W33 row), cbs credits unsigned (ec-034/035, tcsched ng-003), W26 not refused (W26 row). `internal/gotc` coverage 84.6% (gotc_write). | +| DOC011 | 18B | **Write-up**: W26–W41 and K46 appended to `upstream/iproute2-tc-write.md`, each with file:line at v7.2.0, its pinning row and gotc's behaviour. **HEAD:** checked with `gh api repos/iproute2/iproute2/commits?path=tc/` on 2026-11-27: `main` is `35033e4713fe`, and none of q_drr/qfq/hfsc/ets/mqprio/taprio/multiq/cbs/etf.c, tc_util.c or tc_core.c has a commit since v7.2.0, so every lead is present at HEAD. **Host checks** (tc 7.2.0, kernel 7.3.3, unprivileged netns): W38 dies with SIGFPE, rc 136, for both `rt rate 0` and `rt umax 0 dmax 10ms rate 0`; W26 (17 quanta), W28 (17 fp) and W29 (17 max-sdu) get past tc and are refused by the kernel. **Correction:** K46 as first written in V042 put multiq with drr and qfq; multiq has a qdisc change op (`multiq_tune`), so its change and replace succeed for that reason. Not submitted to netdev. | | DOC009 | 16B | **Write-up:** `docs/netlink/upstream/iproute2-tc-aqm.md`: status header, reachability, contents, 24 summary rows, six sections, and K32–K43. Not submitted to netdev. **At HEAD** (GitHub mirror, `5d13122576d6`, 2026-11-26): none of the thirteen printers, `tc_red.c`, `tc_qevent.c` or `tc_qdisc.c` has a commit since v7.2.0, so all are present. **Confirmed in the corpus:** Q66 (ec-007), Q73 (ec-021, pw-021), Q79 (ec-038), Q80/Q81 (pw-035, ec-040, pw-040, pw-042), Q83 (pw-052), Q84 (pw-052, ec-055, pw-055), Q86 (ec-053), Q87 (ec-001, pw-005). **Latent, with unit rows:** Q67–Q72, Q74–Q78, Q82, Q85, Q88, Q89. **Dropped:** none. **New leads:** Q88 (gred_parse_vqs's plain parse_rtattr misses a VQ_ENTRY flagged NLA_F_NESTED), Q89 (an unknown dualpi2 ECN mask warns twice and prints an empty word). **Kernel notes:** K32–K42 confirmed at v7.4-rc4, refined: red's qevents only when bound; idle cake MIN_NETLEN 65535; cake_mq no dump_stats; plug no .dump; skbprio 64 classes; dualpi2 rejects both step_thresh forms (sch_dualpi2.c:812). **K43 (new):** codel times lose 1 µs (target 4ms dumps 3999, pw-024). **Unit rows:** TestGotcAqm adds Q88 (44 rows). **Bug classes:** none new; Q88 and Q89 fit C3/C15 and C10. | | DOC010 | 17B | **Write-up:** `docs/netlink/upstream/iproute2-tc-write.md`: status header, reachability, contents, 25 summary rows, eight sections, K44–K45. Not submitted to netdev. **At HEAD** (GitHub mirror, `35033e4713fe`, 2026-11-27): no tc file in scope has a commit since v7.2.0; `lib/utils.c`'s one (`552d9842b1f4`, resolve_address's cache) touches none of it, so all are present. **Confirmed in the corpus:** W1 (ec-088, ec-099), W2 (ec-079, ng-011), W3 (ec-089), W4 (ng-004, ng-005, ng-019), W9 (ng-013), W17 (ec-092), W22 (ec-062). **Latent, with unit rows:** W5, W6, W8, W10–W16, W18–W21, W23–W25. **Dropped:** W7. **Kernel notes:** K44 (each verb's errno and extack, ng-001–003, 007, 014, 020–025), K45 (extack errors and warnings printed in place of RTNETLINK answers). **Bug classes:** candidates for the user: a wrong option named in a copied error message (W15, W20) and a divide by a user-given zero (W21). | | V033 | 16C | **Captures** `tcaqm`: `tools/nlcapgen/matrix_tcaqm.go` (+ `TestTcAqmSpace`), rows in `nix/microvms/workbench/tcaqm.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcaqm/` (132 rows, 2.7M). Modules: sch_cake (with cake_mq), sch_choke, sch_codel, sch_dualpi2, sch_fq_pie, sch_gred, sch_hhf, sch_pie, sch_plug, sch_red, sch_sfb, sch_skbprio. **Fixtures (26):** red default and `ecn harddrop adaptive qevent early_drop block 10`; choke with ecn; gred `setup vqs 4 default 0 grio` with VQs 0 and 1 changed in, and gred with no VQ configured; sfb default and `rehash 5000000 db 5000000` (Q73); codel, pie, fq_pie and hhf defaults plus an option variant each; cake default, plus four variants covering every diffserv mode, the flow modes, nat/wash/ingress, both ack-filters, no-split-gso, rtt, atm overhead mpu, memlimit, fwmark 0xff, autorate-ingress and docsis; cake_mq on a four-queue dummy; dualpi2 default, step_thresh in packets with drop_enqueue/drop_on_overload/any_ect/no_split_gso, and step_thresh in time; plug; skbprio (with `class show`). Each gets `qdisc show` plus `-s`/`-d`/`-o` forms; batches: cake `-s` qdisc/class/qdisc and red `-d` twice. **Refusals:** ng-001 cake_mq under plug (ENOTSUP, "Parent qdisc is not classful"), ng-002 cake_mq autorate-ingress (ENOTSUP, K39), ng-003 gred change over plug (EINVAL), ng-004 `show dev nosuch` (rc 1). **Notes:** batch lines take no options, so the batches pass `-s`/`-d` on tc's own command line; hhf's `admit_bytes 64Kb` is not accepted, so the fixture uses 65536. Q66 is confirmed live (`Scell_log 15qevent early_drop block 10`), and Q73 (sfb prints `rehash 705s`), Q80, Q81, Q83 and Q84 show in the captures. misspell flags dualpi2's `any_ect`; a scoped exclusion in both golangci configs covers the tcaqm and dualpi2 files. **Gate:** two batches on one boot, 132/132 OK, stdout, stderr and rc identical; `TestTcAqmSpace` pins 132 rows, 26 fixtures and 21 cases; no row sends packets. | diff --git a/docs/netlink/upstream/iproute2-tc-write.md b/docs/netlink/upstream/iproute2-tc-write.md index 243e7d960..7f04b8b22 100644 --- a/docs/netlink/upstream/iproute2-tc-write.md +++ b/docs/netlink/upstream/iproute2-tc-write.md @@ -1,6 +1,6 @@ # iproute2 tc qdisc and class writes: help that carries on, ingress that eats words, silent failures and copy-paste messages -**Status (2026-11-27, increment 17):** +**Status (2026-11-27, increments 17 and 18):** - **Not submitted to netdev.** These are drafts for the user's review, recorded here only, like the other write-ups in this directory. No patch, no PR, no sign-off. @@ -41,6 +41,8 @@ - [W15–W25. Kind parsers](#w15w25-kind-parsers) - [W7. Dropped](#w7-dropped) - [K44, K45. Kernel notes](#k44-k45-kernel-notes) +- [Increment 18: W26–W41, the increment-15 kinds](#increment-18-w26w41-the-increment-15-kinds) +- [K46. Kernel note](#k46-kernel-note) ## Summary @@ -157,3 +159,60 @@ it; `est_help` prints and does not exit, after which invarg fails the word. Corr flag must be on.` (ng-014). - **K45.** Extack comes back in the ack and tc prints it as `Error: ...` in place of `RTNETLINK answers`; a warning on success is printed too (ec-092: `Warning: sch_htb: quantum of class 10010 is big.`), rc 0. + +## Increment 18: W26–W41, the increment-15 kinds + +**Scope:** parse_qopt of drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs and etf, and parse_copt of drr, qfq, hfsc +and ets (tc/q_*.c at v7.2.0, with tc_util.c get_clockid). **At HEAD:** the GitHub mirror's `main` is still +`35033e4713fe` (2026-11-27), and none of these files has a commit since v7.2.0. The latest are q_hfsc.c +`3ebe6ec196b6` (JSON output), q_qfq.c `935b2aea0641` and q_multiq.c `4ac8d234f736` (all 2026-03-07), and +tc_core.c `6c1113633fde` (2025-12-07). **Every finding is present at HEAD.** **Corpus:** +`pkg/xtcpnl/testdata/7_3_1/ws/tcswrite/` (114 rows, V042). "ec-N" and "ng-N" in this section are its rows. +**Reproduced** by gotc's port (V044), which replays all 114 rows byte for byte. **Checked** on the host's tc 7.2.0 +(kernel 7.3.3, unprivileged netns) for the crash leads: W38 dies with SIGFPE, rc 136, in both its forms; W26, W28 +and W29 get past tc's parse and are refused by the kernel. + +| lead | where (v7.2.0) | what | pinned by | gotc | +|---|---|---|---|---| +| W26 | q_ets.c:121 | `quanta[nquanta++]` has no bound: a 17th quantum is written past `quanta[16]`, and tc sends what the stack then holds (the kernel says `Invalid number of bands`) | tdc 65b6, unit | refused | +| W27 | q_ets.c:126,156 | a priomap band is a u32 stored in a `__u8` before the bound check: `priomap 256` is sent as band 0 | ec-066 | same | +| W28 | q_mqprio.c:118-127,226 | a repeated `fp` restarts idx but keeps summing `num_fp_entries`; past 16, add_tc_entries reads `fp[16..]` off the stack | unit | refused | +| W29 | q_taprio.c:212-235,93 | the same for taprio's `fp` and `max-sdu` | unit | refused | +| W30 | q_mqprio.c:99,209 | a repeated `queues` sums `cnt_off_pairs`: `queues 4@0 4@4 queues 4@0 4@4` with num_tc 2 fails `pair count 4 can not be higher than given num_tc 2` | ng-020 | same | +| W31 | q_mqprio.c:138,152 | `mode` and `shaper` are taken only after a nonzero `hw` (default 1), so `hw 0 mode channel` is invarg's `unknown argument` (rc 255) and `mode channel hw 0` is sent | ng-018, ng-019 | same | +| W32 | q_mqprio.c:171,186 | too few `min_rate`/`max_rate` values are an error only when no word follows | ng-022, ng-023 | same | +| W33 | q_mqprio.c:204 | an unknown word exits 255 through invarg, where every other error returns 1 | ng-016 (vs ng-017) | same | +| W34 | q_taprio.c:271-296 | a bad `base-time`, `cycle-time` or `cycle-time-extension` is `PREV_ARG; break`: no message, the rest of argv unread, the request sent (the kernel says `There should be at least one entry`) | ng-025, ng-026 | same | +| W35 | q_taprio.c:314-337 | a bad `flags` or `txtime-delay` returns -1 with no message; an unknown word prints a bare `Unknown argument` | ng-027, ng-028 | same | +| W36 | q_taprio.c:349 | with num_tc unset, `map` and `queues` are parsed and then dropped (the priomap goes only when num_tc > 0); the kernel says `'mqprio' configuration is necessary` | ng-029 | same | +| W37 | q_taprio.c:245-267 | sched entries are calloc'd and never freed, a leak per command under `-batch` | — | n/a | +| W38 | q_hfsc.c:396 | a convex curve at rate 0 (`rt rate 0`, `rt umax 0 dmax 10ms rate 0`) divides by zero: SIGFPE | unit, host | refused | +| W39 | q_hfsc.c:396 | `umax * TIME_UNITS_PER_SEC` is unsigned 32-bit: `umax 5000` wraps, giving the wrong convex d | ec-072 | same | +| W40 | q_hfsc.c:387 | the concave m1 is a double put into a u32 with no range check: `umax 100000 dmax 1us` is 10^11, sent as 1215752192 | ec-073 | same | +| W41 | q_hfsc.c:150-179, 299 | rt/ls/sc/ul have no duplicate check (the last wins; `rt ... sc ...` is accepted); a bad `m1` prints `Illegal "m1"`, then sc2 retries the same words, then `Illegal "rt"` | ec-074, ng-007 | same | + +Earlier leads that recur here: W3's nonzero duplicate check in ets `bands` (ec-067), hfsc `default` (ec-068), cbs +(ec-069), etf `delta` (ec-070) and taprio `cycle-time` (ec-071); W16's 32-bit rates in hfsc (`m2 40gbit`, ng-008); +W9's percent rate on a dummy (`ls m2 10%`, ng-009). + +**Notes:** + +- **W26.** tc survives the write on the host because `quanta[16]` lands in other locals. What is sent depends on + the compiler's stack layout. gotc refuses the 17th quantum by name, and the tdc row stays in `tdcWriteKnown`. +- **W28, W29.** add_tc_entries runs `tc < num_fp_entries` (or the max of both counts) with the arrays sized 16. Up + to 16 in total, a repeat overwrites from index 0 and the count is the sum: `fp E fp P` sends two entries, P then + 0. +- **W31.** The word order matters because `hw` is parsed in place. The check is on the value parsed so far, not on + the final one. +- **W34.** Unlike `flags` and `txtime-delay` (W35), which return -1, the three time words fall out of the loop, so + `base-time zz sched-entry ...` sends a schedule with no entries. +- **W39.** The correct d for ec-072 is 100000 - 5000*10^6/12500000 = 99600 us. tc computes (5000*10^6 mod 2^32) + / 12500000 = 56, and sends 99944. + +## K46. Kernel note + +- **K46.** A qdisc kind with no `change` op fails `qdisc change`/`replace` only when the request carries + TCA_OPTIONS (sch_api.c qdisc_change). drr and qfq have no qdisc change op and send no options, so their change + and replace succeed (ec-002/003, ec-006/007). mqprio and etf have none either but always send options, and get + EINVAL `Change operation not supported by specified qdisc.` (ng-036..039, as K31). multiq's succeed for another + reason: it has a change op, `multiq_tune` (sch_multiq.c:394 at v7.4-rc4) (ec-010/011). From 4c7bbc9833576dab8e57601b01861cd92cf430d5 Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 23:11:51 -0800 Subject: [PATCH 6/9] fix(gotc): share mqprio/taprio list words, split hw and scalar arms (gotc 18W lint) gocyclo, goconst and ineffassign findings in the 18W parsers; behaviour unchanged (tcswrite and tdc replay as before). Co-Authored-By: Claude Opus 5.5 --- internal/gotc/qw_mqprio.go | 173 ++++++++++++++++++++++--------------- internal/gotc/qw_sched.go | 2 +- internal/gotc/qw_taprio.go | 130 +++++++++++++--------------- 3 files changed, 165 insertions(+), 140 deletions(-) diff --git a/internal/gotc/qw_mqprio.go b/internal/gotc/qw_mqprio.go index fc83e1ba5..b04de310a 100644 --- a/internal/gotc/qw_mqprio.go +++ b/internal/gotc/qw_mqprio.go @@ -35,15 +35,21 @@ func (r *runner) mqprioExplain() { "\t\t\t max_rate MAX_RATE1 MAX_RATE2 ... }\n") } +// qoptState is what mqprio_parse_opt and taprio_parse_opt share: the +// tc_mqprio_qopt and the fp list. Only mqprio counts the queue pairs. +type qoptState struct { + opt xtcpnl.TcMqprioQopt + fp [xtcpnl.TcQoptMaxQueueCst]uint32 + numFp uint32 + haveTcEntries bool + cntOffPairs int +} + // mqprioArgs is mqprio_parse_opt's locals. type mqprioArgs struct { - opt xtcpnl.TcMqprioQopt + qoptState minRate, maxRate [xtcpnl.TcQoptMaxQueueCst]uint64 shaper, mode uint16 - fp [xtcpnl.TcQoptMaxQueueCst]uint32 - haveTcEntries bool - cntOffPairs int - numFp uint32 flags uint32 } @@ -98,80 +104,129 @@ func (r *runner) mqprioRateList(m *mqprioArgs, args []string, rates *[xtcpnl.TcQ return args, nil } -// mqprioWord is one turn of mqprio_parse_opt's loop; it returns the args -// left, args[0] the last word the turn took. -func (r *runner) mqprioWord(m *mqprioArgs, args []string) ([]string, error) { - next := func() error { - if len(args) < 2 { - return r.incomplete() - } - args = args[1:] - return nil - } - switch a := args[0]; { - case a == "num_tc", a == "hw": - if err := next(); err != nil { - return nil, err - } - v, ok := getU8(args[0], 10) - if !ok { - r.errf("Illegal \"%s\"\n", a) - return nil, errKindParse - } - if a == "hw" { - m.opt.Hw = v - } else { - m.opt.NumTc = v - } - case a == "map": +// The list words mqprio and taprio share. +const ( + wordMap = "map" + wordQueues = "queues" + wordFp = "fp" +) + +// listWord is the map, queues and fp arms, the same in q_mqprio.c and +// q_taprio.c; ok false is a word that is none of them. A repeated queues +// or fp restarts idx but keeps counting (W30, W28, W29); a count parsed +// before a bad offset stays. +func (q *qoptState) listWord(args []string) (rest []string, ok bool) { + switch args[0] { + case wordMap: var idx int args, idx = mqprioList(args, func(idx int, a string) bool { v, ok := getU8(a, 10) if ok { - m.opt.PrioTcMap[idx] = v + q.opt.PrioTcMap[idx] = v } return ok }) for ; idx < xtcpnl.TcQoptMaxQueueCst; idx++ { - m.opt.PrioTcMap[idx] = 0 + q.opt.PrioTcMap[idx] = 0 } - case a == "queues": - // A repeat restarts idx but keeps counting pairs (W30); a count - // parsed before a bad offset stays. + case wordQueues: args, _ = mqprioList(args, func(idx int, a string) bool { t1, ok1, t2, ok2 := strtokAt(a) c, good := getU16(t1, 10) if !ok1 || !good { return false } - m.opt.Count[idx] = c + q.opt.Count[idx] = c o, good := getU16(t2, 10) if !ok2 || !good { return false } - m.opt.Offset[idx] = o - m.cntOffPairs++ + q.opt.Offset[idx] = o + q.cntOffPairs++ return true }) - case a == "fp": - // A repeat restarts idx but keeps counting entries (W28). + case wordFp: args, _ = mqprioList(args, func(idx int, a string) bool { switch a { case "E": - m.fp[idx] = tcFpExpress + q.fp[idx] = tcFpExpress case "P": - m.fp[idx] = tcFpPreemptible + q.fp[idx] = tcFpPreemptible default: return false } - m.numFp++ + q.numFp++ return true }) - m.haveTcEntries = true - case m.opt.Hw != 0 && a == "mode": // only after a nonzero hw (W31) + q.haveTcEntries = true + default: + return nil, false + } + return args, true +} + +// mqprioWord is one turn of mqprio_parse_opt's loop; it returns the args +// left, args[0] the last word the turn took. +func (r *runner) mqprioWord(m *mqprioArgs, args []string) ([]string, error) { + if rest, ok := m.listWord(args); ok { + return rest, nil + } + if m.opt.Hw != 0 && (args[0] == "mode" || args[0] == "shaper") { // only after a nonzero hw (W31) + return r.mqprioHwWord(m, args) + } + next := func() error { + if len(args) < 2 { + return r.incomplete() + } + args = args[1:] + return nil + } + switch a := args[0]; { + case a == "num_tc", a == "hw": if err := next(); err != nil { return nil, err } + v, ok := getU8(args[0], 10) + if !ok { + r.errf("Illegal \"%s\"\n", a) + return nil, errKindParse + } + if a == "hw" { + m.opt.Hw = v + } else { + m.opt.NumTc = v + } + case m.shaper == mqprioShaperBwRate && a == "min_rate": + var err error + if args, err = r.mqprioRateList(m, args, &m.minRate, "min_rate"); err != nil { + return nil, err + } + m.flags |= mqprioFMinRate + case m.shaper == mqprioShaperBwRate && a == "max_rate": + var err error + if args, err = r.mqprioRateList(m, args, &m.maxRate, "max_rate"); err != nil { + return nil, err + } + m.flags |= mqprioFMaxRate + case a == helpWord: + r.mqprioExplain() + return nil, errKindParse + default: + return nil, r.invarg("unknown argument", a) // exit 255 (W33) + } + return args, nil +} + +// mqprioHwWord is the mode and shaper arms, taken only after a nonzero +// hw (W31). +func (r *runner) mqprioHwWord(m *mqprioArgs, args []string) ([]string, error) { + if len(args) < 2 { + return nil, r.incomplete() + } + a := args[0] + args = args[1:] + switch a { + case "mode": switch v := args[0]; { case matches(v, "dcb"): m.mode = 0 @@ -184,10 +239,7 @@ func (r *runner) mqprioWord(m *mqprioArgs, args []string) ([]string, error) { if m.mode != 0 { m.flags |= mqprioFMode } - case m.opt.Hw != 0 && a == "shaper": - if err := next(); err != nil { - return nil, err - } + case "shaper": switch v := args[0]; { case matches(v, "dcb"): m.shaper = 0 @@ -204,34 +256,17 @@ func (r *runner) mqprioWord(m *mqprioArgs, args []string) ([]string, error) { if m.shaper != 0 { m.flags |= mqprioFShaper } - case m.shaper == mqprioShaperBwRate && a == "min_rate": - var err error - if args, err = r.mqprioRateList(m, args, &m.minRate, "min_rate"); err != nil { - return nil, err - } - m.flags |= mqprioFMinRate - case m.shaper == mqprioShaperBwRate && a == "max_rate": - var err error - if args, err = r.mqprioRateList(m, args, &m.maxRate, "max_rate"); err != nil { - return nil, err - } - m.flags |= mqprioFMaxRate - case a == helpWord: - r.mqprioExplain() - return nil, errKindParse - default: - return nil, r.invarg("unknown argument", a) // exit 255 (W33) } return args, nil } // parseMqprioQopt is mqprio_parse_opt. func parseMqprioQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) error, error) { - m := &mqprioArgs{opt: xtcpnl.TcMqprioQopt{ + m := &mqprioArgs{qoptState: qoptState{opt: xtcpnl.TcMqprioQopt{ NumTc: 8, PrioTcMap: [16]uint8{0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 1, 1, 3, 3, 3, 3}, Hw: 1, - }} + }}} for ; len(args) > 0; args = args[1:] { var err error if args, err = r.mqprioWord(m, args); err != nil { diff --git a/internal/gotc/qw_sched.go b/internal/gotc/qw_sched.go index 33ed4f6b4..137736255 100644 --- a/internal/gotc/qw_sched.go +++ b/internal/gotc/qw_sched.go @@ -172,7 +172,7 @@ func parseCbsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) r.errf("cbs: duplicate \"%s\" specification\n", name) return nil, errKindParse } - ok := true + var ok bool if s32 == nil { opt.Offload, ok = getU8(args[0], 0) } else { diff --git a/internal/gotc/qw_taprio.go b/internal/gotc/qw_taprio.go index b8812cd98..a86bcbec4 100644 --- a/internal/gotc/qw_taprio.go +++ b/internal/gotc/qw_taprio.go @@ -63,16 +63,21 @@ type taprioSchedItem struct { // taprioArgs is taprio_parse_opt's locals. type taprioArgs struct { - maxSdu, fp [xtcpnl.TcQoptMaxQueueCst]uint32 + qoptState + maxSdu [xtcpnl.TcQoptMaxQueueCst]uint32 clockid int32 - opt xtcpnl.TcMqprioQopt cycleTimeExt, cycleTime, base int64 entries []taprioSchedItem - haveTcEntries bool - numMaxSdu, numFp uint32 + numMaxSdu uint32 flags, txtimeDelay uint32 } +// The words taprio_parse_opt takes more than twice. +const ( + wordBaseTime = "base-time" + wordFlags = "flags" +) + // taprioEntryCmd is str_to_entry_cmd: S, H and R. func taprioEntryCmd(s string) (uint8, bool) { switch s { @@ -94,6 +99,12 @@ var errTaprioStop = fmt.Errorf("gotc: taprio stops parsing") // taprioWord is one turn of taprio_parse_opt's loop; it returns the args // left, args[0] the last word the turn took. func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { + if rest, ok := t.listWord(args); ok { + return rest, nil + } + if rest, ok, err := r.taprioScalarWord(t, args); ok { + return rest, err + } next := func() error { if len(args) < 2 { return r.incomplete() @@ -101,10 +112,6 @@ func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { args = args[1:] return nil } - dup := func(name string) error { - r.errf("taprio: duplicate \"%s\" specification\n", name) - return errKindParse - } switch a := args[0]; a { case "num_tc": if err := next(); err != nil { @@ -116,48 +123,6 @@ func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { return nil, errKindParse } t.opt.NumTc = v - case "map": - var idx int - args, idx = mqprioList(args, func(idx int, a string) bool { - v, ok := getU8(a, 10) - if ok { - t.opt.PrioTcMap[idx] = v - } - return ok - }) - for ; idx < xtcpnl.TcQoptMaxQueueCst; idx++ { - t.opt.PrioTcMap[idx] = 0 - } - case "queues": - args, _ = mqprioList(args, func(idx int, a string) bool { - t1, ok1, t2, ok2 := strtokAt(a) - c, good := getU16(t1, 10) - if !ok1 || !good { - return false - } - t.opt.Count[idx] = c - o, good := getU16(t2, 10) - if !ok2 || !good { - return false - } - t.opt.Offset[idx] = o - return true - }) - case "fp": - // A repeat restarts idx but keeps counting entries (W29). - args, _ = mqprioList(args, func(idx int, a string) bool { - switch a { - case "E": - t.fp[idx] = tcFpExpress - case "P": - t.fp[idx] = tcFpPreemptible - default: - return false - } - t.numFp++ - return true - }) - t.haveTcEntries = true case "max-sdu": args, _ = mqprioList(args, func(idx int, a string) bool { v, ok := getU32(a, 10) @@ -195,57 +160,82 @@ func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { return nil, errKindParse } t.entries = append(t.entries, taprioSchedItem{cmd, mask, interval}) - case "base-time", "cycle-time", "cycle-time-extension": + case helpWord: + r.taprioExplain() + return nil, errKindParse + default: + r.errf("Unknown argument\n") // the word unnamed (W35) + return nil, errKindParse + } + return args, nil +} + +// taprioScalarWord is the base-time, cycle-time, cycle-time-extension, +// clockid, flags and txtime-delay arms; ok false is a word that is none of +// them. +func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, ok bool, err error) { + switch args[0] { + case wordBaseTime, "cycle-time", "cycle-time-extension", "clockid", wordFlags, "txtime-delay": + default: + return nil, false, nil + } + next := func() error { + if len(args) < 2 { + return r.incomplete() + } + args = args[1:] + return nil + } + dup := func(name string) error { + r.errf("taprio: duplicate \"%s\" specification\n", name) + return errKindParse + } + switch a := args[0]; a { + case wordBaseTime, "cycle-time", "cycle-time-extension": if err := next(); err != nil { - return nil, err + return nil, true, err } - v := map[string]*int64{"base-time": &t.base, "cycle-time": &t.cycleTime, "cycle-time-extension": &t.cycleTimeExt}[a] - if a != "base-time" && *v != 0 { - return nil, dup(a) + v := map[string]*int64{wordBaseTime: &t.base, "cycle-time": &t.cycleTime, "cycle-time-extension": &t.cycleTimeExt}[a] + if a != wordBaseTime && *v != 0 { + return nil, true, dup(a) } s, ok := getS64(args[0], 10) if !ok { - return nil, errTaprioStop + return nil, true, errTaprioStop } *v = s case "clockid": if err := next(); err != nil { - return nil, err + return nil, true, err } if t.clockid != clockidInvalid { - return nil, dup("clockid") + return nil, true, dup("clockid") } v, ok := getClockid(args[0]) if !ok { r.errf("taprio: illegal value for \"clockid\": \"%s\".\n", args[0]) r.errf("It must be a valid SYS-V id (i.e. CLOCK_TAI)\n") - return nil, errKindParse + return nil, true, errKindParse } t.clockid = v - case "flags", "txtime-delay": + case wordFlags, "txtime-delay": if err := next(); err != nil { - return nil, err + return nil, true, err } v := &t.flags if a == "txtime-delay" { v = &t.txtimeDelay } if *v != 0 { - return nil, dup(a) + return nil, true, dup(a) } u, ok := getU32(args[0], 0) if !ok { - return nil, errKindParse // no message (W35) + return nil, true, errKindParse // no message (W35) } *v = u - case helpWord: - r.taprioExplain() - return nil, errKindParse - default: - r.errf("Unknown argument\n") // the word unnamed (W35) - return nil, errKindParse } - return args, nil + return args, true, nil } // parseTaprioQopt is taprio_parse_opt. From 19f232d36698a4b216a26dd32ca0a00bd6750fb1 Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 23:14:46 -0800 Subject: [PATCH 7/9] fix(gotc): clockid, cycle-time and priomap words as constants (gotc 18W lint) Co-Authored-By: Claude Opus 5.5 --- internal/gotc/qw_ets.go | 6 +++--- internal/gotc/qw_fifo.go | 2 +- internal/gotc/qw_fq.go | 2 +- internal/gotc/qw_sched.go | 4 ++-- internal/gotc/qw_taprio.go | 21 ++++++++++++++------- 5 files changed, 21 insertions(+), 14 deletions(-) diff --git a/internal/gotc/qw_ets.go b/internal/gotc/qw_ets.go index c8500ae43..81c8933e2 100644 --- a/internal/gotc/qw_ets.go +++ b/internal/gotc/qw_ets.go @@ -112,8 +112,8 @@ func parseEtsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) e.nstrict = v } e.prioMode, e.quantaMode = false, false - case "quanta", "priomap": - if (a == "quanta" && len(e.quanta) != 0) || (a == "priomap" && len(e.priomap) != 0) { + case "quanta", wordPriomap: + if (a == "quanta" && len(e.quanta) != 0) || (a == wordPriomap && len(e.priomap) != 0) { r.errf("Duplicate \"%s\"\n", a) return nil, errKindParse } @@ -121,7 +121,7 @@ func parseEtsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) return nil, r.incomplete() } args = args[1:] - e.quantaMode, e.prioMode = a == "quanta", a == "priomap" + e.quantaMode, e.prioMode = a == "quanta", a == wordPriomap err = r.etsWord(&e, args[0]) case helpWord: r.etsExplain() diff --git a/internal/gotc/qw_fifo.go b/internal/gotc/qw_fifo.go index 932da5afe..5275bfa53 100644 --- a/internal/gotc/qw_fifo.go +++ b/internal/gotc/qw_fifo.go @@ -76,7 +76,7 @@ func parsePrioQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder return nil, errKindParse } opt.Bands = v - case "priomap": + case wordPriomap: if pmap { r.errf("Error: duplicate priomap\n") return nil, errKindParse diff --git a/internal/gotc/qw_fq.go b/internal/gotc/qw_fq.go index c27249148..3a8327b3e 100644 --- a/internal/gotc/qw_fq.go +++ b/internal/gotc/qw_fq.go @@ -499,7 +499,7 @@ func fqPriomap(r *runner, args []string, prio *xtcpnl.TcPrioQopt, dup bool) ([]s return nil, r.incomplete() } args = args[1:] - if args[0] != "priomap" { + if args[0] != wordPriomap { r.errf("\"priomap\" expected\n") return nil, errKindParse } diff --git a/internal/gotc/qw_sched.go b/internal/gotc/qw_sched.go index 137736255..19cecbabe 100644 --- a/internal/gotc/qw_sched.go +++ b/internal/gotc/qw_sched.go @@ -266,13 +266,13 @@ func parseEtfQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) return nil, errKindParse } opt.Delta = v - case matches(a, "clockid"): + case matches(a, wordClockid): if len(args) < 2 { return nil, r.incomplete() } args = args[1:] if opt.Clockid != clockidInvalid { - return nil, dup("clockid") + return nil, dup(wordClockid) } v, ok := getClockid(args[0]) if !ok { diff --git a/internal/gotc/qw_taprio.go b/internal/gotc/qw_taprio.go index a86bcbec4..c522c937c 100644 --- a/internal/gotc/qw_taprio.go +++ b/internal/gotc/qw_taprio.go @@ -74,8 +74,15 @@ type taprioArgs struct { // The words taprio_parse_opt takes more than twice. const ( - wordBaseTime = "base-time" - wordFlags = "flags" + wordBaseTime = "base-time" + wordCycleTime = "cycle-time" + wordFlags = "flags" +) + +// The words etf, taprio, prio, fq and ets share. +const ( + wordClockid = "clockid" + wordPriomap = "priomap" ) // taprioEntryCmd is str_to_entry_cmd: S, H and R. @@ -175,7 +182,7 @@ func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { // them. func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, ok bool, err error) { switch args[0] { - case wordBaseTime, "cycle-time", "cycle-time-extension", "clockid", wordFlags, "txtime-delay": + case wordBaseTime, wordCycleTime, "cycle-time-extension", wordClockid, wordFlags, "txtime-delay": default: return nil, false, nil } @@ -191,11 +198,11 @@ func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, return errKindParse } switch a := args[0]; a { - case wordBaseTime, "cycle-time", "cycle-time-extension": + case wordBaseTime, wordCycleTime, "cycle-time-extension": if err := next(); err != nil { return nil, true, err } - v := map[string]*int64{wordBaseTime: &t.base, "cycle-time": &t.cycleTime, "cycle-time-extension": &t.cycleTimeExt}[a] + v := map[string]*int64{wordBaseTime: &t.base, wordCycleTime: &t.cycleTime, "cycle-time-extension": &t.cycleTimeExt}[a] if a != wordBaseTime && *v != 0 { return nil, true, dup(a) } @@ -204,12 +211,12 @@ func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, return nil, true, errTaprioStop } *v = s - case "clockid": + case wordClockid: if err := next(); err != nil { return nil, true, err } if t.clockid != clockidInvalid { - return nil, true, dup("clockid") + return nil, true, dup(wordClockid) } v, ok := getClockid(args[0]) if !ok { From c5547ded821b95cf3750aa98b5fb2d7301884acd Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 23:17:31 -0800 Subject: [PATCH 8/9] fix(gotc): quanta, cycle-time-extension and txtime-delay as constants (gotc 18W lint) Co-Authored-By: Claude Opus 5.5 --- internal/gotc/qw_ets.go | 6 +++--- internal/gotc/qw_taprio.go | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/internal/gotc/qw_ets.go b/internal/gotc/qw_ets.go index 81c8933e2..b839ca557 100644 --- a/internal/gotc/qw_ets.go +++ b/internal/gotc/qw_ets.go @@ -112,8 +112,8 @@ func parseEtsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) e.nstrict = v } e.prioMode, e.quantaMode = false, false - case "quanta", wordPriomap: - if (a == "quanta" && len(e.quanta) != 0) || (a == wordPriomap && len(e.priomap) != 0) { + case wordQuanta, wordPriomap: + if (a == wordQuanta && len(e.quanta) != 0) || (a == wordPriomap && len(e.priomap) != 0) { r.errf("Duplicate \"%s\"\n", a) return nil, errKindParse } @@ -121,7 +121,7 @@ func parseEtsQopt(r *runner, args []string, _ string) (func(*xtcpnl.AttrBuilder) return nil, r.incomplete() } args = args[1:] - e.quantaMode, e.prioMode = a == "quanta", a == wordPriomap + e.quantaMode, e.prioMode = a == wordQuanta, a == wordPriomap err = r.etsWord(&e, args[0]) case helpWord: r.etsExplain() diff --git a/internal/gotc/qw_taprio.go b/internal/gotc/qw_taprio.go index c522c937c..cd22bccf9 100644 --- a/internal/gotc/qw_taprio.go +++ b/internal/gotc/qw_taprio.go @@ -74,15 +74,18 @@ type taprioArgs struct { // The words taprio_parse_opt takes more than twice. const ( - wordBaseTime = "base-time" - wordCycleTime = "cycle-time" - wordFlags = "flags" + wordBaseTime = "base-time" + wordCycleTime = "cycle-time" + wordCycleTimeExt = "cycle-time-extension" + wordFlags = "flags" + wordTxtimeDelay = "txtime-delay" ) // The words etf, taprio, prio, fq and ets share. const ( wordClockid = "clockid" wordPriomap = "priomap" + wordQuanta = "quanta" ) // taprioEntryCmd is str_to_entry_cmd: S, H and R. @@ -182,7 +185,7 @@ func (r *runner) taprioWord(t *taprioArgs, args []string) ([]string, error) { // them. func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, ok bool, err error) { switch args[0] { - case wordBaseTime, wordCycleTime, "cycle-time-extension", wordClockid, wordFlags, "txtime-delay": + case wordBaseTime, wordCycleTime, wordCycleTimeExt, wordClockid, wordFlags, wordTxtimeDelay: default: return nil, false, nil } @@ -198,11 +201,11 @@ func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, return errKindParse } switch a := args[0]; a { - case wordBaseTime, wordCycleTime, "cycle-time-extension": + case wordBaseTime, wordCycleTime, wordCycleTimeExt: if err := next(); err != nil { return nil, true, err } - v := map[string]*int64{wordBaseTime: &t.base, wordCycleTime: &t.cycleTime, "cycle-time-extension": &t.cycleTimeExt}[a] + v := map[string]*int64{wordBaseTime: &t.base, wordCycleTime: &t.cycleTime, wordCycleTimeExt: &t.cycleTimeExt}[a] if a != wordBaseTime && *v != 0 { return nil, true, dup(a) } @@ -225,12 +228,12 @@ func (r *runner) taprioScalarWord(t *taprioArgs, args []string) (rest []string, return nil, true, errKindParse } t.clockid = v - case wordFlags, "txtime-delay": + case wordFlags, wordTxtimeDelay: if err := next(); err != nil { return nil, true, err } v := &t.flags - if a == "txtime-delay" { + if a == wordTxtimeDelay { v = &t.txtimeDelay } if *v != 0 { From b1823b9bcc3be4d2f78f0cf79ad156977406b14b Mon Sep 17 00:00:00 2001 From: "randomizedcoder dave.seddon.ca@gmail.com" Date: Fri, 27 Nov 2026 23:21:25 -0800 Subject: [PATCH 9/9] docs(gotc): live diff of the increment-15 kinds' writes, 114/114 (gotc 18L) Co-Authored-By: Claude Opus 5.5 --- docs/netlink/gotc-status.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/netlink/gotc-status.md b/docs/netlink/gotc-status.md index 05184b8ba..c97deaca4 100644 --- a/docs/netlink/gotc-status.md +++ b/docs/netlink/gotc-status.md @@ -240,6 +240,8 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr rows replay byte for byte, and 100 of tdc's 101 rows for these kinds now match (the other is W26) (V044). - **18B (write-up): done.** W26–W41 and K46 appended to [iproute2-tc-write.md](upstream/iproute2-tc-write.md); every lead is present at HEAD (DOC011). +- **18L (live diff): done.** On the workbench, tc and the gotc_write build agree on all 114 tcswrite rows: every request + byte for byte, and stdout, stderr and rc wherever tc stops before the kernel (V045). ## Ledger @@ -296,6 +298,7 @@ etf; branch `gotc/qwrite2`, stacked on `gotc/qwrite`; plan leads W26+, K46+). Dr | V043 | 18P | **Encoders**: `Append` on `TcMultiqQopt`, `TcHfscQopt`, `TcServiceCurve`, `TcMqprioQopt` (82 bytes), `TcCbsQopt` (offload then 3 pad bytes) and `TcEtfQopt` (`pkg/xtcpnl/xtcpnl_tc_qencode.go`, cited to pkt_sched.h), each round-tripped through its 15P decoder (`TestTcQencodeRoundTrip`). New `AttrBuilder.BeginNestData`: q_mqprio sets TCA_OPTIONS's rta_len from the aligned tail (q_mqprio.c:216,251), so the struct counts as 84 bytes and the MODE/SHAPER/TC_ENTRY/rate attributes sit inside it; not `addattr_nest_compat`, which adds an inner header. `TestBuildTcSchedWrite` (gotc_write) builds nine requests through `BuildTcWriteRequest` and compares them byte for byte with the tcswrite captures: drr (no options, ec-001), multiq (ec-009), hfsc without and with `default 10` (ec-013/014), ets with flagged TCA_OPTIONS/QUANTA/PRIOMAP nests, NBANDS as u8 and NSTRICT (ec-018), mqprio (ec-025, the 84-byte boundary), cbs PARMS in a nest (ec-034), etf with CLOCK_TAI and `skip_sock_check` = bit 2 (ec-040), and an hfsc class with RSC then FSC (ec-057). `TestBuildTcSchedWriteAllocs` pins 2 allocations; `BenchmarkBuildTcSchedWrite` runs at about 57 µs per request, the same cost as 17P's pfifo benchmark (the framework's request buffer dominates). | | V044 | 18W | **Writes**: `internal/gotc/qw_sched.go` (drr, qfq, multiq, cbs, etf, and `get_clockid`), `qw_hfsc.go`, `qw_ets.go`, `qw_mqprio.go`, `qw_taprio.go` (with a base-10 `get_s64`), registered in `qoptParsers` and, for drr/qfq/hfsc/ets, `coptParsers`. Each follows its C parser at v7.2.0: messages, the `invarg` exit 255 (W33, W31's `hw 0 mode channel`), the W3 nonzero duplicate checks, W27 (an ets priomap band narrowed to u8 before the bound check), W30 (`queues` twice sums the pairs), W32 (too few rates pass when a word follows), W34 (a bad base-time/cycle-time breaks out silently and sends the rest unread), W35 (`flags zz`: no message; an unknown word: a bare `Unknown argument`), W39 (hfsc `umax*10^6` in 32 bits), W40 (the concave m1 converted as x86 does), W41 (sc1's message, then sc2's attempt, then `HFSC: Illegal "rt"`). **Refused by name** (`not implemented`): W26 (a 17th ets quantum: tc writes past `quanta[16]`), W28 (more than 16 mqprio fp entries: tc reads past `fp[16]`), W29 (the same for taprio's fp and max-sdu), W38 (an hfsc convex curve at rate 0: SIGFPE). **Corpus:** `TestGotcCorpus` now replays `tcswrite` (114 rows, gotc_write) and sends tcsched ng-001..004; 1181 tc rows pass with gotc_write, 1067 without (tcswrite and tcqwrite are replayed only by the write build). **tdc:** `tdcWritesSent` 173 → 273; the nine kinds leave `tdcWriteSkips`; `tdc/qdiscs/ets/65b6` (17 quanta, W26) is in `tdcWriteKnown`. **Tests:** `TestGotcSchedWrite` (34 rows: the leads, with bytes for W27 and W39, and each kind's edges), `TestGetClockid`, `TestGetS64Strtok`. **Mutants:** 8 of 8 killed, each run alone (`systemd-run --user --scope -p MemoryMax=6G`, `-timeout=180s`): priomap not narrowed (ec-066, W27 row), hfsc d in 64 bits (ec-072, W39 row), mqprio not stretched (ec-025, tcsched ng-001), ets nest unflagged (ec-018..020), a base-time message printed (ng-025/026, W34 row), invarg returning 1 (ng-016/018, W33 row), cbs credits unsigned (ec-034/035, tcsched ng-003), W26 not refused (W26 row). `internal/gotc` coverage 84.6% (gotc_write). | | DOC011 | 18B | **Write-up**: W26–W41 and K46 appended to `upstream/iproute2-tc-write.md`, each with file:line at v7.2.0, its pinning row and gotc's behaviour. **HEAD:** checked with `gh api repos/iproute2/iproute2/commits?path=tc/` on 2026-11-27: `main` is `35033e4713fe`, and none of q_drr/qfq/hfsc/ets/mqprio/taprio/multiq/cbs/etf.c, tc_util.c or tc_core.c has a commit since v7.2.0, so every lead is present at HEAD. **Host checks** (tc 7.2.0, kernel 7.3.3, unprivileged netns): W38 dies with SIGFPE, rc 136, for both `rt rate 0` and `rt umax 0 dmax 10ms rate 0`; W26 (17 quanta), W28 (17 fp) and W29 (17 max-sdu) get past tc and are refused by the kernel. **Correction:** K46 as first written in V042 put multiq with drr and qfq; multiq has a qdisc change op (`multiq_tune`), so its change and replace succeed for that reason. Not submitted to netdev. | +| V045 | 18L | **Live diff** on the workbench (kernel 7.3.1, tc 7.2.0 `/nix/store/x1pwsbz5cm23hk58b7fcpn3hhg9j7gwh-iproute2-7.2.0`). gotc was built with `-tags gotc_write` at the 18W lint fixes (`/nix/store/f88nmr6y4yj6w75x8a9i5j8y64s85k7f-gotc-write-18l`), with `GOTC_CONF_USR_DIR` and `TC_LIB_DIR` set to tc's. V040's method: each row of `tcswrite.rows.jsonl` runs its pre steps in a fresh named namespace, then gotc with `GOTC_WRITE_OUT`, then tc. gotc's requests are compared with tc's from the corpus pcaps, with seq, pid and the tcmsg ifindex zeroed (gotc saw d0 at 2 and d1 at 3). **Result: 114/114.** Every request matches byte for byte, the hfsc batch row's three included. **Named exceptions:** 25 rows where the request is identical but the output differs, because gotc never hears the kernel. Six are taprio writes that succeed with the kernel's `Warning: sch_taprio: Size table not specified` (ec-027, 028, 030, 031, 032, 071). The other 19 are kernel refusals, where tc prints the extack and exits 2 while gotc exits 0: ng-002, 014, 015, 019, 021–026, 029–032, 034, 036–039. Wherever tc stops before sending (the 20 parse refusals, W33's and W31's rc 255 among them), stdout, stderr and rc are identical. **tc against the corpus:** stdout, stderr and rc match `ws/tcswrite` on all 114 rows, so nothing has drifted. **VM:** pre-checked (`free -g`: 62G available; port 12061 free; no workbench process), booted with `up`; the baseline was 86 modules, no namespace, no core files. The run loaded the 10 sch_* modules (sch_mqprio_lib among them) and removed them with `modprobe -r`, returning lsmod to 86. No namespace is left, there are no core files, and `/tmp/t18l` is removed. Powered off with `down`, port 12061 free. | | DOC009 | 16B | **Write-up:** `docs/netlink/upstream/iproute2-tc-aqm.md`: status header, reachability, contents, 24 summary rows, six sections, and K32–K43. Not submitted to netdev. **At HEAD** (GitHub mirror, `5d13122576d6`, 2026-11-26): none of the thirteen printers, `tc_red.c`, `tc_qevent.c` or `tc_qdisc.c` has a commit since v7.2.0, so all are present. **Confirmed in the corpus:** Q66 (ec-007), Q73 (ec-021, pw-021), Q79 (ec-038), Q80/Q81 (pw-035, ec-040, pw-040, pw-042), Q83 (pw-052), Q84 (pw-052, ec-055, pw-055), Q86 (ec-053), Q87 (ec-001, pw-005). **Latent, with unit rows:** Q67–Q72, Q74–Q78, Q82, Q85, Q88, Q89. **Dropped:** none. **New leads:** Q88 (gred_parse_vqs's plain parse_rtattr misses a VQ_ENTRY flagged NLA_F_NESTED), Q89 (an unknown dualpi2 ECN mask warns twice and prints an empty word). **Kernel notes:** K32–K42 confirmed at v7.4-rc4, refined: red's qevents only when bound; idle cake MIN_NETLEN 65535; cake_mq no dump_stats; plug no .dump; skbprio 64 classes; dualpi2 rejects both step_thresh forms (sch_dualpi2.c:812). **K43 (new):** codel times lose 1 µs (target 4ms dumps 3999, pw-024). **Unit rows:** TestGotcAqm adds Q88 (44 rows). **Bug classes:** none new; Q88 and Q89 fit C3/C15 and C10. | | DOC010 | 17B | **Write-up:** `docs/netlink/upstream/iproute2-tc-write.md`: status header, reachability, contents, 25 summary rows, eight sections, K44–K45. Not submitted to netdev. **At HEAD** (GitHub mirror, `35033e4713fe`, 2026-11-27): no tc file in scope has a commit since v7.2.0; `lib/utils.c`'s one (`552d9842b1f4`, resolve_address's cache) touches none of it, so all are present. **Confirmed in the corpus:** W1 (ec-088, ec-099), W2 (ec-079, ng-011), W3 (ec-089), W4 (ng-004, ng-005, ng-019), W9 (ng-013), W17 (ec-092), W22 (ec-062). **Latent, with unit rows:** W5, W6, W8, W10–W16, W18–W21, W23–W25. **Dropped:** W7. **Kernel notes:** K44 (each verb's errno and extack, ng-001–003, 007, 014, 020–025), K45 (extack errors and warnings printed in place of RTNETLINK answers). **Bug classes:** candidates for the user: a wrong option named in a copied error message (W15, W20) and a divide by a user-given zero (W21). | | V033 | 16C | **Captures** `tcaqm`: `tools/nlcapgen/matrix_tcaqm.go` (+ `TestTcAqmSpace`), rows in `nix/microvms/workbench/tcaqm.rows.jsonl`, corpus in `pkg/xtcpnl/testdata/7_3_1/ws/tcaqm/` (132 rows, 2.7M). Modules: sch_cake (with cake_mq), sch_choke, sch_codel, sch_dualpi2, sch_fq_pie, sch_gred, sch_hhf, sch_pie, sch_plug, sch_red, sch_sfb, sch_skbprio. **Fixtures (26):** red default and `ecn harddrop adaptive qevent early_drop block 10`; choke with ecn; gred `setup vqs 4 default 0 grio` with VQs 0 and 1 changed in, and gred with no VQ configured; sfb default and `rehash 5000000 db 5000000` (Q73); codel, pie, fq_pie and hhf defaults plus an option variant each; cake default, plus four variants covering every diffserv mode, the flow modes, nat/wash/ingress, both ack-filters, no-split-gso, rtt, atm overhead mpu, memlimit, fwmark 0xff, autorate-ingress and docsis; cake_mq on a four-queue dummy; dualpi2 default, step_thresh in packets with drop_enqueue/drop_on_overload/any_ect/no_split_gso, and step_thresh in time; plug; skbprio (with `class show`). Each gets `qdisc show` plus `-s`/`-d`/`-o` forms; batches: cake `-s` qdisc/class/qdisc and red `-d` twice. **Refusals:** ng-001 cake_mq under plug (ENOTSUP, "Parent qdisc is not classful"), ng-002 cake_mq autorate-ingress (ENOTSUP, K39), ng-003 gred change over plug (EINVAL), ng-004 `show dev nosuch` (rc 1). **Notes:** batch lines take no options, so the batches pass `-s`/`-d` on tc's own command line; hhf's `admit_bytes 64Kb` is not accepted, so the fixture uses 65536. Q66 is confirmed live (`Scell_log 15qevent early_drop block 10`), and Q73 (sfb prints `rehash 705s`), Q80, Q81, Q83 and Q84 show in the captures. misspell flags dualpi2's `any_ect`; a scoped exclusion in both golangci configs covers the tcaqm and dualpi2 files. **Gate:** two batches on one boot, 132/132 OK, stdout, stderr and rc identical; `TestTcAqmSpace` pins 132 rows, 26 fixtures and 21 cases; no row sends packets. |