From owner-freebsd-net@FreeBSD.ORG Mon Jun 30 23:03:04 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E36EA106564A for ; Mon, 30 Jun 2008 23:03:04 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id A103E8FC15 for ; Mon, 30 Jun 2008 23:03:04 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 437D82BE2E; Tue, 1 Jul 2008 11:03:03 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zTuJ65JG3MIi; Tue, 1 Jul 2008 11:02:59 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Tue, 1 Jul 2008 11:02:59 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id F285C11430; Tue, 1 Jul 2008 11:04:26 +1200 (NZST) Date: Mon, 30 Jun 2008 16:04:26 -0700 From: Andrew Thompson To: Pyun YongHyeon Message-ID: <20080630230426.GI60479@citylink.fud.org.nz> References: <4868A34C.6030304@moneybookers.com> <20080630101629.GD79537@cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080630101629.GD79537@cdnetworks.co.kr> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-net@freebsd.org, Stefan Lambrev Subject: Re: if_bridge turns off checksum offload of members? 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: Mon, 30 Jun 2008 23:03:05 -0000 On Mon, Jun 30, 2008 at 07:16:29PM +0900, Pyun YongHyeon wrote: > On Mon, Jun 30, 2008 at 12:11:40PM +0300, Stefan Lambrev wrote: > > Greetings, > > > > I just noticed, that when I add em network card to bridge the checksum > > offload is turned off. > > I even put in my rc.conf: > > ifconfig_em0="rxcsum up" > > ifconfig_em1="rxcsum up" > > but after reboot both em0 and em1 have this feature disabled. > > > > Is this expected behavior? Should I care about csum in bridge mode? > > I noticed that enabling checksum offload manually improve things little btw. > > > > AFAIK this is intended one, bridge(4) turns off Tx side checksum > offload by default. I think disabling Tx checksum offload is > required as not all members of a bridge may be able to do checksum > offload. The same is true for TSO but it seems that bridge(4) > doesn't disable it. It should be added. > If all members of bridge have the same hardware capability I think > bridge(4) may not need to disable Tx side hardware assistance. I > guess bridge(4) can scan every interface capabilities in a member > and can decide what hardware assistance can be activated instead of > blindly turning off Tx side hardware assistance. Yes, it could me smarter in this regard. The other thing to note is that unless you are manipulating the packets as they pass the bridge the checksums are unaffected and do not get recalculated anyway. Andrew