Annotate bpf_mtap still running in Rx hardware interrupt with "XXX not in softint"

This commit is contained in:
ozaki-r 2016-12-15 09:35:24 +00:00
parent 1f8ca435f2
commit 67cd43d434
4 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hd64570.c,v 1.50 2016/06/10 13:27:13 ozaki-r Exp $ */
/* $NetBSD: hd64570.c,v 1.51 2016/12/15 09:35:24 ozaki-r Exp $ */
/*
* Copyright (c) 1999 Christian E. Hopps
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hd64570.c,v 1.50 2016/06/10 13:27:13 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: hd64570.c,v 1.51 2016/12/15 09:35:24 ozaki-r Exp $");
#include "opt_inet.h"
@ -1574,7 +1574,7 @@ sca_frame_process(sca_port_t *scp)
return;
}
bpf_mtap(&scp->sp_if, m);
bpf_mtap(&scp->sp_if, m); /* XXX not in softint */
scp->sp_if.if_ipackets++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: midway.c,v 1.97 2016/06/10 13:27:13 ozaki-r Exp $ */
/* $NetBSD: midway.c,v 1.98 2016/12/15 09:35:24 ozaki-r Exp $ */
/* (sync'd to midway.c 1.68) */
/*
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: midway.c,v 1.97 2016/06/10 13:27:13 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: midway.c,v 1.98 2016/12/15 09:35:24 ozaki-r Exp $");
#include "opt_natm.h"
@ -2766,7 +2766,7 @@ EN_INTR_TYPE en_intr(void *arg)
ifp->if_ipackets++;
#endif
bpf_mtap(ifp, m);
bpf_mtap(ifp, m); /* XXX not in softint */
atm_input(ifp, &ah, m, sc->rxslot[slot].rxhand);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_lmc.c,v 1.61 2016/06/10 13:31:43 ozaki-r Exp $ */
/* $NetBSD: if_lmc.c,v 1.62 2016/12/15 09:35:24 ozaki-r Exp $ */
/*-
* Copyright (c) 2002-2006 David Boggs. <boggs@boggs.palo-alto.ca.us>
@ -74,7 +74,7 @@
*/
# include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_lmc.c,v 1.61 2016/06/10 13:31:43 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_lmc.c,v 1.62 2016/12/15 09:35:24 ozaki-r Exp $");
# include <sys/param.h> /* OS version */
# include "opt_inet.h" /* INET6, INET */
# include "opt_altq_enabled.h" /* ALTQ */
@ -4294,7 +4294,7 @@ rxintr_cleanup(softc_t *sc)
sc->status.cntrs.ipackets++;
/* Berkeley Packet Filter */
LMC_BPF_MTAP(sc, first_mbuf);
LMC_BPF_MTAP(sc, first_mbuf); /* XXX not in softint */
/* Give this good packet to the network stacks. */
sc->quota--;
@ -4446,7 +4446,7 @@ txintr_cleanup(softc_t *sc)
sc->status.cntrs.opackets++;
/* Berkeley Packet Filter */
LMC_BPF_MTAP(sc, m);
LMC_BPF_MTAP(sc, m); /* XXX not in softint */
}
m_freem(m);

View File

@ -27,7 +27,7 @@
* i4b_ipr.c - isdn4bsd IP over raw HDLC ISDN network driver
* ---------------------------------------------------------
*
* $Id: i4b_ipr.c,v 1.39 2016/06/10 13:27:16 ozaki-r Exp $
* $Id: i4b_ipr.c,v 1.40 2016/12/15 09:35:24 ozaki-r Exp $
*
* $FreeBSD$
*
@ -59,7 +59,7 @@
*---------------------------------------------------------------------------*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: i4b_ipr.c,v 1.39 2016/06/10 13:27:16 ozaki-r Exp $");
__KERNEL_RCSID(0, "$NetBSD: i4b_ipr.c,v 1.40 2016/12/15 09:35:24 ozaki-r Exp $");
#include "irip.h"
#include "opt_irip.h"
@ -1070,7 +1070,7 @@ error:
mm.m_len = 4;
mm.m_data = (char *)&af;
bpf_mtap(&sc->sc_if, &mm);
bpf_mtap(&sc->sc_if, &mm); /* XXX not in softint */
}
#endif /* NBPFILTER > 0 || NBPF > 0 */