Commit a8d16d08 authored by Hariprasad Shenai's avatar Hariprasad Shenai Committed by David S. Miller

cxgb4vf: Set number of queues in pci probe only

Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 28f71c6d
...@@ -790,10 +790,6 @@ static int cxgb4vf_open(struct net_device *dev) ...@@ -790,10 +790,6 @@ static int cxgb4vf_open(struct net_device *dev)
/* /*
* Note that this interface is up and start everything up ... * Note that this interface is up and start everything up ...
*/ */
netif_set_real_num_tx_queues(dev, pi->nqsets);
err = netif_set_real_num_rx_queues(dev, pi->nqsets);
if (err)
goto err_unwind;
err = link_start(dev); err = link_start(dev);
if (err) if (err)
goto err_unwind; goto err_unwind;
...@@ -2831,10 +2827,14 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev, ...@@ -2831,10 +2827,14 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,
* must register at least one net device. * must register at least one net device.
*/ */
for_each_port(adapter, pidx) { for_each_port(adapter, pidx) {
struct port_info *pi = netdev_priv(adapter->port[pidx]);
netdev = adapter->port[pidx]; netdev = adapter->port[pidx];
if (netdev == NULL) if (netdev == NULL)
continue; continue;
netif_set_real_num_tx_queues(netdev, pi->nqsets);
netif_set_real_num_rx_queues(netdev, pi->nqsets);
err = register_netdev(netdev); err = register_netdev(netdev);
if (err) { if (err) {
dev_warn(&pdev->dev, "cannot register net device %s," dev_warn(&pdev->dev, "cannot register net device %s,"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment