diff options
author | julian <julian@FreeBSD.org> | 2000-11-21 20:48:54 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2000-11-21 20:48:54 +0000 |
commit | 283b0e73a4696f0efed0588ac855339e1fb95c96 (patch) | |
tree | 98788e86ceb3f148f035c605fe3d42af64e02411 | |
parent | 7d87baa9c891bd6988e4adcc0a812e72014be57f (diff) | |
download | FreeBSD-src-283b0e73a4696f0efed0588ac855339e1fb95c96.zip FreeBSD-src-283b0e73a4696f0efed0588ac855339e1fb95c96.tar.gz |
Devices that are running at splimp MUST use ng_queue_data()
instead of ng_send_data().
The latter could lead to running the IP stack at splimp
instead of splnet, (among other problems) (that MAY be safe
but I wouldn't count on it).
Noticed while preparing a new set of netgraph stuff.
-rw-r--r-- | sys/dev/lmc/if_lmc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c index 57302ff..b2815fe 100644 --- a/sys/dev/lmc/if_lmc.c +++ b/sys/dev/lmc/if_lmc.c @@ -625,8 +625,7 @@ lmc_rx_intr(lmc_softc_t * const sc) if (accept) { ms->m_pkthdr.len = total_len; ms->m_pkthdr.rcvif = NULL; - ng_send_data(sc->lmc_hook, - ms, NULL, NULL, NULL); + ng_queue_data(sc->lmc_hook, ms, NULL); } ms = m0; } |