]> 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)
commit6b9dff448fbd5c23035916e12046d9cec4af48b9
tree3022c5e0e3a3ec738c9d4f4ab6be50d152cc0fad
parent06968f9aa0349a4e724aa5a4dcd682e3febd8811
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