From: Ron Mercer Date: Fri, 13 Feb 2009 00:38:18 +0000 (-0800) Subject: qlge: bugfix: Fix RX scaling values. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=def48b6e328c2ff9954c13e13ba8e1a03f0bde32;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: David S. Miller --- 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.