1# SPDX-License-Identifier: GPL-2.0
2source ../tc_flower_scale.sh
3
4tc_flower_get_target()
5{
6	local should_fail=$1; shift
7
8	# The driver associates a counter with each tc filter, which means the
9	# number of supported filters is bounded by the number of available
10	# counters.
11	# Currently, the driver supports 30K (30,720) flow counters and six of
12	# these are used for multicast routing.
13	local target=30714
14
15	if ((! should_fail)); then
16		echo $target
17	else
18		echo $((target + 1))
19	fi
20}
21