diff options
author | Sara Sharon <sara.sharon@intel.com> | 2016-03-10 10:40:56 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2016-03-30 09:24:49 -0400 |
commit | 5e6a98dc4863e50a010ebdf09fa63c1e11929a85 (patch) | |
tree | e486810e2b5acc2bf5416e779da762749b171601 /drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | |
parent | 728e825f81b1fe29eb177148fcabfa55a7f4c1bb (diff) |
iwlwifi: mvm: enable TCP/UDP checksum support for 9000 family
Declare and enable support of RX and TX checksum for 9000 family.
Configure offload_assist in the TX cmd accordingly to support
TX csum.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
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.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 115d7aa5e720..4f5ec495b460 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | |||
@@ -665,12 +665,13 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) | |||
665 | } | 665 | } |
666 | 666 | ||
667 | hw->netdev_features |= mvm->cfg->features; | 667 | hw->netdev_features |= mvm->cfg->features; |
668 | if (!iwl_mvm_is_csum_supported(mvm)) | 668 | if (!iwl_mvm_is_csum_supported(mvm)) { |
669 | hw->netdev_features &= ~NETIF_F_RXCSUM; | 669 | hw->netdev_features &= ~(IWL_TX_CSUM_NETIF_FLAGS | |
670 | 670 | NETIF_F_RXCSUM); | |
671 | if (IWL_MVM_SW_TX_CSUM_OFFLOAD) | 671 | /* We may support SW TX CSUM */ |
672 | hw->netdev_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | | 672 | if (IWL_MVM_SW_TX_CSUM_OFFLOAD) |
673 | NETIF_F_TSO | NETIF_F_TSO6; | 673 | hw->netdev_features |= IWL_TX_CSUM_NETIF_FLAGS; |
674 | } | ||
674 | 675 | ||
675 | ret = ieee80211_register_hw(mvm->hw); | 676 | ret = ieee80211_register_hw(mvm->hw); |
676 | if (ret) | 677 | if (ret) |