|
@@ -65,6 +65,7 @@
|
|
|
*****************************************************************************/
|
|
|
#include <linux/vmalloc.h>
|
|
|
#include <linux/ieee80211.h>
|
|
|
+#include <linux/netdevice.h>
|
|
|
|
|
|
#include "mvm.h"
|
|
|
#include "fw-dbg.h"
|
|
@@ -880,8 +881,10 @@ static ssize_t iwl_dbgfs_indirection_tbl_write(struct iwl_mvm *mvm,
|
|
|
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_UDP |
|
|
|
IWL_RSS_HASH_TYPE_IPV4_PAYLOAD |
|
|
|
IWL_RSS_HASH_TYPE_IPV6_TCP |
|
|
|
+ IWL_RSS_HASH_TYPE_IPV6_UDP |
|
|
|
IWL_RSS_HASH_TYPE_IPV6_PAYLOAD,
|
|
|
};
|
|
|
int ret, i, num_repeats, nbytes = count / 2;
|
|
@@ -905,7 +908,7 @@ static ssize_t iwl_dbgfs_indirection_tbl_write(struct iwl_mvm *mvm,
|
|
|
memcpy(&cmd.indirection_table[i * nbytes], cmd.indirection_table,
|
|
|
ARRAY_SIZE(cmd.indirection_table) % nbytes);
|
|
|
|
|
|
- memcpy(cmd.secret_key, mvm->secret_key, sizeof(cmd.secret_key));
|
|
|
+ netdev_rss_key_fill(cmd.secret_key, sizeof(cmd.secret_key));
|
|
|
|
|
|
mutex_lock(&mvm->mutex);
|
|
|
ret = iwl_mvm_send_cmd_pdu(mvm, RSS_CONFIG_CMD, 0, sizeof(cmd), &cmd);
|