Module Name: src Committed By: riastradh Date: Thu Jan 25 17:41:49 UTC 2018
Modified Files: src/sys/arch/xen/xen: if_xennet_xenbus.c Log Message: Don't call xennet_softstart from hard interrupt; schedule softint. Fixes panic in bpf_mtap which expects to be called only in softint. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sys/arch/xen/xen/if_xennet_xenbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/if_xennet_xenbus.c diff -u src/sys/arch/xen/xen/if_xennet_xenbus.c:1.73 src/sys/arch/xen/xen/if_xennet_xenbus.c:1.74 --- src/sys/arch/xen/xen/if_xennet_xenbus.c:1.73 Sat Nov 11 21:03:01 2017 +++ src/sys/arch/xen/xen/if_xennet_xenbus.c Thu Jan 25 17:41:49 2018 @@ -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 @@ again: end: if (ifp->if_flags & IFF_OACTIVE) { ifp->if_flags &= ~IFF_OACTIVE; - xennet_softstart(sc); + softint_schedule(sc->sc_softintr); } }