OSDN Git Service

selftests: mlxsw: Add shared buffer configuration test
authorShalom Toledo <shalomt@mellanox.com>
Thu, 27 Feb 2020 07:50:14 +0000 (08:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:10:14 +0000 (11:10 -0800)
commit6697b51ed340f8cd3d983418bd4e4eab30810b5d
tree83adc2d7970e995379ca7e65aec139daf8dcf275
parent1cbe65e09b5a6379dd31b85879a7d8fded3fdc42
selftests: mlxsw: Add shared buffer configuration test

Test physical ports' shared buffer configuration options using random
values related to a specific configuration option. There are 3
configuration options: pool, TC bind and portpool.

Each sub-test, test a different configuration option and random the related
values as the follow:
 * For pools, pool's size will be randomized.
 * For TC bind, pool number and threshold will be randomized.
 * For portpools, threshold will be randomized.

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/sharedbuffer_configuration.py [new file with mode: 0755]