Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2003 11:07:51 -0700 (PDT)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 39846 for review
Message-ID:  <200310171807.h9HI7pR9023668@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310171807.h9HI7pR9023668>