Re: [RFC/RFT 3/4] mac80211: use GSO for fragmentation
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-05-07 07:10:31
Also in:
linux-wireless
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-05-07 07:10:31
Also in:
linux-wireless
On Wed, Apr 30, 2008 at 02:40:58PM +0200, Johannes Berg wrote:
This patch makes mac80211 use the GSO infrastructure for segmentation, but not really all of it because we do not register a protocol handler (nor can do that easily since a lot of functions need to be done before segmentation and another bunch afterwards, and we need to keep rcu- protected structures for both.)
Your idea of using skb_segment to remove duplicate code is great. However, using skb->gso_skb for the push-back doesn't work. For example, what is going to happen when I enable software GSO on a wireless device and then send a real GSO packet to it where each GSO fragment also required wireless fragmentation? I suggest that you just use skb_segment for the actual fragmentation but keep the original infrastructure for handling the fragments. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt