Re: [PATCH net-next] tc-testing: Add control-plane selftests for sch_mq
From: Cong Wang
Date: Tue Aug 03 2021 - 18:21:36 EST
On Tue, Aug 3, 2021 at 3:17 PM Peilin Ye <yepeilin.cs@xxxxxxxxx> wrote:
> + "setup": [
> + "echo \"1 1 4\" > /sys/bus/netdevsim/new_device"
> + ],
> + "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq",
> + "expExitCode": "0",
> + "verifyCmd": "$TC qdisc show dev $ETH",
> + "matchPattern": "qdisc pfifo_fast 0: parent 1:[1-4] bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1",
> + "matchCount": "4",
> + "teardown": [
> + "echo \"1\" > /sys/bus/netdevsim/del_device"
> + ]
> + },
Like I mentioned to Peilin, I am _not_ sure whether it is better to create
netdevsim device in such a way. Maybe we need to create it before
these tests and pass it via cmdline?? Lucas?
Thanks.