summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorSathya Perla <sathya.perla@emulex.com>2011-05-23 20:29:09 +0000
committerDavid S. Miller <davem@davemloft.net>2011-05-24 13:33:45 -0400
commit5d8bee676fc9fc9389302baa9ba47bc2ed885f64 (patch)
treef8b5b4dd334d976d916138155d2cb952883fb785 /drivers/net
parent33eb9873a283a2076f2b5628813d5365ca420ea9 (diff)
downloadlinux-3.10-5d8bee676fc9fc9389302baa9ba47bc2ed885f64.tar.gz
linux-3.10-5d8bee676fc9fc9389302baa9ba47bc2ed885f64.tar.bz2
linux-3.10-5d8bee676fc9fc9389302baa9ba47bc2ed885f64.zip
be2net: hash key for rss-config cmd not set
A non-zero, non-descript value is needed as the hash key. The hash variable was left un-initialized; but sometimes it gets a zero value and hashing is not effective. The constant value used now (not of any significance) seems to work fine. Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/benet/be_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c
index 2463b1c9792..81654ae16c6 100644
--- a/drivers/net/benet/be_cmds.c
+++ b/drivers/net/benet/be_cmds.c
@@ -1703,7 +1703,8 @@ int be_cmd_rss_config(struct be_adapter *adapter, u8 *rsstable, u16 table_size)
{
struct be_mcc_wrb *wrb;
struct be_cmd_req_rss_config *req;
- u32 myhash[10];
+ u32 myhash[10] = {0x0123, 0x4567, 0x89AB, 0xCDEF, 0x01EF,
+ 0x0123, 0x4567, 0x89AB, 0xCDEF, 0x01EF};
int status;
if (mutex_lock_interruptible(&adapter->mbox_lock))