Commit cb7d2c71 authored by Danielle Ratson's avatar Danielle Ratson Committed by David S. Miller

selftests: mlxsw: Add Spectrum-2 mirror-to-gretap target scale test

Like in Spectrum, use the number of analyzers taken from the devlink
command.
Signed-off-by: default avatarDanielle Ratson <danieller@mellanox.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49c65e4f
# SPDX-License-Identifier: GPL-2.0
source ../mirror_gre_scale.sh
mirror_gre_get_target()
{
local should_fail=$1; shift
local target
target=$(devlink_resource_size_get span_agents)
if ((! should_fail)); then
echo $target
else
echo $((target + 1))
fi
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment