From: Herbert Xu Subject: Re: [1/4] [NET] back: Fix maximum fragment check Date: Sat, 1 Jul 2006 13:33:15 +1000 Message-ID: <20060701033315.GA30050@gondor.apana.org.au> References: <20060629132608.GA22343@gondor.apana.org.au> <20060629230834.GA26561@gondor.apana.org.au> <20060630024047.GA29185@gondor.apana.org.au> <20060630124703.GA23466@gondor.apana.org.au> <69ce918a310b3e9597230c7d8521eed3@cl.cam.ac.uk> <20060630132141.GA23719@gondor.apana.org.au> <6119c0c588ef3a01c19119bda86298fd@cl.cam.ac.uk> <20060701032609.GA29803@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060701032609.GA29803@gondor.apana.org.au> 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: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On Sat, Jul 01, 2006 at 01:26:09PM +1000, herbert wrote: > > > Do we then need the 'type' at all? What is it actually used for -- I'd > > assume the network stack would demux to the correct protocol code as it > > would for any ordinary packet, so why does it need help with the > > protocol for GSO packets? > > Good point. I'll get rid of it. Actually, we do need it for two reasons: 1. To indicate protocol for drivers that can cope with malformed packets. The header verification will be skipped for such drivers. 2. To carry extra flags such as ECN that cannot harm the host if set incorrectly. Given that Linux will cope with malformed headers or a bogus gso_type, I'd really like to keep the type value uniform between Linux and Xen. 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