Commit 5e51e50e authored by Kory Maincent's avatar Kory Maincent Committed by David S. Miller
Browse files

net: Make dev_get_hwtstamp_phylib accessible



Make the dev_get_hwtstamp_phylib function accessible in prevision to use
it from ethtool to read the hwtstamp current configuration.

Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarKory Maincent <kory.maincent@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da3e3186
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -310,5 +310,7 @@ static inline void dev_xmit_recursion_dec(void)
int dev_set_hwtstamp_phylib(struct net_device *dev,
			    struct kernel_hwtstamp_config *cfg,
			    struct netlink_ext_ack *extack);
int dev_get_hwtstamp_phylib(struct net_device *dev,
			    struct kernel_hwtstamp_config *cfg);

#endif
+2 −2
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ static int dev_eth_ioctl(struct net_device *dev,
 * -EOPNOTSUPP for phylib for now, which is still more accurate than letting
 * the netdev handle the GET request.
 */
static int dev_get_hwtstamp_phylib(struct net_device *dev,
int dev_get_hwtstamp_phylib(struct net_device *dev,
			    struct kernel_hwtstamp_config *cfg)
{
	if (phy_is_default_hwtstamp(dev->phydev))