mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 15:50:23 +00:00
The RX byte count and the EMAC1MAXF limit both include the 4-byte FCS, but the driver did not account for it: - RXBUFSZ was programmed with CONFIG_NET_ETH_PKTSIZE, rounded down to 16 bytes (1504 for 1514), so longer frames were split into fragments and dropped. - EMAC1MAXF was set to CONFIG_NET_ETH_PKTSIZE, so the MAC rejected frames longer than CONFIG_NET_ETH_PKTSIZE - 4. - d_len included the FCS. Make room for the FCS in the buffers, program RXBUFSZ with the aligned buffer size and EMAC1MAXF with CONFIG_NET_ETH_PKTSIZE + 4, and remove the FCS from d_len. The largest ping that got an answer was 1458 bytes; it is now 1472, the full 1500-byte MTU. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||