Source-Changes-HG archive

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

[src/trunk]: src/sys/net Restore splnet for if_slowtimo



details:   https://anonhg.NetBSD.org/src/rev/f528e0b36106
branches:  trunk
changeset: 821086:f528e0b36106
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Jan 24 07:58:58 2017 +0000

description:
Restore splnet for if_slowtimo

if_slowtimo (== if_watchdog) still requires splnet for most drivers.

Pointed out by nonaka@

diffstat:

 sys/net/if.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e73b38372c8e -r f528e0b36106 sys/net/if.c
--- a/sys/net/if.c      Tue Jan 24 07:09:24 2017 +0000
+++ b/sys/net/if.c      Tue Jan 24 07:58:58 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.373 2017/01/23 10:19:03 ozaki-r Exp $ */
+/*     $NetBSD: if.c,v 1.374 2017/01/24 07:58:58 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.373 2017/01/23 10:19:03 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.374 2017/01/24 07:58:58 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -2450,7 +2450,7 @@
        if (__predict_false(slowtimo == NULL))
                return;
 
-       s = splsoftnet();
+       s = splnet();
        if (ifp->if_timer != 0 && --ifp->if_timer == 0)
                (*slowtimo)(ifp);
 



Home | Main Index | Thread Index | Old Index