netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] mlxsw: Handle MTU values
@ 2024-06-13 14:07 Petr Machata
  2024-06-13 14:07 ` [PATCH net-next 1/5] mlxsw: port: Edit maximum MTU value Petr Machata
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Petr Machata @ 2024-06-13 14:07 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev
  Cc: Ido Schimmel, Petr Machata, Amit Cohen, mlxsw

Amit Cohen writes:

The driver uses two values for maximum MTU, but neither is accurate.
In addition, the value which is configured to hardware is not calculated
correctly. Handle these issues and expose accurate values for minimum
and maximum MTU per netdevice.

Add test cases to check that the exposed values are really supported.

Patch set overview:
Patches #1-#3 set the driver to use accurate values for MTU
Patch #4 aligns the driver to always use the same value for maximum MTU
Patch #5 adds a test

Amit Cohen (5):
  mlxsw: port: Edit maximum MTU value
  mlxsw: Adjust MTU value to hardware check
  mlxsw: spectrum: Set more accurate values for netdevice min/max MTU
  mlxsw: Use the same maximum MTU value throughout the driver
  selftests: forwarding: Add test for minimum and maximum MTU

 drivers/net/ethernet/mellanox/mlxsw/port.h    |   3 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  31 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   1 -
 .../mellanox/mlxsw/spectrum_buffers.c         |   8 +-
 .../testing/selftests/net/forwarding/Makefile |   1 +
 .../selftests/net/forwarding/min_max_mtu.sh   | 283 ++++++++++++++++++
 6 files changed, 295 insertions(+), 32 deletions(-)
 create mode 100755 tools/testing/selftests/net/forwarding/min_max_mtu.sh

-- 
2.45.0


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

end of thread, other threads:[~2024-06-15  2:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 14:07 [PATCH net-next 0/5] mlxsw: Handle MTU values Petr Machata
2024-06-13 14:07 ` [PATCH net-next 1/5] mlxsw: port: Edit maximum MTU value Petr Machata
2024-06-13 14:07 ` [PATCH net-next 2/5] mlxsw: Adjust MTU value to hardware check Petr Machata
2024-06-13 14:07 ` [PATCH net-next 3/5] mlxsw: spectrum: Set more accurate values for netdevice min/max MTU Petr Machata
2024-06-13 14:07 ` [PATCH net-next 4/5] mlxsw: Use the same maximum MTU value throughout the driver Petr Machata
2024-06-13 14:07 ` [PATCH net-next 5/5] selftests: forwarding: Add test for minimum and maximum MTU Petr Machata
2024-06-15  2:40 ` [PATCH net-next 0/5] mlxsw: Handle MTU values 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).