From owner-freebsd-current@FreeBSD.ORG Sat Nov 17 22:39:24 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF33116A46C for ; Sat, 17 Nov 2007 22:39:24 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id EE9D613C478 for ; Sat, 17 Nov 2007 22:39:22 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1683721fka for ; Sat, 17 Nov 2007 14:39:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; 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; bh=f0ltc4qjd+ZQzIMeaVbpcKqbbAlY7We7aWqo2XIfarg=; b=dxA02JHbG1D/g8UtvSBL7uUSXzzvGql4iiZ7sy2IhAKZV7A+tTJQbDHsth/5iVk5RRe9GOxlK7xGnad0L+BrRFWFmVrPGUEMOlY33ItaISZRBD700medwx9AjhAKynyMfuN8stwOU0UldZJXrW1mCC8XFEGsqygeDP655YIwzoI= 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=XhRY/Nz0D/MD+v+LQugfZrGS7GW6LGFNgS0bpfupX/judIJ0WFc/iGFLcA1j8v02I8XR4rN3XhEIFXz3xNLFAxb14Z5Q/DKTJuOqjx+IP/5DiiUEJbSigMKgK4fZ5Je/bWmdy+Sze8HGUE/3aDhKereva/suAm4IbUfRg5J5+LE= Received: by 10.86.96.18 with SMTP id t18mr3305066fgb.1195339153887; Sat, 17 Nov 2007 14:39:13 -0800 (PST) Received: by 10.86.100.19 with HTTP; Sat, 17 Nov 2007 14:39:13 -0800 (PST) Message-ID: <2a41acea0711171439y38e8b8a4lfd4422a4e300d992@mail.gmail.com> Date: Sat, 17 Nov 2007 14:39:13 -0800 From: "Jack Vogel" To: "Kip Macy" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071117003504.R31357@mindcrime.int.bit0.com> <20071117213316.499be43b@vlink.ru> <20071117170537.F59492@mindcrime.int.bit0.com> Cc: Denis Shaposhnikov , Andre Oppermann , Mike Silbersack , Mike Andrews , freebsd-current@freebsd.org Subject: Re: bizarre em + TSO + MSS issue in RELENG_7 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2007 22:39:24 -0000 On Nov 17, 2007 2:35 PM, Kip Macy wrote: > On Nov 17, 2007 2:33 PM, Mike Andrews wrote: > > On Sat, 17 Nov 2007, Kip Macy wrote: > > > > > On Nov 17, 2007 10:33 AM, Denis Shaposhnikov wrote: > > >> On Sat, 17 Nov 2007 00:42:54 -0500 (EST) > > >> Mike Andrews wrote: > > >> > > >>> Has anyone run into problems with MSS not being respected when using > > >>> TSO, specifically on em cards? > > >> > > >> Yes, I wrote about this problem on the beginning of 2007, see > > >> > > >> http://tinyurl.com/3e5ak5 > > >> > > > > > > if_em.c:3502 > > > /* > > > * Payload size per packet w/o any headers. > > > * Length of all headers up to payload. > > > */ > > > TXD->tcp_seg_setup.fields.mss = htole16(mp->m_pkthdr.tso_segsz); > > > TXD->tcp_seg_setup.fields.hdr_len = hdr_len; > > > > > > > > > Please print out the value of tso_segsz here. It appears to be being > > > set correctly. The only thing I can think of is that t_maxopd is not > > > correct. As tso_segsz is correct here: > > > > > > It repeatedly prints 1368 during a 1 meg file transfer over a connection > > with a 1380 MSS. Any other printf's I can add? I'm working on a web page > > with tcpdump / firewall log output illustrating the issue... > > Thanks for the quick follow-up. That means that maxopd is not getting > initialized correctly, which means I'm going to have add some logging > to tcp_input. Which means it will have to wait until this evening at > the earliest. This does, however, mean that em is off the hook. It is > just doing what it is told. Whew, now I can relax and enjoy my weekend :) Jack