]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: dont orphan TX skb
authorJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2011 12:55:40 +0000 (14:55 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Oct 2011 20:41:21 +0000 (16:41 -0400)
commita9fc72c66a38959787359801e018b4a0efa86f39
tree34acbba5d71e15793a8e179edc2478c144b08706
parent10e134c9839b055a5bac550100e58233c9b00e53
mac80211: dont orphan TX skb

This was another workaround for truesize "bugs".
The reason we did this was that when we orphaned
the SKB it wouldn't be truesize-checked later.
Now that the check is gone (and we just charge
the former smaller size to the socket) there's
no longer a reason to orphan the skb here.

Keep the skb charged to the socket until it is
really freed (or orphaned in TX status). This
helps flow control and allows us to get at the
socket later for other purposes.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c