From owner-p4-projects@FreeBSD.ORG Fri Oct 17 11:07:52 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A5F7616A4C1; Fri, 17 Oct 2003 11:07:52 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80E7A16A4BF for ; Fri, 17 Oct 2003 11:07:52 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FBF143FBD for ; Fri, 17 Oct 2003 11:07:52 -0700 (PDT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9HI7pXJ023672 for ; Fri, 17 Oct 2003 11:07:51 -0700 (PDT) (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9HI7pR9023668 for perforce@freebsd.org; Fri, 17 Oct 2003 11:07:51 -0700 (PDT) (envelope-from sam@freebsd.org) Date: Fri, 17 Oct 2003 11:07:51 -0700 (PDT) Message-Id: <200310171807.h9HI7pR9023668@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 39846 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 18:07:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=39846 Change 39846 by sam@sam_ebb on 2003/10/17 11:07:15 don't do (potential) direct dispatch of packets through the loopback interface, queue them instead; this avoids, for example, tcp handshakes happening entirely on the same stack and avoids inpcb mutex recursion/usage problems (i.e. mtx_destroy finds the mutex busy when asked to destroy it because everything happens directly) Affected files ... .. //depot/projects/netperf/sys/net/if_loop.c#7 edit Differences ... ==== //depot/projects/netperf/sys/net/if_loop.c#7 (text+ko) ==== @@ -345,7 +345,7 @@ } ifp->if_ipackets++; ifp->if_ibytes += m->m_pkthdr.len; - netisr_dispatch(isr, m); + netisr_queue(isr, m); return (0); }