selftests: devlink_lib: Add function for querying maximum pool size
authorAmit Cohen <amcohen@nvidia.com>
Wed, 14 Sep 2022 11:21:50 +0000 (13:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 01:07:59 +0000 (18:07 -0700)
commitbd3f7850720c2f1086718546034742783dc3a371
tree1e0fa0f61b99aa192e1e44da7acd9c50c3f65710
parent61a00b196aaf5ba3d6ffb94e93c5d57bed449a32
selftests: devlink_lib: Add function for querying maximum pool size

The maximum pool size is exposed via 'devlink sb' command. The next
patch will add a test which increases some pools to the maximum size.

Add a function to query the value.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/devlink_lib.sh