summaryrefslogtreecommitdiffstats
path: root/sys/dev/lmc/if_lmc.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2000-11-21 20:48:54 +0000
committerjulian <julian@FreeBSD.org>2000-11-21 20:48:54 +0000
commit283b0e73a4696f0efed0588ac855339e1fb95c96 (patch)
tree98788e86ceb3f148f035c605fe3d42af64e02411 /sys/dev/lmc/if_lmc.c
parent7d87baa9c891bd6988e4adcc0a812e72014be57f (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/dev/lmc/if_lmc.c')
-rw-r--r--sys/dev/lmc/if_lmc.c3
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;
}
OpenPOWER on IntegriCloud