]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d326c91003c824221566cefad900917e8d6ee1d
tree3022c5e0e3a3ec738c9d4f4ab6be50d152cc0fad
parent7671338d023b242ad0c3b29e8b04f95179adbf65
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