Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: ethernet: adin2111: fix real rx frame size
Fix issue related to "generic SPI" mode only, when a packet of 1512 bytes is received, net_pkt_write() fails and thrwos the error: "Still some length to go 2". This is due to net_pkt_rx_alloc_with_buffer() allocating a maximum mtu/size of 1514, and driver is not removing 4 bytes of crc32 from rx buffer, that comes to be 1516 (2 bytes over buffer limit). Fix generic SPI rx frame size removing crc32 bytes. Signed-off-by: Angelo Dureghello <[email protected]>
- Loading branch information