From a7d8b8f263a2208cf850cc5397cc502e8b577911 Mon Sep 17 00:00:00 2001 From: Marin Doetterer Date: Tue, 27 Oct 2026 11:47:47 +0100 Subject: [PATCH] fix(boards): set NET_ETH_PKTSIZE to 1514 for a 1500 byte MTU CONFIG_NET_ETH_PKTSIZE includes the 14 byte Ethernet header but not the 4 byte FCS, so the IP MTU is PKTSIZE - 14. With 1518 the MTU was 1504, larger than the 1500 bytes defined by RFC 894. ETH header | IP packet (IP | UDP/TCP | payload) 14 | 1500 On the STM32H7 and STM32F7 Ethernet drivers the RX buffer stays 1536 bytes, so full-size frames incl. FCS still fit. ESP32 (Wi-Fi only) uses the value only for its TX buffer. Applied to all STM32H7, STM32F7 and ESP32 boards. i.MX RT (ENET MAX_FL) and S32K3 (RX DMA buffer size) boards are left at 1518, since there the value also sets hardware limits and 1514 would reject or truncate full-size frames. Signed-off-by: Marin Doetterer Assisted-by: Claude Opus 5.5 --- boards/accton-godwit/ga1/nuttx-config/nsh/defconfig | 2 +- boards/ark/fmu-v6s/nuttx-config/nsh/defconfig | 2 +- boards/ark/fmu-v6x/nuttx-config/nsh/defconfig | 2 +- boards/auterion/fmu-v6s/nuttx-config/nsh/defconfig | 2 +- boards/auterion/fmu-v6x/nuttx-config/nsh/defconfig | 2 +- boards/cbunmanned/h753-som/nuttx-config/nsh/defconfig | 2 +- boards/cuav/7-nano/nuttx-config/nsh/defconfig | 2 +- boards/cuav/fmu-v6x/nuttx-config/nsh/defconfig | 2 +- boards/cuav/x25-evo/nuttx-config/nsh/defconfig | 2 +- boards/cuav/x25-mega/nuttx-config/nsh/defconfig | 2 +- boards/cuav/x25-super/nuttx-config/nsh/defconfig | 2 +- boards/espressif/esp32/nuttx-config/nsh/defconfig | 2 +- boards/px4/fmu-v5x/nuttx-config/nsh/defconfig | 2 +- boards/px4/fmu-v5x/nuttx-config/test/defconfig | 2 +- boards/px4/fmu-v6x/nuttx-config/nsh/defconfig | 2 +- boards/siyi/unifc-6-pico/nuttx-config/nsh/defconfig | 2 +- boards/sky-drones/smartap-airlink/nuttx-config/nsh/defconfig | 2 +- boards/svehicle/e2/nuttx-config/nsh/defconfig | 2 +- boards/zeroone/x6/nuttx-config/nsh/defconfig | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/boards/accton-godwit/ga1/nuttx-config/nsh/defconfig b/boards/accton-godwit/ga1/nuttx-config/nsh/defconfig index 050ce9605f7..47b3b5d1b11 100644 --- a/boards/accton-godwit/ga1/nuttx-config/nsh/defconfig +++ b/boards/accton-godwit/ga1/nuttx-config/nsh/defconfig @@ -165,7 +165,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/ark/fmu-v6s/nuttx-config/nsh/defconfig b/boards/ark/fmu-v6s/nuttx-config/nsh/defconfig index c5326101bd0..2199e9c110b 100644 --- a/boards/ark/fmu-v6s/nuttx-config/nsh/defconfig +++ b/boards/ark/fmu-v6s/nuttx-config/nsh/defconfig @@ -165,7 +165,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/ark/fmu-v6x/nuttx-config/nsh/defconfig b/boards/ark/fmu-v6x/nuttx-config/nsh/defconfig index 209f3d10a76..6d33e9152c3 100644 --- a/boards/ark/fmu-v6x/nuttx-config/nsh/defconfig +++ b/boards/ark/fmu-v6x/nuttx-config/nsh/defconfig @@ -165,7 +165,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/auterion/fmu-v6s/nuttx-config/nsh/defconfig b/boards/auterion/fmu-v6s/nuttx-config/nsh/defconfig index 5ca73b4c0d1..713958d2b5d 100644 --- a/boards/auterion/fmu-v6s/nuttx-config/nsh/defconfig +++ b/boards/auterion/fmu-v6s/nuttx-config/nsh/defconfig @@ -152,7 +152,7 @@ CONFIG_NETINIT_THREAD=y CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_UDP=y diff --git a/boards/auterion/fmu-v6x/nuttx-config/nsh/defconfig b/boards/auterion/fmu-v6x/nuttx-config/nsh/defconfig index e95506061c8..03b997f4d56 100644 --- a/boards/auterion/fmu-v6x/nuttx-config/nsh/defconfig +++ b/boards/auterion/fmu-v6x/nuttx-config/nsh/defconfig @@ -156,7 +156,7 @@ CONFIG_NETINIT_THREAD=y CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_UDP=y diff --git a/boards/cbunmanned/h753-som/nuttx-config/nsh/defconfig b/boards/cbunmanned/h753-som/nuttx-config/nsh/defconfig index 4d3e3f30728..fa3b00d6eb7 100644 --- a/boards/cbunmanned/h753-som/nuttx-config/nsh/defconfig +++ b/boards/cbunmanned/h753-som/nuttx-config/nsh/defconfig @@ -158,7 +158,7 @@ CONFIG_NETINIT_THREAD=y CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/cuav/7-nano/nuttx-config/nsh/defconfig b/boards/cuav/7-nano/nuttx-config/nsh/defconfig index 55faa3c574c..3fe3cd73081 100644 --- a/boards/cuav/7-nano/nuttx-config/nsh/defconfig +++ b/boards/cuav/7-nano/nuttx-config/nsh/defconfig @@ -163,7 +163,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/cuav/fmu-v6x/nuttx-config/nsh/defconfig b/boards/cuav/fmu-v6x/nuttx-config/nsh/defconfig index 6c63bef5455..09b3b94e5b8 100644 --- a/boards/cuav/fmu-v6x/nuttx-config/nsh/defconfig +++ b/boards/cuav/fmu-v6x/nuttx-config/nsh/defconfig @@ -165,7 +165,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/cuav/x25-evo/nuttx-config/nsh/defconfig b/boards/cuav/x25-evo/nuttx-config/nsh/defconfig index 28b97991f36..11be3b5f7e4 100644 --- a/boards/cuav/x25-evo/nuttx-config/nsh/defconfig +++ b/boards/cuav/x25-evo/nuttx-config/nsh/defconfig @@ -163,7 +163,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/cuav/x25-mega/nuttx-config/nsh/defconfig b/boards/cuav/x25-mega/nuttx-config/nsh/defconfig index e4e94d622c7..b81da4761d8 100644 --- a/boards/cuav/x25-mega/nuttx-config/nsh/defconfig +++ b/boards/cuav/x25-mega/nuttx-config/nsh/defconfig @@ -164,7 +164,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/cuav/x25-super/nuttx-config/nsh/defconfig b/boards/cuav/x25-super/nuttx-config/nsh/defconfig index 06df609e8e7..c53bbed794a 100644 --- a/boards/cuav/x25-super/nuttx-config/nsh/defconfig +++ b/boards/cuav/x25-super/nuttx-config/nsh/defconfig @@ -163,7 +163,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/espressif/esp32/nuttx-config/nsh/defconfig b/boards/espressif/esp32/nuttx-config/nsh/defconfig index 5d5b5bc7029..e0864d977d2 100644 --- a/boards/espressif/esp32/nuttx-config/nsh/defconfig +++ b/boards/espressif/esp32/nuttx-config/nsh/defconfig @@ -141,7 +141,7 @@ CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_ARP_SEND=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP=y CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_NETLINK=y diff --git a/boards/px4/fmu-v5x/nuttx-config/nsh/defconfig b/boards/px4/fmu-v5x/nuttx-config/nsh/defconfig index 0555067bd74..8288956b4bf 100644 --- a/boards/px4/fmu-v5x/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v5x/nuttx-config/nsh/defconfig @@ -161,7 +161,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/px4/fmu-v5x/nuttx-config/test/defconfig b/boards/px4/fmu-v5x/nuttx-config/test/defconfig index 5f4c4427a72..db5d2dba6e7 100644 --- a/boards/px4/fmu-v5x/nuttx-config/test/defconfig +++ b/boards/px4/fmu-v5x/nuttx-config/test/defconfig @@ -158,7 +158,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig b/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig index 580ee5c199a..61df62baf62 100644 --- a/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig @@ -164,7 +164,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/siyi/unifc-6-pico/nuttx-config/nsh/defconfig b/boards/siyi/unifc-6-pico/nuttx-config/nsh/defconfig index a3323ccd86a..5b15fe61112 100644 --- a/boards/siyi/unifc-6-pico/nuttx-config/nsh/defconfig +++ b/boards/siyi/unifc-6-pico/nuttx-config/nsh/defconfig @@ -160,7 +160,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/sky-drones/smartap-airlink/nuttx-config/nsh/defconfig b/boards/sky-drones/smartap-airlink/nuttx-config/nsh/defconfig index df7af94271e..50357240c19 100644 --- a/boards/sky-drones/smartap-airlink/nuttx-config/nsh/defconfig +++ b/boards/sky-drones/smartap-airlink/nuttx-config/nsh/defconfig @@ -156,7 +156,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/svehicle/e2/nuttx-config/nsh/defconfig b/boards/svehicle/e2/nuttx-config/nsh/defconfig index 49ab621294e..6bc604d7c82 100644 --- a/boards/svehicle/e2/nuttx-config/nsh/defconfig +++ b/boards/svehicle/e2/nuttx-config/nsh/defconfig @@ -163,7 +163,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y diff --git a/boards/zeroone/x6/nuttx-config/nsh/defconfig b/boards/zeroone/x6/nuttx-config/nsh/defconfig index 824c096541c..7c21d1f04fd 100644 --- a/boards/zeroone/x6/nuttx-config/nsh/defconfig +++ b/boards/zeroone/x6/nuttx-config/nsh/defconfig @@ -163,7 +163,7 @@ CONFIG_NETINIT_THREAD_PRIORITY=49 CONFIG_NETUTILS_TELNETD=y CONFIG_NET_ARP_IPIN=y CONFIG_NET_BROADCAST=y -CONFIG_NET_ETH_PKTSIZE=1518 +CONFIG_NET_ETH_PKTSIZE=1514 CONFIG_NET_ICMP_SOCKET=y CONFIG_NET_SOLINGER=y CONFIG_NET_TCP=y