net/pkt: fix scheduling when receiving MSG_ERRQUEUE

Fix a scheduling issue where MSG_ERRQUEUE readiness was
not properly waking poll waiters in pkt_netpoll.c.


Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
This commit is contained in:
wenquan1 2025-12-25 21:37:02 +08:00 • committed by Xiang Xiao
parent be3446850a
commit 238cfa4a31

View file

@ -277,6 +277,15 @@ int pkt_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds)
eventset |= POLLWRNORM;
}
/* Check for timestamping data */
#ifdef CONFIG_NET_TIMESTAMPING
if (!IOB_QEMPTY(&conn->errahead))
{
eventset |= POLLPRI | POLLERR;
}
#endif
/* Check if any requested events are already in effect */
poll_notify(&fds, 1, eventset);