mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
dbfa600148
commit
5952dde723
1 changed files with 2 additions and 2 deletions
|
@ -3493,8 +3493,8 @@ static void __devinit cfg_queues(struct adapter *adap)
|
|||
*/
|
||||
if (n10g)
|
||||
q10g = (MAX_ETH_QSETS - (adap->params.nports - n10g)) / n10g;
|
||||
if (q10g > num_online_cpus())
|
||||
q10g = num_online_cpus();
|
||||
if (q10g > netif_get_num_default_rss_queues())
|
||||
q10g = netif_get_num_default_rss_queues();
|
||||
|
||||
for_each_port(adap, i) {
|
||||
struct port_info *pi = adap2pinfo(adap, i);
|
||||
|
|
Loading…
Reference in a new issue