diff options
author | 2015-05-06 00:58:14 +0100 | |
---|---|---|
committer | 2015-05-09 16:16:47 -0400 | |
commit | 02246a7f966c2e66ff0453d12d9b8d1bff895cf9 (patch) | |
tree | 81e42c59db4509aae03f30f76b4d195d238029f2 /drivers/net/ethernet/sfc/ef10_sriov.h | |
parent | sfc: get the PF number and record in nic_data (diff) | |
download | wireguard-linux-02246a7f966c2e66ff0453d12d9b8d1bff895cf9.tar.xz wireguard-linux-02246a7f966c2e66ff0453d12d9b8d1bff895cf9.zip |
sfc: Prepare to bind the sfc driver to the VF.
Added efx_nic_type structure for VF.
Mapped a different BAR for VF as it uses BAR 0 for memory.
Added functions sriov_init and sriov_fini.
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10_sriov.h')
-rw-r--r-- | drivers/net/ethernet/sfc/ef10_sriov.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/ethernet/sfc/ef10_sriov.h b/drivers/net/ethernet/sfc/ef10_sriov.h index 676b00ced063..40833dbdb973 100644 --- a/drivers/net/ethernet/sfc/ef10_sriov.h +++ b/drivers/net/ethernet/sfc/ef10_sriov.h @@ -18,15 +18,10 @@ static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) } int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs); - -static inline int efx_ef10_sriov_init(struct efx_nic *efx) -{ - return -EOPNOTSUPP; -} - +int efx_ef10_sriov_init(struct efx_nic *efx); static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {} static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} -static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {} +void efx_ef10_sriov_fini(struct efx_nic *efx); static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} static inline int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, |