summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach2015-10-14 13:16:35 +0200
committerEmmanuel Grumbach2015-12-20 13:48:23 +0100
commita3713f8bdd9c840c902998fd6133d94031974960 (patch)
treef2515d7f9212d35bb4f6fca81ccf205268bce96a /drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
parentiwlwifi: pcie: allow to pretend to have Tx CSUM for debug (diff)
downloadkernel-qcow2-linux-a3713f8bdd9c840c902998fd6133d94031974960.tar.gz
kernel-qcow2-linux-a3713f8bdd9c840c902998fd6133d94031974960.tar.xz
kernel-qcow2-linux-a3713f8bdd9c840c902998fd6133d94031974960.zip
iwlwifi: mvm: prepare the code towards TSO implementation
Differentiate between the cases where the skb is a large send and the other cases. Advertise TSO even if, at this stage, skb_gso_segment will be called and it will do all the work. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
index 0227b29d43c8..d239e97ab98a 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
@@ -668,7 +668,8 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
hw->netdev_features &= ~NETIF_F_RXCSUM;
if (IWL_MVM_SW_TX_CSUM_OFFLOAD)
- hw->netdev_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
+ hw->netdev_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
+ NETIF_F_TSO | NETIF_F_TSO6;
ret = ieee80211_register_hw(mvm->hw);
if (ret)