net: macb: Adding support for Jumbo Frames up to 10240 Bytes in SAMA5D2
authorAleksander Jan Bajkowski <olek2@wp.pl>
Thu, 3 Oct 2024 17:19:41 +0000 (19:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 18:11:12 +0000 (11:11 -0700)
commit8389cdb5c192bad690caf64a0746216c27f0c9b8
tree8b51ab49fe656085a835db4082e0c76d27f1694d
parent7bc22763d51fc6308550bb61ad83e8aecbb88ae2
net: macb: Adding support for Jumbo Frames up to 10240 Bytes in SAMA5D2

As per the SAMA5D2 device specification it supports Jumbo frames.
But the suggested flag and length of bytes it supports was not updated
in this driver config_structure.
The maximum jumbo frames the device supports:
10240 bytes as per the device spec.

While changing the MTU value greater than 1500, it threw error:
sudo ifconfig eth1 mtu 9000
SIOCSIFMTU: Invalid argument

Add this support to driver so that it works as expected and designed.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://patch.msgid.link/20241003171941.8814-1-olek2@wp.pl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c