Commit 9021eb8
committed
STM32H legacy driver fix: request usable RX size in legacy zero-copy path
The STM32H legacy zero-copy RX path still requested ETH_RX_BUF_SIZE for
replacement RX buffers even though BufferAllocation_1 now limits allocations
to the interface-reported usable size.
For this driver the usable size is ETH_RX_BUF_SIZE - ipBUFFER_PADDING.
Requesting the full hardware buffer size caused every replacement allocation
to fail, left pxReceivedBuffer as NULL, and dropped all received frames
before they reached the IP task.
Request ETH_RX_BUF_SIZE - ipBUFFER_PADDING in the RX fast path so the
receive path matches the enforced allocation limit.1 parent c123610 commit 9021eb8
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
784 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
| |||
0 commit comments