From 7156132cd919e166337f86288b4a0356ed496e18 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Tue, 8 Jul 2008 18:21:44 +0000 Subject: [PATCH] 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 --- sys/netgraph/ng_iface.c | 2 +- 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 fec243215d35..8c3a3cf0b534 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 416bc12e9ede..be161b79c52d 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; }