sfc: support ndo_get_phys_port_id even when !CONFIG_SFC_SRIOV
There's no good reason why this should be an SRIOV-only thing. Thus, also move it out of SRIOV-specific files. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
79f664edc1
commit
08a7b29be9
@@ -760,17 +760,3 @@ 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