sfc: Implement ndo_gets_phys_port_id() for EF10 VFs
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
0f5c084588
commit
1d051e0098
@@ -736,3 +736,17 @@ int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int efx_ef10_sriov_get_phys_port_id(struct efx_nic *efx,
|
||||
struct netdev_phys_item_id *ppid)
|
||||
{
|
||||
struct efx_ef10_nic_data *nic_data = efx->nic_data;
|
||||
|
||||
if (!is_valid_ether_addr(nic_data->port_id))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
ppid->id_len = ETH_ALEN;
|
||||
memcpy(ppid->id, nic_data->port_id, ppid->id_len);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user