net: ravb: Fix maximum TX frame size for GbEth devices
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Wed, 18 Sep 2024 08:18:38 +0000 (09:18 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Sep 2024 09:55:13 +0000 (11:55 +0200)
commit1d63864299cafa7c8cbde56491c9932afdbff7ea
tree369e11b2ad2a86f40b9f0b0b20443e99c34d8cfa
parent675faf5a14c14a2be0b870db30a70764df81e2df
net: ravb: Fix maximum TX frame size for GbEth devices

The datasheets for all SoCs using the GbEth IP specify a maximum
transmission frame size of 1.5 kByte. I've confirmed through internal
discussions that support for 1522 byte frames has been validated, which
allows us to support the default MTU of 1500 bytes after reserving space
for the Ethernet header, frame checksums and an optional VLAN tag.

Fixes: 2e95e08ac009 ("ravb: Add rx_max_buf_size to struct ravb_hw_info")
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c