OSDN Git Service

selftests: forwarding: ETS: Use Qdisc counters
authorPetr Machata <petrm@mellanox.com>
Thu, 5 Mar 2020 07:16:44 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2020 22:03:32 +0000 (14:03 -0800)
commitb9b72999eb86e650489a4321c8e95a4e2e3df20c
treec0f9107bbf2661d7a317bce4e6a6c9d53aa11664
parent7bec1a45d5708a19154b94758802d7c599b99119
selftests: forwarding: ETS: Use Qdisc counters

Currently the SW-datapath ETS selftests use "ip link" stats to obtain the
number of packets that went through a given band. mlxsw then uses ethtool
per-priority counters.

Instead, change both to use qdiscs. In SW datapath this is the obvious
choice, and now that mlxsw offloads FIFO, this should work on the offloaded
datapath as well. This has the effect of verifying that the FIFO offload
works.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/sch_ets.sh
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/sch_ets.sh
tools/testing/selftests/net/forwarding/sch_ets_tests.sh