From owner-freebsd-net@FreeBSD.ORG Sun Feb 25 14:41:57 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E81D316A401 for ; Sun, 25 Feb 2007 14:41:57 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 55CCF13C441 for ; Sun, 25 Feb 2007 14:41:56 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1214470nfc for ; Sun, 25 Feb 2007 06:41:55 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tLCylK/+Hv0lXGDJB61JnU8ItAFyixPag0iUdDStiELZxIMlwmPIYSNXSYJpgqOYzH2WdCP0qJ49TQ/ouCcvMuwzyNcvF1MnXZcIGartIe0BEEMaF7Upa4MgZrnuuhEpbB/Tmv/HSCT5U7bdcSWY4gqL1db4K0Uq7Bpe4/ZanNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HhGX4wcGGYFlNyheWEFyZSMK9wfcDX4u5I5jm7KtKigjquY7cvE4aJXH3wqsXI4OUm0WxDjb1yYdC9cf49ZQYvo4DQcD7hEV+rnxih9MEPJiRqUeskJc9fmHhY/Q95SilX9ocSrUtgA5ndAPriWTTAO8zSbB+CzSx7WH7fKf78c= Received: by 10.82.155.10 with SMTP id c10mr1334452bue.1172414515293; Sun, 25 Feb 2007 06:41:55 -0800 (PST) Received: by 10.82.151.15 with HTTP; Sun, 25 Feb 2007 06:41:55 -0800 (PST) Message-ID: Date: Sun, 25 Feb 2007 06:41:55 -0800 From: "Kip Macy" To: "Andre Oppermann" In-Reply-To: <45E19B54.9060007@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45E19B54.9060007@freebsd.org> Cc: freebsd-net Subject: Re: improved TSO interface needed X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 14:41:58 -0000 On 2/25/07, Andre Oppermann wrote: > Kip Macy wrote: > > Evidently FreeBSD violates the LSO spec by sending down up to socket > > buffer sized TSO segments to the network card. Is there a way to set > > this other than reducing net.inet.tcp.sendbuf_max to a compliant value > > (64k)? And is there a way to for a device to communicate to the stack > > the maximum length of an mbuf chain? > > From netinet/ip_output.c: > > * When doing TSO limit a burst to TCP_MAXWIN minus the > * IP, TCP and Options length to keep ip->ip_len from > * overflowing. Prevent the last segment from being > * fractional thus making them all equal sized and set > * the flag to continue sending. > > TCP_MAXWIN is 64K. It is good to know that this how it is supposed to work even if it doesn't. You didn't directly answer my last question, since they're all supposed to be equal does that mean the max should be 32? -Kip