mlx4_en: Using real number of rings as RSS map size
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Fri, 7 Aug 2009 02:27:51 +0000 (19:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2009 02:27:51 +0000 (19:27 -0700)
commitb6b912e0804dc1b3e856da3cc82fbe78b50e968c
treecc35371a7ad0caed0841183cf7356b398b1e9588
parenta35ee541a66d11d26da30d3f6046dbddd073334e
mlx4_en: Using real number of rings as RSS map size

There is no point in using more QPs then actual number of receive rings.
If the RSS function for two streams gives the same result modulo number
of rings, they will arrive to the same RX ring anyway.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_main.c
drivers/net/mlx4/en_netdev.c
drivers/net/mlx4/en_rx.c
drivers/net/mlx4/mlx4_en.h