From owner-freebsd-net Thu Aug 27 00:30:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA25767 for freebsd-net-outgoing; Thu, 27 Aug 1998 00:30:05 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA25700 for ; Thu, 27 Aug 1998 00:29:59 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id AAA05421; Thu, 27 Aug 1998 00:27:23 -0700 (PDT) Message-Id: <199808270727.AAA05421@implode.root.com> To: Garrett Wollman cc: net@FreeBSD.ORG Subject: Re: Next big network patch: specialized sosend for TCP In-reply-to: Your message of "Wed, 26 Aug 1998 21:55:19 EDT." <199808270155.VAA07365@khavrinen.lcs.mit.edu> From: David Greenman Reply-To: dg@root.com Date: Thu, 27 Aug 1998 00:27:23 -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Here's the next patch that's going into the TCP stack. I am running >this right now, so I'm certain it's not completely bogus, but have not >stress-tested it as yet. It does appear to be somewhat faster (having >eliminated about a dozen branches), but -current is a very hostile >environment for microbenchmarks of the sort I would usually use. > >Once again, any comments would be appreciated. ... > > /* >@@ -786,5 +791,230 @@ > tp->t_timer[TCPT_2MSL] = tcp_maxidle; > } > return (tp); >+} >+ >+#include >+#include >+#include >+#include >+#include >+ >+#define SBLOCKWAIT(f) (((f) & MSG_DONTWAIT) ? M_NOWAIT : M_WAITOK) #include's don't belong in the middle of a file. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message