PERFORCE change 39846 for review

Sam Leffler sam at FreeBSD.org
Fri Oct 17 11:07:53 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=39846

Change 39846 by sam at 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);
 }
 


More information about the p4-projects mailing list