summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/sriov.c
diff options
context:
space:
mode:
authorShradha Shah <sshah@solarflare.com>2015-06-02 11:38:16 +0100
committerDavid S. Miller <davem@davemloft.net>2015-06-02 12:57:26 -0700
commit1d051e009851334899e2041c3d8dcde36e2db1c2 (patch)
treea90a782f3b1da0db83b4064208c9d60b0dd8b23c /drivers/net/ethernet/sfc/sriov.c
parent0f5c0845882745bc5fde9dbbf553926435efe887 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/sriov.c')
-rw-r--r--drivers/net/ethernet/sfc/sriov.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/sriov.c b/drivers/net/ethernet/sfc/sriov.c
index 6c5edbdbfa27..816c44689e67 100644
--- a/drivers/net/ethernet/sfc/sriov.c
+++ b/drivers/net/ethernet/sfc/sriov.c
@@ -70,3 +70,14 @@ 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;
+}