Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Reschedule softint to process packets enqueued to pp...



details:   https://anonhg.NetBSD.org/src/rev/a1ce92e9bdd6
branches:  trunk
changeset: 982438:a1ce92e9bdd6
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue Apr 13 05:04:54 2021 +0000

description:
Reschedule softint to process packets enqueued to ppoediscinq
while doing pppoe_data_input

And added a empty check for ppoeinq, for safety

diffstat:

 sys/net/if_pppoe.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 37d4c7da1e1e -r a1ce92e9bdd6 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Tue Apr 13 05:00:06 2021 +0000
+++ b/sys/net/if_pppoe.c        Tue Apr 13 05:04:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.161 2021/04/13 05:00:06 yamaguchi Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.162 2021/04/13 05:04:54 yamaguchi Exp $ */
 
 /*
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.161 2021/04/13 05:00:06 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.162 2021/04/13 05:04:54 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -602,6 +602,9 @@
                }
        } while (disc_done || data_done);
 
+       if (!IF_IS_EMPTY(&ppoediscinq) || !IF_IS_EMPTY(&ppoeinq))
+               softint_schedule(pppoe_softintr);
+
        SOFTNET_UNLOCK_UNLESS_NET_MPSAFE();
 }
 



Home | Main Index | Thread Index | Old Index