Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9136074d authored by Petr Machata's avatar Petr Machata Committed by David S. Miller
Browse files

selftests: mlxsw: Add target for mirror-to-gretap test on spectrum



Add a wrapper around mlxsw/mirror_gre_scale.sh that parameterized number
of offloadable mirrors on Spectrum machines.

Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b973b78a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
source ../mirror_gre_scale.sh

mirror_gre_get_target()
{
	local should_fail=$1; shift

	if ((! should_fail)); then
		echo 3
	else
		echo 4
	fi
}