mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v2 0/3] net: lan966x: Fixes for when MTU is changed
@ 2022-10-30 21:36 Horatiu Vultur
  2022-10-30 21:36 ` [PATCH net v2 1/3] net: lan966x: Fix the MTU calculation Horatiu Vultur
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Horatiu Vultur @ 2022-10-30 21:36 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: davem, edumazet, kuba, pabeni, UNGLinuxDriver, Horatiu Vultur

There were multiple problems in different parts of the driver when
the MTU was changed.
The first problem was that the HW was missing to configure the correct
value, it was missing ETH_HLEN and ETH_FCS_LEN. The second problem was
when vlan filtering was enabled/disabled, the MRU was not adjusted
corretly. While the last issue was that the FDMA was calculated wrongly
the correct maximum MTU.

v1->v2:
- when calculating max frame possible to receive add also the vlan tags
  length

Horatiu Vultur (3):
  net: lan966x: Fix the MTU calculation
  net: lan966x: Adjust maximum frame size when vlan is enabled/disabled
  net: lan966x: Fix FDMA when MTU is changed

 .../net/ethernet/microchip/lan966x/lan966x_fdma.c |  8 ++++++--
 .../net/ethernet/microchip/lan966x/lan966x_main.c |  4 ++--
 .../net/ethernet/microchip/lan966x/lan966x_main.h |  2 ++
 .../net/ethernet/microchip/lan966x/lan966x_regs.h | 15 +++++++++++++++
 .../net/ethernet/microchip/lan966x/lan966x_vlan.c |  6 ++++++
 5 files changed, 31 insertions(+), 4 deletions(-)

-- 
2.38.0


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

end of thread, other threads:[~2022-11-02  4:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-30 21:36 [PATCH net v2 0/3] net: lan966x: Fixes for when MTU is changed Horatiu Vultur
2022-10-30 21:36 ` [PATCH net v2 1/3] net: lan966x: Fix the MTU calculation Horatiu Vultur
2022-10-30 21:36 ` [PATCH net v2 2/3] net: lan966x: Adjust maximum frame size when vlan is enabled/disabled Horatiu Vultur
2022-10-30 21:36 ` [PATCH net v2 3/3] net: lan966x: Fix FDMA when MTU is changed Horatiu Vultur
2022-10-31 10:43 ` [PATCH net v2 0/3] net: lan966x: Fixes for " David Laight
2022-10-31 15:01   ` 'Horatiu Vultur'
2022-10-31 15:27     ` David Laight
2022-11-01  7:59       ` 'Horatiu Vultur'
2022-11-01  9:03         ` David Laight
2022-11-01 16:04           ` 'Horatiu Vultur'
2022-11-02  4:30 ` 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

Powered by JetHome