selftests: mlxsw: qos_mc_aware: Fix mausezahn invocation
authorPetr Machata <petrm@mellanox.com>
Wed, 15 Jan 2020 11:53:47 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:22:53 +0000 (08:22 +0100)
commit6084f8300ed1a15acacbba683f49ade487ac1a1f
tree5420ec3f52be934f0335ff400eba68a1db2e75a0
parent2a3e4499a50fbbee64966393c5e6e0fd821049b0
selftests: mlxsw: qos_mc_aware: Fix mausezahn invocation

commit fef6d6704944c7be72fd2b77c021f1aed3d5df0d upstream.

Mausezahn does not recognize "own" as a keyword on source IP address. As a
result, the MC stream is not running at all, and therefore no UC
degradation can be observed even in principle.

Fix the invocation, and tighten the test: due to the minimum shaper
configured at the MC TCs, we always expect about 20% degradation. Fail the
test if it is lower.

Fixes: 573363a68f27 ("selftests: mlxsw: Add qos_lib.sh")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reported-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh