aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 75aea83ee68..f34ff59a809 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -12018,6 +12018,8 @@ static int bnx2x_get_num_non_def_sbs(struct pci_dev *pdev,
12018 return control & PCI_MSIX_FLAGS_QSIZE; 12018 return control & PCI_MSIX_FLAGS_QSIZE;
12019} 12019}
12020 12020
12021struct cnic_eth_dev *bnx2x_cnic_probe(struct net_device *);
12022
12021static int bnx2x_init_one(struct pci_dev *pdev, 12023static int bnx2x_init_one(struct pci_dev *pdev,
12022 const struct pci_device_id *ent) 12024 const struct pci_device_id *ent)
12023{ 12025{
@@ -12097,6 +12099,7 @@ static int bnx2x_init_one(struct pci_dev *pdev,
12097 bp->igu_sb_cnt = max_non_def_sbs; 12099 bp->igu_sb_cnt = max_non_def_sbs;
12098 bp->msg_enable = debug; 12100 bp->msg_enable = debug;
12099 bp->cnic_support = cnic_cnt; 12101 bp->cnic_support = cnic_cnt;
12102 bp->cnic_probe = bnx2x_cnic_probe;
12100 12103
12101 pci_set_drvdata(pdev, dev); 12104 pci_set_drvdata(pdev, dev);
12102 12105
@@ -13038,6 +13041,5 @@ struct cnic_eth_dev *bnx2x_cnic_probe(struct net_device *dev)
13038 cp->starting_cid); 13041 cp->starting_cid);
13039 return cp; 13042 return cp;
13040} 13043}
13041EXPORT_SYMBOL(bnx2x_cnic_probe);
13042 13044
13043 13045