PERFORCE change 126440 for review
Kip Macy
kmacy at FreeBSD.org
Sat Sep 15 13:03:21 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=126440
Change 126440 by kmacy at kmacy_home:ethng on 2007/09/15 20:02:28
allocate larger mbufs if appropriate and physical contiguity is enabled
Affected files ...
.. //depot/projects/ethng/src/sys/kern/uipc_mbuf.c#2 edit
Differences ...
==== //depot/projects/ethng/src/sys/kern/uipc_mbuf.c#2 (text+ko) ====
@@ -109,9 +109,18 @@
/* Loop and append maximum sized mbufs to the chain tail. */
while (len > 0) {
+ int clsize = MJUMPAGESIZE;
+
+ if (jumbo_phys_contig) {
+ if (len >= MJUM9BYTES)
+ clsize = MJUM16BYTES;
+ else if (len >= MJUMPAGESIZE)
+ clsize = MJUM9BYTES;
+ }
+
if (len > MCLBYTES)
mb = m_getjcl(how, type, (flags & M_PKTHDR),
- MJUMPAGESIZE);
+ clsize);
else if (len >= MINCLSIZE)
mb = m_getcl(how, type, (flags & M_PKTHDR));
else if (flags & M_PKTHDR)
More information about the p4-projects
mailing list