aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/efx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-11-13 20:26:21 -0500
committerBen Hutchings <bhutchings@solarflare.com>2013-11-19 16:42:46 -0500
commit433dc9b3d123e72a0f5988c1f0d1c9319a735276 (patch)
tree4383e9560feb4c9f5674d7cc9b8edfde70b2bc38 /drivers/net/ethernet/sfc/efx.c
parentfd468c74bd4d6949736810a80d6ca05eb20fba84 (diff)
sfc: Implement the SIOCGHWTSTAMP ioctl
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r--drivers/net/ethernet/sfc/efx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index 07c9bc4c61bc..22ca5cd3f722 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -1857,7 +1857,9 @@ static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd)
1857 struct mii_ioctl_data *data = if_mii(ifr); 1857 struct mii_ioctl_data *data = if_mii(ifr);
1858 1858
1859 if (cmd == SIOCSHWTSTAMP) 1859 if (cmd == SIOCSHWTSTAMP)
1860 return efx_ptp_ioctl(efx, ifr, cmd); 1860 return efx_ptp_set_ts_config(efx, ifr);
1861 if (cmd == SIOCGHWTSTAMP)
1862 return efx_ptp_get_ts_config(efx, ifr);
1861 1863
1862 /* Convert phy_id from older PRTAD/DEVAD format */ 1864 /* Convert phy_id from older PRTAD/DEVAD format */
1863 if ((cmd == SIOCGMIIREG || cmd == SIOCSMIIREG) && 1865 if ((cmd == SIOCGMIIREG || cmd == SIOCSMIIREG) &&