From: Johannes Berg Date: Wed, 30 Mar 2016 09:05:16 +0000 (+0200) Subject: iwlwifi: mvm: advertise RSS queue usage X-Git-Tag: v4.7-rc1~96^2~8^2~12^2~28 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=80938abc79a0d14d747a4b3a0c93cb0aa70f238e;hp=c24c7f58d77a75343010d88fdf85ddebad2d7438;p=cascardo%2Flinux.git iwlwifi: mvm: advertise RSS queue usage In order for mac80211 to use per-CPU statistics for RSS RX, the driver needs to advertise that it uses RSS. Do this when using more than a single queue. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 6286063ebecf..5648e3751205 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -442,6 +442,9 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) if (iwl_mvm_has_new_rx_api(mvm)) ieee80211_hw_set(hw, SUPPORTS_REORDERING_BUFFER); + if (mvm->trans->num_rx_queues > 1) + ieee80211_hw_set(hw, USES_RSS); + if (mvm->trans->max_skb_frags) hw->netdev_features = NETIF_F_HIGHDMA | NETIF_F_SG;