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 d1f159f6dee4054e0f87a83c862be9b8c35f86f8
Author: Bowen Wang <[email protected]>
AuthorDate: Tue Oct 28 15:59:57 2025 +0800

    drivers/rptun: reset the peers instead of stopping them on reboot
    
    The reboot notifier stopped the peers on SYS_RESTART and SYS_POWER_OFF.
    A stopped peer just halts and comes back up only if this core restarts
    it, which it never does on a reboot. Reset them instead, so they reboot
    or power off with this core.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/rptun/rptun.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c
index 99ec8063098..07fd4af9c9c 100644
--- a/drivers/rptun/rptun.c
+++ b/drivers/rptun/rptun.c
@@ -1329,7 +1329,7 @@ static int rptun_notifier(FAR struct notifier_block 
*block,
     {
       if (action == SYS_RESTART || action == SYS_POWER_OFF)
         {
-          rptun_ioctl_foreach(NULL, RPTUNIOC_STOP, (unsigned long)data);
+          rptun_ioctl_foreach(NULL, RPTUNIOC_RESET, (unsigned long)data);
         }
     }
   else if (action == PANIC_KERNEL_FINAL)

Reply via email to