iwlwifi: dvm: advertise NETIF_F_SG
authorJohannes Berg <johannes.berg@intel.com>
Fri, 17 Apr 2015 14:39:12 +0000 (16:39 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Dec 2015 06:52:48 +0000 (08:52 +0200)
If the transport supports it, advertise NETIF_F_SG to mac80211 to
be able to use frag SKBs. This will already improve performance by
allowing software GSO to be used.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c

index a9d8b51419b49e4797c9c49c17e093fe29feca7e..f4c2529f7b94178c041c3fca756b44a38d41db40 100644 (file)
@@ -115,6 +115,9 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
        ieee80211_hw_set(hw, SUPPORT_FAST_XMIT);
        ieee80211_hw_set(hw, WANT_MONITOR_VIF);
 
+       if (priv->trans->max_skb_frags)
+               hw->netdev_features = NETIF_F_HIGHDMA | NETIF_F_SG;
+
        hw->offchannel_tx_hw_queue = IWL_AUX_QUEUE;
        hw->radiotap_mcs_details |= IEEE80211_RADIOTAP_MCS_HAVE_FMT;