linux/drivers/net/ethernet/ti
Sanjuán García, Jorge 64e47d8afb net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames
The value of AM65_CPSW_MAX_PACKET_SIZE represents the maximum length
of a received frame. This value is written to the register
AM65_CPSW_PORT_REG_RX_MAXLEN.

The maximum MTU configured on the network device should then leave
some room for the ethernet headers and frame check. Otherwise, if
the network interface is configured to its maximum mtu possible,
the frames will be larger than AM65_CPSW_MAX_PACKET_SIZE and will
get dropped as oversized.

The switch supports ethernet frame sizes between 64 and 2024 bytes
(including VLAN) as stated in the technical reference manual, so
define AM65_CPSW_MAX_PACKET_SIZE with that maximum size.

Fixes: 93a7653031 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@duagon.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://lore.kernel.org/r/20240105085530.14070-2-jorge.sanjuangarcia@duagon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-01-11 16:54:45 -08:00
..
icssg net: ti: icssg-prueth: Fix error cleanup on failing pruss_request_mem_region 2023-11-11 19:49:21 +00:00
am65-cpsw-ethtool.c net: ethernet: ti: am65-cpsw: add sw tx/rx irq coalescing based on hrtimers 2023-12-23 01:01:19 +00:00
am65-cpsw-nuss.c net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames 2024-01-11 16:54:45 -08:00
am65-cpsw-nuss.h net: ethernet: ti: am65-cpsw: add sw tx/rx irq coalescing based on hrtimers 2023-12-23 01:01:19 +00:00
am65-cpsw-qos.c net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support 2023-12-23 01:01:19 +00:00
am65-cpsw-qos.h net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support 2023-12-23 01:01:19 +00:00
am65-cpsw-switchdev.c
am65-cpsw-switchdev.h
am65-cpts.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-24 10:10:20 -07:00
am65-cpts.h net: ethernet: ti: am65-cpsw/cpts: Fix CPTS release action 2023-01-24 10:08:50 +01:00
cpsw_ale.c net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field() 2023-07-14 08:36:43 +01:00
cpsw_ale.h net: ethernet: ti: cpsw_ale: Add cpsw_ale_restore() helper 2022-11-07 12:20:03 +00:00
cpsw_ethtool.c
cpsw_new.c net: ethernet: ti: cpsw-new: Convert to platform remove callback returning void 2023-11-30 13:04:13 +01:00
cpsw_priv.c net: Tree wide: Replace xdp_do_flush_map() with xdp_do_flush(). 2023-10-03 07:34:51 -07:00
cpsw_priv.h eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c
cpsw_switchdev.h
cpsw-common.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
cpsw-phy-sel.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
cpsw.c net: ethernet: ti: cpsw: Convert to platform remove callback returning void 2023-11-30 13:04:13 +01:00
cpsw.h
cpts.c ptp: cpts: convert .adjfreq to .adjfine 2022-11-11 10:58:39 +00:00
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c net: ethernet: davinci_emac: Use MAC Address from Device Tree 2023-10-24 11:26:08 +02:00
davinci_mdio.c net: ethernet: ti: davinci_mdio: Update K3 SoCs list for errata i2329 2023-12-04 18:21:33 -08:00
k3-cppi-desc-pool.c net: ethernet: ti: Fix mixed module-builtin object 2023-10-19 12:39:01 +02:00
k3-cppi-desc-pool.h
Kconfig net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support 2023-12-23 01:01:19 +00:00
Makefile net: ethernet: am65-cpsw: Rename TI_AM65_CPSW_TAS to TI_AM65_CPSW_QOS 2023-12-23 01:01:19 +00:00
netcp_core.c net: ethernet: ti: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
netcp_ethss.c net: netcp: replace deprecated strncpy with strscpy 2023-10-16 16:14:09 -07:00
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h net: ethernet: ti: Remove unused declarations 2023-08-22 10:33:21 -07:00
tlan.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
tlan.h