be2net: hash key for rss-config cmd not set
authorSathya Perla <sathya.perla@emulex.com>
Mon, 23 May 2011 20:29:09 +0000 (20:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 May 2011 17:33:45 +0000 (13:33 -0400)
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>
drivers/net/benet/be_cmds.c

index 2463b1c979227b5c5320ba3c788728a5325f7c2f..81654ae16c63b99627046b4836e25ab0b1a05115 100644 (file)
@@ -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))