sfc: Store the efx_nic struct of the current VF in the VF data struct
Initialised in efx_probe_vf and removal is dealt with in efx_ef10_remove. vf->efx is needed in future patches to change the MAC address of the VF via the parent PF, while the driver is bound to the VF. Example: ip link set dev vf NUM mac LLADDR Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

zatwierdzone przez
David S. Miller

rodzic
cfc77c2fba
commit
f1122a345b
@@ -14,11 +14,13 @@
|
||||
|
||||
/**
|
||||
* struct ef10_vf - PF's store of VF data
|
||||
* @efx: efx_nic struct for the current VF
|
||||
* @vport_id: vport ID for the VF
|
||||
* @vport_assigned: record whether the vport is currently assigned to the VF
|
||||
* @mac: MAC address for the VF, zero when address is removed from the vport
|
||||
*/
|
||||
struct ef10_vf {
|
||||
struct efx_nic *efx;
|
||||
unsigned int vport_id;
|
||||
unsigned int vport_assigned;
|
||||
u8 mac[ETH_ALEN];
|
||||
|
Reference in New Issue
Block a user