diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-02-12 16:38:18 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-12 16:38:18 -0800 |
commit | def48b6e328c2ff9954c13e13ba8e1a03f0bde32 (patch) | |
tree | 0c33dca91d4ff84f7ca150deda02ed9e4462dded | |
parent | 0d979f74a920bcc18eb451d363f02083a625294c (diff) | |
download | linux-def48b6e328c2ff9954c13e13ba8e1a03f0bde32.tar.gz linux-def48b6e328c2ff9954c13e13ba8e1a03f0bde32.tar.bz2 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>
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 4 |
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. |