* SUPPORTS_CLONED_SKBS question
@ 2015-12-14 12:58 Janusz Dziedzic
2015-12-14 13:30 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Janusz Dziedzic @ 2015-12-14 12:58 UTC (permalink / raw)
To: linux-wireless, Johannes Berg, Felix Fietkau
Hello Johannes,
During ath9k test we found a performance problem in TCP TX direction.
Seems a lot of time we spent in memcpy() and this is
because ath9k don't set SUPPORTS_CLONED_SKBS, and next
pskb_expand_head() is called for every TCP frame.
Base of SUPPORTS_CLONED_SKBS description, we can set this flag
in case driver will not touch payload or tailroom.
What exactly does it mean?
What in case of headroom, while ath9k already move 80211 header - add padding
after header (skb_push(hdrlen & 3) + memmove) and remove this padding
in tx_completion.
What in case of FCS?
I am not sure this is save to set this flag for ath9k?
Any hints?
BR
Janusz
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SUPPORTS_CLONED_SKBS question
2015-12-14 12:58 SUPPORTS_CLONED_SKBS question Janusz Dziedzic
@ 2015-12-14 13:30 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2015-12-14 13:30 UTC (permalink / raw)
To: Janusz Dziedzic, linux-wireless, Felix Fietkau, Ido Yariv
+Ido.
On Mon, 2015-12-14 at 13:58 +0100, Janusz Dziedzic wrote:
> Base of SUPPORTS_CLONED_SKBS description, we can set this flag
> in case driver will not touch payload or tailroom.
> What exactly does it mean?
Well, you must not modify the data in a way that would make the clone
invalid. That means you can't write to any of the data, essentially.
> What in case of headroom, while ath9k already move 80211 header - add
> padding
> after header (skb_push(hdrlen & 3) + memmove) and remove this padding
> in tx_completion.
I think that should be OK since you don't touch the payload data or the
tailroom.
> What in case of FCS?
What about it? Hopefully that's added by hardware and has no effect on
the skb?!
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-14 13:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 12:58 SUPPORTS_CLONED_SKBS question Janusz Dziedzic
2015-12-14 13:30 ` Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.