提交 57d37aea 编写于 作者: A Arjun Vynipadath 提交者: David S. Miller

cxgb4vf: Call netif_carrier_off properly in pci_probe

netif_carrier_off() should be called only after register_netdev().
Signed-off-by: NArjun Vynipadath <arjun@chelsio.com>
Signed-off-by: NVishal Kulkarni <vishal@chelsio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0960004b
...@@ -3136,7 +3136,6 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev, ...@@ -3136,7 +3136,6 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,
* it. * it.
*/ */
pi->xact_addr_filt = -1; pi->xact_addr_filt = -1;
netif_carrier_off(netdev);
netdev->irq = pdev->irq; netdev->irq = pdev->irq;
netdev->hw_features = NETIF_F_SG | TSO_FLAGS | NETIF_F_GRO | netdev->hw_features = NETIF_F_SG | TSO_FLAGS | NETIF_F_GRO |
...@@ -3259,6 +3258,7 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev, ...@@ -3259,6 +3258,7 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,
continue; continue;
} }
netif_carrier_off(netdev);
set_bit(pidx, &adapter->registered_device_map); set_bit(pidx, &adapter->registered_device_map);
} }
if (adapter->registered_device_map == 0) { if (adapter->registered_device_map == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册