Thread (2 messages) 2 messages, 2 authors, 2014-08-11

Re: [PATCH] mac80211: don't resize skbs needlessly

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2014-08-11 15:01:06

On Tue, 2014-07-29 at 15:39 +0300, Emmanuel Grumbach wrote:
From: Ido Yariv <redacted>

Header-less cloned skbs with sufficient headroom need not be cloned
unless the tailroom is going to be modified.

Fix ieee80211_skb_resize so it would only resize cloned skbs if either
the header isn't released or the tailroom is going to be modified.

Some drivers might have assumed that skbs are never cloned, so add a HW
flag that explicitly permits cloned TX skbs. Drivers which do not modify
TX skbs should set this flag to avoid copying skbs.
Applied.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help