From: Emmanuel Grumbach Date: Wed, 2 Mar 2016 07:35:38 +0000 (+0200) Subject: Merge branch 'fixes' into next X-Git-Tag: next-20160308~76^2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=53f09e742b0fdf14a2a2bfd2062ee96c9b3eedf0;p=karo-tx-linux.git Merge branch 'fixes' into next Signed-off-by: Emmanuel Grumbach --- 53f09e742b0fdf14a2a2bfd2062ee96c9b3eedf0 diff --cc drivers/net/wireless/intel/iwlwifi/mvm/fw.c index efec6ec22f58,0ccc697fef76..594cd0dc7df9 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@@ -108,25 -107,7 +108,25 @@@ static int iwl_send_tx_ant_cfg(struct i sizeof(tx_ant_cmd), &tx_ant_cmd); } +static int iwl_send_rss_cfg_cmd(struct iwl_mvm *mvm) +{ + int i; + struct iwl_rss_config_cmd cmd = { + .flags = cpu_to_le32(IWL_RSS_ENABLE), + .hash_mask = IWL_RSS_HASH_TYPE_IPV4_TCP | + IWL_RSS_HASH_TYPE_IPV4_PAYLOAD | + IWL_RSS_HASH_TYPE_IPV6_TCP | + IWL_RSS_HASH_TYPE_IPV6_PAYLOAD, + }; + + for (i = 0; i < ARRAY_SIZE(cmd.indirection_table); i++) + cmd.indirection_table[i] = i % mvm->trans->num_rx_queues; + memcpy(cmd.secret_key, mvm->secret_key, sizeof(cmd.secret_key)); + + return iwl_mvm_send_cmd_pdu(mvm, RSS_CONFIG_CMD, 0, sizeof(cmd), &cmd); +} + - static void iwl_free_fw_paging(struct iwl_mvm *mvm) + void iwl_free_fw_paging(struct iwl_mvm *mvm) { int i;