mac80211: allow drivers to support S/G
authorJohannes Berg <johannes.berg@intel.com>
Mon, 13 Apr 2015 14:58:25 +0000 (16:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 22 Apr 2015 09:25:30 +0000 (11:25 +0200)
commit680a0daba74fed0bf30530c9b3e7e706cf29855f
tree3022c5e0e3a3ec738c9d4f4ab6be50d152cc0fad
parent2d981fddb0e4a5a4097d926f3b9fd3eaf25867a8
mac80211: allow drivers to support S/G

If drivers want to support S/G (really just gather DMA on TX) then
we can now easily support this on the fast-xmit path since it just
needs to write to the ethernet header (and already has a check for
that being possible.)

However, disallow this on the regular TX path (which has to handle
fragmentation, software crypto, etc.) by calling skb_linearize().

Also allow the related HIGHDMA since that's not interesting to the
code in mac80211 at all anyway.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/main.c
net/mac80211/tx.c