]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
qlge: bugfix: Fix RX scaling values.
authorRon Mercer <ron.mercer@qlogic.com>
Fri, 13 Feb 2009 00:38:18 +0000 (16:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Feb 2009 00:38:18 +0000 (16:38 -0800)
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>
drivers/net/qlge/qlge_main.c

index 54b0a9e9d8980497acb8069944c033621ed91c7c..3ab03695aaf0a1b92537e8c6359666be6054d3c6 100644 (file)
@@ -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.