netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] selftests: mlxsw: Add few fixes for sharedbuffer test
@ 2024-12-05 16:35 Petr Machata
  2024-12-05 16:35 ` [PATCH net 1/3] selftests: mlxsw: sharedbuffer: Remove h1 ingress test case Petr Machata
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Petr Machata @ 2024-12-05 16:35 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Andrew Lunn, netdev
  Cc: Ido Schimmel, Petr Machata, Danielle Ratson, Jiri Pirko,
	Shuah Khan, linux-kselftest, mlxsw

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.

Danielle Ratson (3):
  selftests: mlxsw: sharedbuffer: Remove h1 ingress test case
  selftests: mlxsw: sharedbuffer: Remove duplicate test cases
  selftests: mlxsw: sharedbuffer: Ensure no extra packets are counted

 .../drivers/net/mlxsw/sharedbuffer.sh         | 55 ++++++++++++++-----
 1 file changed, 40 insertions(+), 15 deletions(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-07  1:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-05 16:35 [PATCH net 0/3] selftests: mlxsw: Add few fixes for sharedbuffer test Petr Machata
2024-12-05 16:35 ` [PATCH net 1/3] selftests: mlxsw: sharedbuffer: Remove h1 ingress test case Petr Machata
2024-12-05 16:36 ` [PATCH net 2/3] selftests: mlxsw: sharedbuffer: Remove duplicate test cases Petr Machata
2024-12-05 16:36 ` [PATCH net 3/3] selftests: mlxsw: sharedbuffer: Ensure no extra packets are counted Petr Machata
2024-12-07  1:40 ` [PATCH net 0/3] selftests: mlxsw: Add few fixes for sharedbuffer test patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).