# SPDX-License-Identifier: GPL-2.0source../tc_flower_scale.sh
tc_flower_get_target(){localshould_fail=$1;shift# 6144 (6x1024) is the theoretical maximum.# One bank of 512 rules is taken by the 18-byte MC router rule.# One rule is the ACL catch-all.# 6144 - 512 - 1 = 5631localtarget=5631if((!should_fail));thenecho$targetelseecho$((target+1))fi}