brintos

brintos / linux-shallow public Read only

0
0
Text · 387 B · f9bfd89 Raw
20 lines · bash
1# SPDX-License-Identifier: GPL-2.02source ../tc_flower_scale.sh3 4tc_flower_get_target()5{6	local should_fail=$1; shift7 8	# 6144 (6x1024) is the theoretical maximum.9	# One bank of 512 rules is taken by the 18-byte MC router rule.10	# One rule is the ACL catch-all.11	# 6144 - 512 - 1 = 563112	local target=563113 14	if ((! should_fail)); then15		echo $target16	else17		echo $((target + 1))18	fi19}20