mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-23 19:09:27 +08:00
[fix] the overflow problem of lwip rx thread mailbox.
This commit is contained in:
@@ -648,7 +648,7 @@ static void eth_rx_thread_entry(void* parameter)
|
||||
}
|
||||
|
||||
/* receive all of buffer */
|
||||
while (1)
|
||||
do
|
||||
{
|
||||
if(device->eth_rx == RT_NULL) break;
|
||||
|
||||
@@ -664,7 +664,7 @@ static void eth_rx_thread_entry(void* parameter)
|
||||
}
|
||||
}
|
||||
else break;
|
||||
}
|
||||
}while(rt_mb_recv(ð_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_NO) == RT_EOK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -697,7 +697,7 @@ static void eth_rx_thread_entry(void* parameter)
|
||||
}
|
||||
|
||||
/* receive all of buffer */
|
||||
while (1)
|
||||
do
|
||||
{
|
||||
if(device->eth_rx == RT_NULL) break;
|
||||
|
||||
@@ -713,7 +713,7 @@ static void eth_rx_thread_entry(void* parameter)
|
||||
}
|
||||
}
|
||||
else break;
|
||||
}
|
||||
}while(rt_mb_recv(ð_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_NO) == RT_EOK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -699,7 +699,7 @@ static void eth_rx_thread_entry(void* parameter)
|
||||
}
|
||||
|
||||
/* receive all of buffer */
|
||||
while (1)
|
||||
do
|
||||
{
|
||||
if(device->eth_rx == RT_NULL) break;
|
||||
|
||||
@@ -715,7 +715,7 @@ static void eth_rx_thread_entry(void* parameter)
|
||||
}
|
||||
}
|
||||
else break;
|
||||
}
|
||||
}while(rt_mb_recv(ð_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_NO) == RT_EOK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user