]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: qos_mc_aware: Tweak for min shaper
authorPetr Machata <petrm@mellanox.com>
Wed, 31 Oct 2018 09:56:45 +0000 (09:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2018 19:56:59 +0000 (12:56 -0700)
commitc1385054b969e63e3e72f5571e06f8f5121a8fe9
treed2d6e30cb55b4c80351636ed670d63f135d691ea
parent9e45994829f4dff2a64548cb6a8d5960437d4522
selftests: mlxsw: qos_mc_aware: Tweak for min shaper

Since the minimum shaper is now being enabled for MC TCs, it's
unreasonable to expect no UC traffic loss. Minimal min shaper value is
200Mbps, which is 20% of the 1Gbps that this test configures on egress.
To cover for glitches, tolerate up to 25% UC degradation under MC
overload.

Fixes: f89c5649e38b ("selftests: mlxsw: Add a test for UC behavior under MC flood")
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/qos_mc_aware.sh