selftests: net: Adapt ethtool mq tests to fix in qdisc graft
authorVictor Nogueira <victor@mojatatu.com>
Sat, 11 Jan 2025 21:15:15 +0000 (18:15 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2025 09:28:51 +0000 (09:28 +0000)
commit0a5b8fff01bde1b9908f00004c676f2e2459333b
tree5fc5866578180eb92817d3d0593b5a02ef088a34
parent001ba0902046cb6c352494df610718c0763e77a5
selftests: net: Adapt ethtool mq tests to fix in qdisc graft

Because of patch[1] the graft behaviour changed

So the command:

tcq replace parent 100:1 handle 204:

Is no longer valid and will not delete 100:4 added by command:

tcq replace parent 100:4 handle 204: pfifo_fast

So to maintain the original behaviour, this patch manually deletes 100:4
and grafts 100:1

Note: This change will also work fine without [1]

[1] https://lore.kernel.org/netdev/20250111151455.75480-1-jhs@mojatatu.com/T/#u

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/netdevsim/tc-mq-visibility.sh