summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/nic.h
diff options
context:
space:
mode:
authorShradha Shah <sshah@solarflare.com>2015-05-20 12:09:15 +0200
committerDavid S. Miller <davem@davemloft.net>2015-05-22 00:43:52 +0200
commit88a37de674f8a7c7622bb00d78437153b31e3797 (patch)
tree38af5cb59b97dc8b4e98a431e1fd3a4c77f73fe0 /drivers/net/ethernet/sfc/nic.h
parentsfc: MC_CMD_SET_MAC can only be called by the link control Function (diff)
downloadlinux-88a37de674f8a7c7622bb00d78437153b31e3797.tar.xz
linux-88a37de674f8a7c7622bb00d78437153b31e3797.zip
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
-rw-r--r--drivers/net/ethernet/sfc/nic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h
index 2fd30556e6c3..db8562ec586d 100644
--- a/drivers/net/ethernet/sfc/nic.h
+++ b/drivers/net/ethernet/sfc/nic.h
@@ -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];