sfc: Store vf_index in nic_data for Ef10.
Added function efx_ef10_get_vf_index to store the vf_index in nic_data during probe vf_index is needed in future patches to access a particular VF in the VF data structure. Moved efx_ef10_probe_pf and efx_ef10_probe_vf in order to used efx_ef10_remove 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
862f894cb9
commit
88a37de674
@@ -525,6 +525,7 @@ struct efx_ef10_nic_data {
|
||||
bool must_probe_vswitching;
|
||||
unsigned int pf_index;
|
||||
#ifdef CONFIG_SFC_SRIOV
|
||||
unsigned int vf_index;
|
||||
struct ef10_vf *vf;
|
||||
#endif
|
||||
u8 vport_mac[ETH_ALEN];
|
||||
|
Reference in New Issue
Block a user