selftests: mlxsw: Add a test for UC behavior under MC flood
authorPetr Machata <petrm@mellanox.com>
Thu, 20 Sep 2018 06:21:36 +0000 (09:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 14:46:02 +0000 (07:46 -0700)
commitb5638d46c90a6998859a4fc9ea697b264da96092
treefbfc66ddbb2036532f2a3db778b024121b9ac2c5
parenta381ed12ea33888a08f0e3e5ba22a255fa5f7257
selftests: mlxsw: Add a test for UC behavior under MC flood

A so-called "MC-aware" mode has recently been enabled in mlxsw. In
MC-aware mode, BUM traffic is handled in a special way so that when a
switch is flooded with BUM, UC performance isn't unduly impacted.
Without enablement of this mode, a stream of BUM traffic can cause
sustained UC throughput drop in excess of 99 %.

Add a test for this behavior. Compare how much UC throughput degrades as
a stream of broadcast frames floods the switch. A minimal degradation is
tolerated to cover for glitches in traffic injection performance.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@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 [new file with mode: 0644]