Merge branch 'selftests-mlxsw-add-few-fixes-for-sharedbuffer-test'
authorJakub Kicinski <kuba@kernel.org>
Sat, 7 Dec 2024 01:37:46 +0000 (17:37 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Dec 2024 01:37:46 +0000 (17:37 -0800)
commitbd0c9070436da98a64f734046b36784eb02e997d
treed3e776e9d5c49bb6ef4954a250f2fcdba1ad09e4
parent11776cff0b563c8b8a4fa76cab620bfb633a8cb8
parent5f2c7ab15fd806043db1a7d54b5ec36be0bd93b1
Merge branch 'selftests-mlxsw-add-few-fixes-for-sharedbuffer-test'

Petr Machata says:

====================
selftests: mlxsw: Add few fixes for sharedbuffer test

Danielle Ratson writes:

Currently, the sharedbuffer test fails sometimes because it is reading a
maximum occupancy that is larger than expected on some different cases.

This is happening because the test assumes that the packet it is sending
is the only packet being passed to the device.

In addition, some duplications on one hand, and redundant test cases on
the other hand, were found in the test.

Add egress filters on h1 and h2 that will guarantee that the packets in
the buffer are sent in the test, and remove the redundant test cases.
====================

Link: https://patch.msgid.link/cover.1733414773.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>