Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/dev Don't directly call softint_shedule() ...



details:   https://anonhg.NetBSD.org/src/rev/92cf0ac62624
branches:  trunk
changeset: 772630:92cf0ac62624
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Jan 09 20:39:39 2012 +0000

description:
Don't directly call softint_shedule() when we might be in an SPL level too
high.

diffstat:

 sys/arch/usermode/dev/if_veth.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 3f3b0e807ab5 -r 92cf0ac62624 sys/arch/usermode/dev/if_veth.c
--- a/sys/arch/usermode/dev/if_veth.c   Mon Jan 09 19:40:54 2012 +0000
+++ b/sys/arch/usermode/dev/if_veth.c   Mon Jan 09 20:39:39 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_veth.c,v 1.2 2011/12/26 14:51:20 jmcneill Exp $ */
+/* $NetBSD: if_veth.c,v 1.3 2012/01/09 20:39:39 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_veth.c,v 1.2 2011/12/26 14:51:20 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_veth.c,v 1.3 2012/01/09 20:39:39 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -174,7 +174,9 @@
 {
        struct veth_softc *sc = priv;
 
-       softint_schedule(sc->sc_rx_intr);
+       curcpu()->ci_idepth++;
+       spl_intr(IPL_NET, softint_schedule, sc->sc_rx_intr);
+       curcpu()->ci_idepth--;
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index