Date: Sat, 15 Sep 2007 20:03:20 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 126440 for review Message-ID: <200709152003.l8FK3KqN000220@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=126440 Change 126440 by kmacy@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709152003.l8FK3KqN000220>