mac80211: another optimization for tx performance
authorFelix Fietkau <nbd@openwrt.org>
Sat, 18 Dec 2010 18:27:51 +0000 (18:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 18 Dec 2010 18:27:51 +0000 (18:27 +0000)
SVN-Revision: 24677

package/mac80211/patches/542-mac80211_fix_duplicate_skb_data_copy.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/542-mac80211_fix_duplicate_skb_data_copy.patch b/package/mac80211/patches/542-mac80211_fix_duplicate_skb_data_copy.patch
new file mode 100644 (file)
index 0000000..e66eee2
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/net/mac80211/tx.c
++++ b/net/mac80211/tx.c
+@@ -1943,7 +1943,7 @@ netdev_tx_t ieee80211_subif_start_xmit(s
+        */
+       if (skb_shared(skb)) {
+               tmp_skb = skb;
+-              skb = skb_copy(skb, GFP_ATOMIC);
++              skb = skb_clone(skb, GFP_ATOMIC);
+               kfree_skb(tmp_skb);
+               if (!skb) {