summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/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/sriov.c
parent79f664edc1cf51a87d6681514ec89b6da5fef8e1 (diff)
downloadlinux-08a7b29be9734adab7f64a7675764a39ab7d29e1.tar.bz2
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/sriov.c')
-rw-r--r--drivers/net/ethernet/sfc/sriov.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/ethernet/sfc/sriov.c b/drivers/net/ethernet/sfc/sriov.c
index 9abcf4aded30..0b766fdbcddb 100644
--- a/drivers/net/ethernet/sfc/sriov.c
+++ b/drivers/net/ethernet/sfc/sriov.c
@@ -73,14 +73,3 @@ int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
else
return -EOPNOTSUPP;
}
-
-int efx_sriov_get_phys_port_id(struct net_device *net_dev,
- struct netdev_phys_item_id *ppid)
-{
- struct efx_nic *efx = netdev_priv(net_dev);
-
- if (efx->type->sriov_get_phys_port_id)
- return efx->type->sriov_get_phys_port_id(efx, ppid);
- else
- return -EOPNOTSUPP;
-}