]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fix flower parent qdisc
authorVlad Buslov <vladbu@mellanox.com>
Thu, 14 May 2020 06:35:52 +0000 (09:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 19:49:35 +0000 (12:49 -0700)
commit76ec0f0882f9deac72bb54196a96f14a76e5b84b
tree0ee8c71c54ce0636e86c1d05549080310b2b2220
parent03ec00f4d4d6b46784665f884e2361c27cf0a187
selftests: fix flower parent qdisc

Flower tests used to create ingress filter with specified parent qdisc
"parent ffff:" but dump them on "ingress". With recent commit that fixed
tcm_parent handling in dump those are not considered same parent anymore,
which causes iproute2 tc to emit additional "parent ffff:" in first line of
filter dump output. The change in output causes filter match in tests to
fail.

Prevent parent qdisc output when dumping filters in flower tests by always
correctly specifying "ingress" parent both when creating and dumping
filters.

Fixes: 08bf7de69f7f ("net_sched: fix tcm_parent in tc filter dump")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/filters/tests.json
tools/testing/selftests/tc-testing/tdc_batch.py