]> 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)
commit057e9dc1acae3270be6ea376100a025dbcd965f1
tree0ee8c71c54ce0636e86c1d05549080310b2b2220
parent89d190d532d5b2874448329e63783bda610e3275
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: f82cf94da6c5 ("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