sfc: Implement the SIOCGHWTSTAMP ioctl
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
@@ -1857,7 +1857,9 @@ static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd)
|
||||
struct mii_ioctl_data *data = if_mii(ifr);
|
||||
|
||||
if (cmd == SIOCSHWTSTAMP)
|
||||
return efx_ptp_ioctl(efx, ifr, cmd);
|
||||
return efx_ptp_set_ts_config(efx, ifr);
|
||||
if (cmd == SIOCGHWTSTAMP)
|
||||
return efx_ptp_get_ts_config(efx, ifr);
|
||||
|
||||
/* Convert phy_id from older PRTAD/DEVAD format */
|
||||
if ((cmd == SIOCGMIIREG || cmd == SIOCSMIIREG) &&
|
||||
|
Reference in New Issue
Block a user