mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
loopback:setting loopback network driver sending task to the HPWORK queue
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
The loopback network driver sending task is placed in the LPWORK queue, which may result in delayed scheduling when the CPU usage reaches 100%, leading to the timely sending of cached messages from the loopback network driver and causing issues with post waitsem being too late.we decied to set loopback sending task to the HPWORK queue. Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
@@ -239,7 +239,7 @@ static int lo_txavail(FAR struct net_driver_s *dev)
|
||||
{
|
||||
/* Schedule to serialize the poll on the worker thread. */
|
||||
|
||||
work_queue(LPWORK, &priv->lo_work, lo_txavail_work, priv, 0);
|
||||
work_queue(HPWORK, &priv->lo_work, lo_txavail_work, priv, 0);
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user