aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2023-11-28 16:50:40 +0100
committerJakub Kicinski <[email protected]>2023-11-29 20:03:24 -0800
commit1686b8d902fd4f1486b21304a62d469fd3713019 (patch)
tree461c7ad9eb9987560d59ab4c48c65249ec6fdea6 /tools/testing/selftests/bpf/progs/test_autoload.c
parent80638da22e11164e6833f8697ad94136e0a6cdd5 (diff)
mlxsw: spectrum_fid: Add an op to get PGT allocation size
In the CFF flood mode, the PGT allocation size of RFID family will not depend on number of FIDs, but rather number of ports and LAGs. Therefore introduce a FID family operation to calculate the PGT allocation size. The way that size is calculated in the CFF mode depends on calling fallible functions. Thus express the op as returning an int, with the size returned via a pointer argument. Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Amit Cohen <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Link: https://lore.kernel.org/r/1174651b7160fcedbef50010ae4b68201112fe6f.1701183892.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions