Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen Don't call xennet_softstart from hard inter...



details:   https://anonhg.NetBSD.org/src/rev/1953329e524c
branches:  trunk
changeset: 829316:1953329e524c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jan 25 17:41:49 2018 +0000

description:
Don't call xennet_softstart from hard interrupt; schedule softint.

Fixes panic in bpf_mtap which expects to be called only in softint.

diffstat:

 sys/arch/xen/xen/if_xennet_xenbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 79b49f3c3e31 -r 1953329e524c sys/arch/xen/xen/if_xennet_xenbus.c
--- a/sys/arch/xen/xen/if_xennet_xenbus.c       Thu Jan 25 17:14:36 2018 +0000
+++ b/sys/arch/xen/xen/if_xennet_xenbus.c       Thu Jan 25 17:41:49 2018 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: if_xennet_xenbus.c,v 1.73 2017/11/11 21:03:01 riastradh Exp $      */
+/*      $NetBSD: if_xennet_xenbus.c,v 1.74 2018/01/25 17:41:49 riastradh Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.73 2017/11/11 21:03:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.74 2018/01/25 17:41:49 riastradh Exp $");
 
 #include "opt_xen.h"
 #include "opt_nfs_boot.h"
@@ -956,7 +956,7 @@
 end:
        if (ifp->if_flags & IFF_OACTIVE) {
                ifp->if_flags &= ~IFF_OACTIVE;
-               xennet_softstart(sc);
+               softint_schedule(sc->sc_softintr);
        }
 }
 



Home | Main Index | Thread Index | Old Index