From: Herbert Xu Subject: Re: [NET] front: Fix features on resume when csum is off Date: Wed, 16 Aug 2006 23:04:25 +1000 Message-ID: <20060816130425.GA30443@gondor.apana.org.au> References: <20060816011122.GA22978@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Anton Burtsev , Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On Wed, Aug 16, 2006 at 02:00:02PM +0100, Keir Fraser wrote: > > This seems a bit odd. Shouldn't it be up to the network stack to not use > SG/TSO if it can't use them with a non-checksumming interface? What is the > failure mode currently? As it is it's the partly the responsibility of the drivers to maintain the consistency of the features set. The network stack assists this task by turning off SG/TSO when TX checksum is turned off through ethtool. It also ensures that when the user tries to enable SG/TSO that TX checksum must be enabled. In this case, SG/TSO is being turned on by the driver (as opposed to the user) so the driver needs to ensure that TX checksum is supported. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt