selftests: forwarding: devlink_lib: Add shared buffer helpers
authorPetr Machata <petrm@mellanox.com>
Thu, 28 Mar 2019 12:12:24 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 00:20:52 +0000 (17:20 -0700)
commitd04cc726c8da45732c815549f2841a646332cc94
tree57811141044611b96e42d49e3288c588b7a121d7
parent8e46aee69722054e85ae4b6029d0aed678016950
selftests: forwarding: devlink_lib: Add shared buffer helpers

Add helpers to obtain, set, and restore a pool size, and a port-pool and
tc-pool threshold.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/devlink_lib.sh