summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2015-10-23 15:06:19 -0400
committerDavid S. Miller <davem@davemloft.net>2015-10-23 17:34:34 -0700
commit379a80a1d048dcacfc2011d5d32e16d5c804b9f4 (patch)
tree1fee3bb597596654e2b3613b3cc1c5e0488f1967 /drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
parentbf7958607d0b792e0c43482c0c78786023a69832 (diff)
downloadlinux-379a80a1d048dcacfc2011d5d32e16d5c804b9f4.tar.gz
linux-379a80a1d048dcacfc2011d5d32e16d5c804b9f4.tar.bz2
linux-379a80a1d048dcacfc2011d5d32e16d5c804b9f4.zip
bnxt_en: Fix compile errors when CONFIG_BNXT_SRIOV is not set.
struct bnxt_pf_info needs to be always defined. Move bnxt_update_vf_mac() to bnxt_sriov.c and add some missing #ifdef CONFIG_BNXT_SRIOV. Reported-by: Jim Hull <jim.hull@hpe.com> Tested-by: Jim Hull <jim.hull@hpe.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
index 0b430f157b9e..c151280e3980 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h
@@ -19,4 +19,5 @@ int bnxt_set_vf_spoofchk(struct net_device *, int, bool);
int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
void bnxt_sriov_disable(struct bnxt *);
void bnxt_hwrm_exec_fwd_req(struct bnxt *);
+void bnxt_update_vf_mac(struct bnxt *);
#endif