]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: adjust the call to alloc_etherdev_mqs()
authorPetri Gynther <pgynther@google.com>
Fri, 6 Mar 2015 01:40:12 +0000 (17:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 20:13:41 +0000 (15:13 -0500)
commit1d12974ef51d5d6645e14c0560a0b4ba7eaf0567
tree03c489e11bb19788f41e5b6761a82e7aa4d6e767
parentaf58b31f79b99ed56bd72fb94addb8163e174e5b
net: bcmgenet: adjust the call to alloc_etherdev_mqs()

In preparation for supporting multiple Rx queues, adjust the call to
alloc_etherdev_mqs() to allow max GENET_MAX_MQ_CNT + 1 Rx queues.

The actual number of Rx queues in use is correctly adjusted with:
netif_set_real_num_rx_queues(priv->dev, priv->hw_params->rx_queues + 1);

Signed-off-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c