staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / drivers / net / mlxsw / spectrum / tc_flower_scale.sh
blobf9bfd8937765c9026937490c6212943f157641a2
1 # SPDX-License-Identifier: GPL-2.0
2 source ../tc_flower_scale.sh
4 tc_flower_get_target()
6 local should_fail=$1; shift
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 = 5631
12 local target=5631
14 if ((! should_fail)); then
15 echo $target
16 else
17 echo $((target + 1))