OSDN Git Service

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)
commit0531b0357ba37464e5c0033e1b7c69bbf5ecd8fb
tree0ee8c71c54ce0636e86c1d05549080310b2b2220
parent38152ea37d8bdaffa22603e0a5b5b86cfa8714c9
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: a7df4870d79b ("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