File Index
Files and directories
Sign in
FILE

mirror_gre_scale.sh

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/drivers/net/mlxsw/spectrum/mirror_gre_scale.sh BASH
 1# SPDX-License-Identifier: GPL-2.0
 2source ../mirror_gre_scale.sh
 3
 4mirror_gre_get_target()
 5{
 6	local should_fail=$1; shift
 7	local target
 8
 9	target=$(devlink_resource_size_get span_agents)
10
11	if ((! should_fail)); then
12		echo $target
13	else
14		echo $((target + 1))
15	fi
16}
~/ Read-only file preview.