diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-06-30 23:18:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-05 06:06:44 -0400 |
commit | 5952dde723077e5e0db43cbc9dfb00a4f47c42ef (patch) | |
tree | 22b3404d7a266ea64a7f08e59d8656f4d34f0804 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | dbfa600148a25903976910863c75dae185f8d187 (diff) |
cxgb4: set maximal number of default RSS queues
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Cc: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index e1f96fbb48c1..5ed49af23d6a 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
@@ -3493,8 +3493,8 @@ static void __devinit cfg_queues(struct adapter *adap) | |||
3493 | */ | 3493 | */ |
3494 | if (n10g) | 3494 | if (n10g) |
3495 | q10g = (MAX_ETH_QSETS - (adap->params.nports - n10g)) / n10g; | 3495 | q10g = (MAX_ETH_QSETS - (adap->params.nports - n10g)) / n10g; |
3496 | if (q10g > num_online_cpus()) | 3496 | if (q10g > netif_get_num_default_rss_queues()) |
3497 | q10g = num_online_cpus(); | 3497 | q10g = netif_get_num_default_rss_queues(); |
3498 | 3498 | ||
3499 | for_each_port(adap, i) { | 3499 | for_each_port(adap, i) { |
3500 | struct port_info *pi = adap2pinfo(adap, i); | 3500 | struct port_info *pi = adap2pinfo(adap, i); |