diff options
Diffstat (limited to 'drivers/net/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/cxgb4/cxgb4_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c index 953d62a3403c..3012a8aeff45 100644 --- a/drivers/net/cxgb4/cxgb4_main.c +++ b/drivers/net/cxgb4/cxgb4_main.c | |||
@@ -2717,10 +2717,6 @@ static int cxgb_open(struct net_device *dev) | |||
2717 | return err; | 2717 | return err; |
2718 | } | 2718 | } |
2719 | 2719 | ||
2720 | netif_set_real_num_tx_queues(dev, pi->nqsets); | ||
2721 | err = netif_set_real_num_rx_queues(dev, pi->nqsets); | ||
2722 | if (err) | ||
2723 | return err; | ||
2724 | err = link_start(dev); | 2720 | err = link_start(dev); |
2725 | if (!err) | 2721 | if (!err) |
2726 | netif_tx_start_all_queues(dev); | 2722 | netif_tx_start_all_queues(dev); |
@@ -3733,6 +3729,10 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
3733 | * register at least one net device. | 3729 | * register at least one net device. |
3734 | */ | 3730 | */ |
3735 | for_each_port(adapter, i) { | 3731 | for_each_port(adapter, i) { |
3732 | pi = adap2pinfo(adapter, i); | ||
3733 | netif_set_real_num_tx_queues(adapter->port[i], pi->nqsets); | ||
3734 | netif_set_real_num_rx_queues(adapter->port[i], pi->nqsets); | ||
3735 | |||
3736 | err = register_netdev(adapter->port[i]); | 3736 | err = register_netdev(adapter->port[i]); |
3737 | if (err) | 3737 | if (err) |
3738 | dev_warn(&pdev->dev, | 3738 | dev_warn(&pdev->dev, |
@@ -3747,7 +3747,7 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
3747 | adapter->name = adapter->port[i]->name; | 3747 | adapter->name = adapter->port[i]->name; |
3748 | 3748 | ||
3749 | __set_bit(i, &adapter->registered_device_map); | 3749 | __set_bit(i, &adapter->registered_device_map); |
3750 | adapter->chan_map[adap2pinfo(adapter, i)->tx_chan] = i; | 3750 | adapter->chan_map[pi->tx_chan] = i; |
3751 | } | 3751 | } |
3752 | } | 3752 | } |
3753 | if (!adapter->registered_device_map) { | 3753 | if (!adapter->registered_device_map) { |