summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ef10_sriov.c
diff options
context:
space:
mode:
authorBert Kenward <bkenward@solarflare.com>2017-01-10 16:23:33 +0000
committerDavid S. Miller <davem@davemloft.net>2017-01-10 14:16:17 -0500
commit08a7b29be9734adab7f64a7675764a39ab7d29e1 (patch)
treeb2e4b9317c1320b7a0a5157c941f39b30c7fc923 /drivers/net/ethernet/sfc/ef10_sriov.c
parent79f664edc1cf51a87d6681514ec89b6da5fef8e1 (diff)
downloadblackbird-obmc-linux-08a7b29be9734adab7f64a7675764a39ab7d29e1.tar.gz
blackbird-obmc-linux-08a7b29be9734adab7f64a7675764a39ab7d29e1.zip
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10_sriov.c')
-rw-r--r--drivers/net/ethernet/sfc/ef10_sriov.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/ethernet/sfc/ef10_sriov.c b/drivers/net/ethernet/sfc/ef10_sriov.c
index a949b9d27329..a55c53d6f559 100644
--- a/drivers/net/ethernet/sfc/ef10_sriov.c
+++ b/drivers/net/ethernet/sfc/ef10_sriov.c
@@ -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;
-}
OpenPOWER on IntegriCloud