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>
This commit is contained in:

committed by
David S. Miller

parent
1cd9ecbbe6
commit
02246a7f96
@@ -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,
|
||||
|
Reference in New Issue
Block a user