aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge
diff options
context:
space:
mode:
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)
2884 /* 2884 /*
2885 * Fill out the Indirection Table. 2885 * Fill out the Indirection Table.
2886 */ 2886 */
2887 for (i = 0; i < 32; i++) 2887 for (i = 0; i < 256; i++)
2888 hash_id[i] = i & 1; 2888 hash_id[i] = i & (qdev->rss_ring_count - 1);
2889 2889
2890 /* 2890 /*
2891 * Random values for the IPv6 and IPv4 Hash Keys. 2891 * Random values for the IPv6 and IPv4 Hash Keys.