1 # SPDX-License-Identifier: GPL-2.0 2 source ../rif_mac_profile_scale.sh 3 4 rif_mac_profile_get_target() 5 { 6 local should_fail=$1 7 local target 8 9 target=$(devlink_resource_size_get rif_mac_profiles) 10 11 if ((! should_fail)); then 12 echo $target 13 else 14 echo $((target + 1)) 15 fi 16 }
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.