loopback:setting loopback network driver sending task to the HPWORK queue
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:
wangchen
2025-06-25 20:08:55 +08:00
committed by Alan C. Assis
parent 491ce83508
commit fac6c2a82c
+1 -1
View File
@@ -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;