From: Keir Fraser Subject: Re: [1/4] [NET] back: Fix maximum fragment check Date: Sat, 1 Jul 2006 09:24:13 +0100 Message-ID: <69b713d882b30e730f7e83514eebe737@cl.cam.ac.uk> 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> <20060701033315.GA30050@gondor.apana.org.au> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060701033315.GA30050@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: Herbert Xu Cc: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On 1 Jul 2006, at 04:33, Herbert Xu wrote: >> 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. Fair enough, that makes sense. > 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. I'm uncomfortable with this, even though it makes things a little easier now. For sanity I want to see netfront/netback explicitly grok flags rather than dumbly pass them through. I'd prefer uint8_t protocol and uint8_t flags. Former is a protocol enumeration; latter is unused now but we can add ECN and so on later. By the way: will we need netback to advertise support for the ECN flag? I'm not sure exactly what it will mean, and whether it can just be ignored by netbacks that don't support it? -- Keir