]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix the skb cloned check in the tx path
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 11:05:00 +0000 (12:05 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Feb 2011 21:02:14 +0000 (16:02 -0500)
commitca0741ccd68cab5f2a8625c73491c1d36fc70016
treeab7b069f25f0d6ddce88be4a1c898d3101ed1c09
parent6f4f5a87473d14477696a8c5dc6af42b4d6b3a37
mac80211: fix the skb cloned check in the tx path

Using skb_header_cloned to check if it's safe to write to the skb is not
enough - mac80211 also touches the tailroom of the skb.
Initially this check was only used to increase a counter, however this
commit changed the code to also skip skb data reallocation if no extra
head/tailroom was needed:

commit 099d2f2bdc29f80884909cce1a9f1f909be3c76a
mac80211: skip unnecessary pskb_expand_head calls

It added a regression at least with iwl3945, which is fixed by this patch.

Reported-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Tested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c