linux/tools/testing/selftests/drivers/net
Danielle Ratson 03528ff8de selftests: mlxsw: sharedbuffer: Ensure no extra packets are counted
[ Upstream commit 5f2c7ab15f ]

The test assumes that the packet it is sending is the only packet being
passed to the device.

However, it is not the case and so other packets are filling the buffers
as well. Therefore, the test sometimes fails because it is reading a
maximum occupancy that is larger than expected.

Add egress filters on $h1 and $h2 that will guarantee the above.

Fixes: a865ad9996 ("selftests: mlxsw: Add shared buffer traffic test")
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/64c28bc9b1cc1d78c4a73feda7cedbe9526ccf8b.1733414773.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-19 18:11:28 +01:00
..
bonding selftests: bonding: set active slave to primary eth1 specifically 2024-03-01 13:35:07 +01:00
dsa perf tests test_bridge_fdb_stress.sh: Fix redirection of stderr to stdin 2023-04-04 09:39:55 -03:00
mlxsw selftests: mlxsw: sharedbuffer: Ensure no extra packets are counted 2024-12-19 18:11:28 +01:00
netdevsim selftests: netdevsim: fix the udp_tunnel_nic test 2024-01-31 16:19:04 -08:00
ocelot selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more comprehensive 2023-02-07 12:20:21 +01:00
team selftests: team: Add missing config options 2024-02-05 20:14:38 +00:00