From owner-freebsd-net Thu Aug 27 11:08:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA22738 for freebsd-net-outgoing; Thu, 27 Aug 1998 11:08:16 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA22693 for ; Thu, 27 Aug 1998 11:08:10 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id KAA00847; Thu, 27 Aug 1998 10:58:03 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdIAT842; Thu Aug 27 17:58:00 1998 Date: Thu, 27 Aug 1998 10:57:57 -0700 (PDT) From: Julian Elischer Reply-To: Julian Elischer To: Garrett Wollman cc: net@FreeBSD.ORG Subject: Re: Next big network patch: specialized sosend for TCP In-Reply-To: <199808270155.VAA07365@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 26 Aug 1998, Garrett Wollman wrote: > + if (resid >= MINCLSIZE) { > + MCLGET(m, M_WAIT); > + if ((m->m_flags & M_EXT) == 0) > + goto nopages; > + mlen = MCLBYTES; > + len = min(min(mlen, resid), space); > + } else { > +nopages: > + len = min(min(mlen, resid), space); > + } can be rewritten to: > + if (resid >= MINCLSIZE) { > + MCLGET(m, M_WAIT); > + if (m->m_flags & M_EXT) > + mlen = MCLBYTES; > + } > + len = min(min(mlen, resid), space); (unless I'm smoking crack) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message