From: Herbert Xu Subject: Re: [0/5] [NET]: Add TSO support Date: Thu, 29 Jun 2006 10:20:20 +1000 Message-ID: <20060629002020.GA16348@gondor.apana.org.au> References: <20060627120240.GA748@gondor.apana.org.au> <4ce42ba97df34accef8d150fbbe251f4@cl.cam.ac.uk> <20060628140239.GA9248@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: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On Wed, Jun 28, 2006 at 03:24:37PM +0100, Keir Fraser wrote: > > Adding new fields on the end of the existing structure is limiting. > Maybe we could chain extra info structures by declaring > NETTXF_extra_info in the leading request, then have a sequence of > netif_tx_extras, each of which is a discriminated union (so a > NETEXTRA_* type field, a flag indicating if this is the last extra-info > for this packet, plus a union)? Good idea. I've changed the interface to do exactly that. > Many NICs support TSO so there should be support in network stacks > other than Linux. What about *BSD, Solaris, and Windows? They should be able to use the GSO interface and simply always set gso_type to XEN_GSO_TCPV4. > Yes, we want them, and explicit code in netfront/netback to convert > between Linux gso types and 'wire' gso types. Even if they are > initially the same! Done. > 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. 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