Skip to content

Commit 77a973c

Browse files
committed
Merge pull request #1180 from mbedmicro/enet_rx_process_all
Update k64f_emac.c
2 parents 20e58fc + ea652f9 commit 77a973c

File tree

1 file changed

+1
-1
lines changed
  • libraries/net/eth/lwip-eth/arch/TARGET_Freescale

1 file changed

+1
-1
lines changed

libraries/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ static void packet_rx(void* pvParameters) {
540540
/* Wait for receive task to wakeup */
541541
sys_arch_sem_wait(&k64f_enet->RxReadySem, 0);
542542

543-
if ((bdPtr[idx].control & kEnetRxBdEmpty) == 0) {
543+
while ((bdPtr[idx].control & kEnetRxBdEmpty) == 0) {
544544
k64f_enetif_input(k64f_enet->netif, idx);
545545
idx = (idx + 1) % ENET_RX_RING_LEN;
546546
}

0 commit comments

Comments
 (0)