Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 10:57:57 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        net@FreeBSD.ORG
Subject:   Re: Next big network patch: specialized sosend for TCP
Message-ID:  <Pine.BSF.3.95.980827105010.3468C-100000@current1.whistle.com>
In-Reply-To: <199808270155.VAA07365@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980827105010.3468C-100000>