diff options
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h | 10 |
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, | |||
753 | enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp); | 753 | enum sample_bulletin_result bnx2x_sample_bulletin(struct bnx2x *bp); |
754 | void bnx2x_vf_map_doorbells(struct bnx2x *bp); | 754 | void bnx2x_vf_map_doorbells(struct bnx2x *bp); |
755 | int bnx2x_vf_pci_alloc(struct bnx2x *bp); | 755 | int bnx2x_vf_pci_alloc(struct bnx2x *bp); |
756 | void bnx2x_enable_sriov(struct bnx2x *bp); | 756 | int bnx2x_enable_sriov(struct bnx2x *bp); |
757 | void bnx2x_disable_sriov(struct bnx2x *bp); | ||
757 | static inline int bnx2x_vf_headroom(struct bnx2x *bp) | 758 | static 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 | } |
761 | void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp); | 762 | void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp); |
763 | int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs); | ||
764 | int 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) {} | |||
781 | static inline int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, | 784 | static 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; } |
783 | static inline void bnx2x_iov_remove_one(struct bnx2x *bp) {} | 786 | static inline void bnx2x_iov_remove_one(struct bnx2x *bp) {} |
784 | static inline void bnx2x_enable_sriov(struct bnx2x *bp) {} | 787 | static inline int bnx2x_enable_sriov(struct bnx2x *bp) {return 0; } |
788 | static inline void bnx2x_disable_sriov(struct bnx2x *bp) {} | ||
785 | static inline int bnx2x_vfpf_acquire(struct bnx2x *bp, | 789 | static 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; } |
787 | static inline int bnx2x_vfpf_release(struct bnx2x *bp) {return 0; } | 791 | static 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 | |||
807 | static inline int bnx2x_vf_map_doorbells(struct bnx2x *bp) {return 0; } | 811 | static inline int bnx2x_vf_map_doorbells(struct bnx2x *bp) {return 0; } |
808 | static inline int bnx2x_vf_pci_alloc(struct bnx2x *bp) {return 0; } | 812 | static inline int bnx2x_vf_pci_alloc(struct bnx2x *bp) {return 0; } |
809 | static inline void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp) {} | 813 | static inline void bnx2x_pf_set_vfs_vlan(struct bnx2x *bp) {} |
814 | static inline int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs) {return 0; } | ||
815 | static 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 */ |