summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-02-13 01:38:18 +0100
committerDavid S. Miller <davem@davemloft.net>2009-02-13 01:38:18 +0100
commitdef48b6e328c2ff9954c13e13ba8e1a03f0bde32 (patch)
tree0c33dca91d4ff84f7ca150deda02ed9e4462dded /drivers/net/qlge
parentqlge: bugfix: Fix TSO breakage. (diff)
downloadlinux-def48b6e328c2ff9954c13e13ba8e1a03f0bde32.tar.xz
linux-def48b6e328c2ff9954c13e13ba8e1a03f0bde32.zip
qlge: bugfix: Fix RX scaling values.
Receive packets were only scaling across 2 of the receive queues. The value was hardcoded to 2 instead of being based on how many rx queues were running. Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r--drivers/net/qlge/qlge_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 54b0a9e9d898..3ab03695aaf0 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -2884,8 +2884,8 @@ static int ql_start_rss(struct ql_adapter *qdev)
/*
* Fill out the Indirection Table.
*/
- for (i = 0; i < 32; i++)
- hash_id[i] = i & 1;
+ for (i = 0; i < 256; i++)
+ hash_id[i] = i & (qdev->rss_ring_count - 1);
/*
* Random values for the IPv6 and IPv4 Hash Keys.