Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ron Mercer authored and davem330 committed Feb 13, 2009
1 parent 0d979f7 commit def48b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/qlge/qlge_main.c
Expand Up @@ -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.
Expand Down

0 comments on commit def48b6

Please sign in to comment.