Skip to content

Commit a6b5447

Browse files
committed
stm32f4/eth: Fix bug when we drop RX packets.
If we receive a First-Descriptor flag but still have buffers in our scatter queue, we free buffers in the scatter queue but we forgot to re-initialize the queue
1 parent 35693ca commit a6b5447

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/stm32f4/stm32f4_eth.c

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ eth_irq_rx(stm32f4_eth_t *se)
267267
if(pb != NULL)
268268
pbuf_free_irq_blocked(pb);
269269
se->se_rx_scatter_length = 0;
270+
STAILQ_INIT(&se->se_rx_scatter_queue);
270271
}
271272

272273
void *buf = rx->buf;

0 commit comments

Comments
 (0)