diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-04-13 16:58:25 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-04-22 11:25:30 +0200 |
commit | 680a0daba74fed0bf30530c9b3e7e706cf29855f (patch) | |
tree | 3022c5e0e3a3ec738c9d4f4ab6be50d152cc0fad /net/mac80211/main.c | |
parent | mac80211: allow checksum offload only in fast-xmit (diff) | |
download | linux-680a0daba74fed0bf30530c9b3e7e706cf29855f.tar.xz linux-680a0daba74fed0bf30530c9b3e7e706cf29855f.zip |
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>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index df3051d96aff..6dd6dd47a9df 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -840,7 +840,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) /* Only HW csum features are currently compatible with mac80211 */ feature_whitelist = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | - NETIF_F_HW_CSUM; + NETIF_F_HW_CSUM | NETIF_F_SG | NETIF_F_HIGHDMA; if (WARN_ON(hw->netdev_features & ~feature_whitelist)) return -EINVAL; |