提交 8f3f0935 编写于 作者: P Petr Machata 提交者: David S. Miller

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: b5638d46 ("selftests: mlxsw: Add a test for UC behavior under MC flood")
Signed-off-by: NPetr Machata <petrm@mellanox.com>
Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0fe64023
...@@ -311,7 +311,7 @@ test_mc_aware() ...@@ -311,7 +311,7 @@ test_mc_aware()
ret = 100 * ($ucth1 - $ucth2) / $ucth1 ret = 100 * ($ucth1 - $ucth2) / $ucth1
if (ret > 0) { ret } else { 0 } if (ret > 0) { ret } else { 0 }
") ")
check_err $(bc <<< "$deg > 10") check_err $(bc <<< "$deg > 25")
local interval=$((d1 - d0)) local interval=$((d1 - d0))
local mc_ir=$(rate $u0 $u1 $interval) local mc_ir=$(rate $u0 $u1 $interval)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册