From owner-freebsd-current@FreeBSD.ORG Fri Sep 15 10:45:58 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25BEA16A4E0 for ; Fri, 15 Sep 2006 10:45:58 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30C2B43D4C for ; Fri, 15 Sep 2006 10:45:56 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 42913 invoked from network); 15 Sep 2006 10:29:18 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 15 Sep 2006 10:29:18 -0000 Message-ID: <450A8467.5050405@freebsd.org> Date: Fri, 15 Sep 2006 12:45:59 +0200 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Gleb Smirnoff References: <7.0.1.0.0.20060912125903.15bdb7a0@sentex.net> <45073F58.6080900@freebsd.org> <200609131108.45382.jhb@freebsd.org> <20060913154622.GA52716@lor.one-eyed-alien.net> <20060915102228.GK27667@FreeBSD.org> In-Reply-To: <20060915102228.GK27667@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: current@FreeBSD.org, John Baldwin , Mike Tancsa , Ian FREISLICH , freebsd-current@FreeBSD.org, Jack Vogel Subject: Re: TSO, SMP and the em driver. 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: Fri, 15 Sep 2006 10:45:58 -0000 Gleb Smirnoff wrote: > On Wed, Sep 13, 2006 at 10:46:22AM -0500, Brooks Davis wrote: > B> On Wed, Sep 13, 2006 at 11:08:44AM -0400, John Baldwin wrote: > B> > On Tuesday 12 September 2006 19:14, Andre Oppermann wrote: > B> > > Mike Tancsa wrote: > B> > > > At 12:43 PM 9/12/2006, Andre Oppermann wrote: > B> > > > > B> > > >> TSO != (vlan && promisc) > B> > > > > B> > > > Sorry, the commonality I was referring to was VLAN hardware tagging and > B> > > > how it must be enabled for TSO, but that breaks other things. See a few > B> > > > messages ago > B> > > > > B> > http://lists.freebsd.org/pipermail/freebsd-current/2006-September/065818.html > B> > > > B> > > I'm sure we can find a workaround for that. > B> > > B> > Well, you could have the em(4) driver manually handle TSO in software, which > B> > is what it does to workaround the VLAN tag problem. (It does VLAN > B> > encapsulation in the driver.) While VLAN insertion may be trivial, > B> > re-implementing TCP segmentation in the driver might be a good bit less > B> > trivial to do. There's not going to be a simple easy workaround for this > B> > hardware bug. :( > B> > B> I'm not sure it's worth worrying about with GbE hardware. Just disable > B> TSO in promiscuous mode. Where TSO is going to really matter is 10GbE. > B> No supporting TSO in some configurations with GbE doesn't seem like a > B> big deal to me. > > Yes, makeing TSO and promisc mutually exclusive would be fine. There is no point in disabling TSO in when the card is in promisc mode. Promisc mode only affects the receive path where TSO doesn't do a thing, it is only used on the send path. -- Andre