From 8dbc9c8bf4f867cb23a79261a6bd1b9224c79e62 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 29 Oct 2003 18:37:47 +0000 Subject: Always queue looped back packets (rather than potentially using direct dispatch) to avoid extensive kernel stack usage and to avoid directly re-entering the network stack. The latter causes locking problems when, for example, a complete TCP handshake` happens w/o a context switch. --- sys/net/if_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 21b87e5081b69..b0ec6eab29e55 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -345,7 +345,7 @@ if_simloop(ifp, m, af, hlen) } ifp->if_ipackets++; ifp->if_ibytes += m->m_pkthdr.len; - netisr_dispatch(isr, m); + netisr_queue(isr, m); return (0); } -- cgit v1.3