diff options
author | Danielle Ratson <[email protected]> | 2024-12-05 17:36:01 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-12-06 17:37:37 -0800 |
commit | 5f2c7ab15fd806043db1a7d54b5ec36be0bd93b1 (patch) | |
tree | d3e776e9d5c49bb6ef4954a250f2fcdba1ad09e4 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 6c46ad4d1bb2e8ec2265296e53765190f6e32f33 (diff) |
selftests: mlxsw: sharedbuffer: Ensure no extra packets are counted
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: a865ad999603 ("selftests: mlxsw: Add shared buffer traffic test")
Signed-off-by: Danielle Ratson <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: Petr Machata <[email protected]>
Link: https://patch.msgid.link/64c28bc9b1cc1d78c4a73feda7cedbe9526ccf8b.1733414773.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions