diff options
author | gonzo <gonzo@FreeBSD.org> | 2008-07-08 18:21:44 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2008-07-08 18:21:44 +0000 |
commit | 2d2c0669861c1461f6afa4e816ec9902ac23f402 (patch) | |
tree | 518e3562dc662b16ea86a45f5e93bc0a5f56f4c8 /sys/netgraph | |
parent | 1547b99716941b9b7d256bef62d3fa4955880949 (diff) | |
download | FreeBSD-src-2d2c0669861c1461f6afa4e816ec9902ac23f402.zip FreeBSD-src-2d2c0669861c1461f6afa4e816ec9902ac23f402.tar.gz |
Queue decapsulated packed instead of performing direct dispatch. Some
execution pathes might hit stack limit under certain circumstances
(e.g. ng_mppc).
PR: kern/125314
Reported by: Illya Klymov <ilia dot klimov at gmail dot com>
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_iface.c | 2 | ||||
-rw-r--r-- | sys/netgraph/ng_ip_input.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index fec2432..8c3a3cf 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -755,7 +755,7 @@ ng_iface_rcvdata(hook_p hook, item_p item) /* First chunk of an mbuf contains good junk */ if (harvest.point_to_point) random_harvest(m, 16, 3, 0, RANDOM_NET); - netisr_dispatch(isr, m); + netisr_queue(isr, m); return (0); } diff --git a/sys/netgraph/ng_ip_input.c b/sys/netgraph/ng_ip_input.c index 416bc12..be161b7 100644 --- a/sys/netgraph/ng_ip_input.c +++ b/sys/netgraph/ng_ip_input.c @@ -120,7 +120,7 @@ ngipi_rcvdata(hook_p hook, item_p item) NGI_GET_M(item, m); NG_FREE_ITEM(item); - netisr_dispatch(NETISR_IP, m); + netisr_queue(NETISR_IP, m); return 0; } |