From: Keir Fraser Subject: Re: [0/5] [NET]: Add TSO support Date: Thu, 29 Jun 2006 10:02:20 +0100 Message-ID: <390960d535dacfea77754357cf9cc55e@cl.cam.ac.uk> References: <20060627120240.GA748@gondor.apana.org.au> <4ce42ba97df34accef8d150fbbe251f4@cl.cam.ac.uk> <20060628140239.GA9248@gondor.apana.org.au> <20060629002020.GA16348@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: <20060629002020.GA16348@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 29 Jun 2006, at 01:20, Herbert Xu wrote: >> Another question: why are gso_size and gso_segs both required? Surely >> those, plus the overall request size, are redundant. e.g., shouldn't >> gso_segs = tot_size / gso_size (rounded up)? > > For TSO, gso_segs can be easily determined from the packet and > gso_size. > However, for GSO, we don't know the packet header length so the same is > not true. Each segment will need a header though, I'd imagine, so whoever does the segmentation needs to know the packet header length? Maybe I'm just confused. :-) Could you briefly explain what the inter-domain data format would be (e.g., is there a header, etc.), and gso_{size,segs}, for some arbitrary IP-encapsulated protocol? And how that information would be used to perform segmentation in the backend domain? Is the segmentation algorithm any different at all when the protocol is specifically TCPv4? I'd like to add some documentation of all this to netif.h when I have it clear in my head. The patches you sent look fine. I'd really like to understand this stuff before turning it on though. -- Keir