提交 cb7d2c71 编写于 作者: D Danielle Ratson 提交者: 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: NDanielle Ratson <danieller@mellanox.com>
Acked-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册