aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
index 33d49516fcea..a10bdb2fd900 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
@@ -753,12 +753,15 @@ static inline int bnx2x_vf_ustorm_prods_offset(struct bnx2x *bp,
753enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp); 753enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp);
754void bnx2x_vf_map_doorbells(struct bnx2x *bp); 754void bnx2x_vf_map_doorbells(struct bnx2x *bp);
755int bnx2x_vf_pci_alloc(struct bnx2x *bp); 755int bnx2x_vf_pci_alloc(struct bnx2x *bp);
756void bnx2x_enable_sriov(struct bnx2x *bp); 756int bnx2x_enable_sriov(struct bnx2x *bp);
757void bnx2x_disable_sriov(struct bnx2x *bp);
757static inline int bnx2x_vf_headroom(struct bnx2x *bp) 758static inline int bnx2x_vf_headroom(struct bnx2x *bp)
758{ 759{
759 return bp->vfdb->sriov.nr_virtfn * BNX2X_CLIENTS_PER_VF; 760 return bp->vfdb->sriov.nr_virtfn * BNX2X_CLIENTS_PER_VF;
760} 761}
761void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp); 762void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp);
763int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs);
764int bnx2x_open_epilog(struct bnx2x *bp);
762 765
763#else /* CONFIG_BNX2X_SRIOV */ 766#else /* CONFIG_BNX2X_SRIOV */
764 767
@@ -781,7 +784,8 @@ static inline void bnx2x_iov_init_dmae(struct bnx2x *bp) {}
781static inline int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, 784static inline int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param,
782 int num_vfs_param) {return 0; } 785 int num_vfs_param) {return 0; }
783static inline void bnx2x_iov_remove_one(struct bnx2x *bp) {} 786static inline void bnx2x_iov_remove_one(struct bnx2x *bp) {}
784static inline void bnx2x_enable_sriov(struct bnx2x *bp) {} 787static inline int bnx2x_enable_sriov(struct bnx2x *bp) {return 0; }
788static inline void bnx2x_disable_sriov(struct bnx2x *bp) {}
785static inline int bnx2x_vfpf_acquire(struct bnx2x *bp, 789static inline int bnx2x_vfpf_acquire(struct bnx2x *bp,
786 u8 tx_count, u8 rx_count) {return 0; } 790 u8 tx_count, u8 rx_count) {return 0; }
787static inline int bnx2x_vfpf_release(struct bnx2x *bp) {return 0; } 791static inline int bnx2x_vfpf_release(struct bnx2x *bp) {return 0; }
@@ -807,6 +811,8 @@ static inline enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp
807static inline int bnx2x_vf_map_doorbells(struct bnx2x *bp) {return 0; } 811static inline int bnx2x_vf_map_doorbells(struct bnx2x *bp) {return 0; }
808static inline int bnx2x_vf_pci_alloc(struct bnx2x *bp) {return 0; } 812static inline int bnx2x_vf_pci_alloc(struct bnx2x *bp) {return 0; }
809static inline void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp) {} 813static inline void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp) {}
814static inline int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs) {return 0; }
815static inline int bnx2x_open_epilog(struct bnx2x *bp) {return 0; }
810 816
811#endif /* CONFIG_BNX2X_SRIOV */ 817#endif /* CONFIG_BNX2X_SRIOV */
812#endif /* bnx2x_sriov.h */ 818#endif /* bnx2x_sriov.h */