]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mac80211: Use skb_header_cloned() on TX path."
authorDavid S. Miller <davem@davemloft.net>
Wed, 18 Jun 2008 08:19:51 +0000 (01:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jun 2008 08:19:51 +0000 (01:19 -0700)
commit1c4ff3af69db105dde4db1717ceaff316d22b0af
treec9480b8cca612e9355f6035f2e2814482a07d4b2
parent2c1dcdb2f6167003d4e8545557c51e0ad4de3358
Revert "mac80211: Use skb_header_cloned() on TX path."

This reverts commit a02725c8e8c79be5f337b719effb14beda36caff.

The problem is that the mac80211 stack not only needs to be able to
muck with the link-level headers, it also might need to mangle all of
the packet data if doing sw wireless encryption.

This fixes kernel bugzilla #10903.  Thanks to Didier Raboud (for the
bugzilla report), Andrew Prince (for bisecting), Johannes Berg (for
bringing this bisection analysis to my attention), and Ilpo (for
trying to analyze this purely from the TCP side).

In 2.6.27 we can take another stab at this, by using something like
skb_cow_data() when the TX path of mac80211 ends up with a non-NULL
tx->key.  The ESP protocol code in the IPSEC stack can be used as a
model for implementation.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/tx.c