]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add target for router test on spectrum
authorYuval Mintz <yuvalm@mellanox.com>
Sat, 30 Jun 2018 00:50:28 +0000 (02:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 13:06:15 +0000 (22:06 +0900)
commitd0abe0295beb577691bd76207e0b27005ef5e827
tree58b61411d2dfb1bd1dec5887da8be56dd8109ce6
parent793713233ca1cf54916029282e8d7a7449c7a95a
selftests: mlxsw: Add target for router test on spectrum

IPv4 routes in Spectrum are based on the kvd single-hash, but as it's
a hash we need to assume we cannot reach 100% of its capacity.

Add a wrapper that provides us with good/bad target numbers for the
Spectrum ASIC.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
[petrm@mellanox.com: Drop shebang.]
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/spectrum/router_scale.sh [new file with mode: 0644]