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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7cd4040cef3 !net/rpmsg: change the default socket endpoint priority to 
255
7cd4040cef3 is described below

commit 7cd4040cef3f78a7360b4db1c11fbb41323e6749
Author: yintao <[email protected]>
AuthorDate: Thu Apr 16 14:42:22 2026 +0800

    !net/rpmsg: change the default socket endpoint priority to 255
    
    Rpmsg sockets default to endpoint priority 127, so their rx callback
    always goes through the rpmsg rx worker.  Now that the socket locks
    are spinlocks the callback can run at RPMSG_PRIO_RT, which delivers
    socket data straight from the transport's rx path and skips the worker
    round trip.
    
    Change the default of CONFIG_NET_RPMSG_EPT_PRIORITY to 255.
    
    BREAKING CHANGE: rpmsg sockets now run their endpoint callback in the
    transport's rx path by default, which is interrupt context on an
    interrupt driven transport, and copy the received payload into the
    socket buffer with interrupts disabled. Quick fix: set
    CONFIG_NET_RPMSG_EPT_PRIORITY=127 to restore the previous behaviour.
    
    Signed-off-by: yintao <[email protected]>
    Signed-off-by: mazhuang <[email protected]>
    Signed-off-by: Bowen Wang <[email protected]>
---
 net/rpmsg/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/rpmsg/Kconfig b/net/rpmsg/Kconfig
index 80a5ba0777e..e914605710f 100644
--- a/net/rpmsg/Kconfig
+++ b/net/rpmsg/Kconfig
@@ -50,7 +50,7 @@ config NET_RPMSG_NPOLLWAITERS
 
 config NET_RPMSG_EPT_PRIORITY
        int "RPMSG socket endpoint priority"
-       default 127
+       default 255
        range 0 255
        ---help---
                Default priority of the rpmsg endpoint of every rpmsg socket.

Reply via email to