This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 238cfa4a31bade7c4cd99622b29ba2e6db6be8b7
Author: wenquan1 <[email protected]>
AuthorDate: Thu Dec 25 21:37:02 2025 +0800

    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 <[email protected]>
---
 net/pkt/pkt_netpoll.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/net/pkt/pkt_netpoll.c b/net/pkt/pkt_netpoll.c
index e04e74b23f0..4adf8eaff2d 100644
--- a/net/pkt/pkt_netpoll.c
+++ b/net/pkt/pkt_netpoll.c
@@ -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);

Reply via email to