Re: [RFC/RFT 3/4] mac80211: use GSO for fragmentation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Herbert Xu <herbert@...>
Cc: <linux-wireless@...>, <netdev@...>, Ron Rindjunsky <ron.rindjunsky@...>, Tomas Winkler <tomasw@...>, Ivo van Doorn <ivdoorn@...>, Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...>
Date: Wednesday, May 7, 2008 - 4:50 am

On Wed, 2008-05-07 at 15:10 +0800, Herbert Xu wrote:

Good point. Somehow I thought this couldn't happen but of course it can
since we don't do hw GSO.


But I want to get rid of that much more than I want to get rid of the
fragmentation code :/ Also, if I need to keep that code, I will
absolutely not use skb_segment either as it's more efficient to just
trim the existing skb to make the first segment out of it (like the code
does now) rather than reallocate that too.

However, I'm sure it's buggy under certain circumstances we never
understood (as indicated by a WARN_ON triggering that shouldn't and lots
of reports about that) and I don't like the extra tasklet. I guess I
could remove it and copy the existing code into the wireless qdisc, but
that would be weird.

But you're right, it doesn't work this way. I'll have to think of
something. Maybe I can rip out all the retry logic and just store an skb
myself (like dev->gso_skb) and return NETDEV_TX_BUSY when I used that
one and the queue got full because of it. That'll requeue a lot when
non-gso skbs are coming in, but mind you this is not a common case, most
of the time fragmentation will not be enabled and even when it is device
queues should be long enough.

johannes
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC/RFT 3/4] mac80211: use GSO for fragmentation, Johannes Berg, (Wed Apr 30, 8:40 am)
Re: [RFC/RFT 3/4] mac80211: use GSO for fragmentation, Johannes Berg, (Wed May 7, 4:50 am)
[PATCH] mac80211: rewrite fragmentation code, Johannes Berg, (Wed May 7, 7:22 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Wed May 7, 7:41 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Johannes Berg, (Wed May 7, 7:52 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Wed May 7, 9:05 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Johannes Berg, (Wed May 7, 3:19 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, Michael Buesch, (Wed May 7, 9:48 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Wed May 7, 11:22 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, Michael Buesch, (Thu May 8, 9:00 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Thu May 8, 9:08 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Michael Buesch, (Thu May 8, 9:13 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Thu May 8, 9:32 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Michael Buesch, (Thu May 8, 9:15 am)
Re: [PATCH] mac80211: rewrite fragmentation code, David Miller, (Wed May 7, 11:26 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, Rusty Russell, (Thu May 15, 10:01 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, David Miller, (Fri May 16, 12:58 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Rusty Russell, (Fri May 16, 6:32 am)
Re: [PATCH] mac80211: rewrite fragmentation code, David Miller, (Fri May 16, 3:40 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, Rusty Russell, (Sun May 18, 11:08 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, David Miller, (Mon May 19, 3:03 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Fri May 16, 8:15 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Johannes Berg, (Fri May 16, 6:38 am)
Re: [PATCH] mac80211: rewrite fragmentation code, Herbert Xu, (Thu May 15, 11:28 pm)
Re: [PATCH] mac80211: rewrite fragmentation code, Johannes Berg, (Thu May 8, 5:00 am)