aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorKory Maincent <[email protected]>2024-12-12 17:06:42 +0000
committerDavid S. Miller <[email protected]>2024-12-16 12:51:40 +0000
commitb18fe47c0c093cc429f7e4d7694fdf0fc362aaf5 (patch)
tree261df9509bfe761d0d60cc7a315ae520cbbaf4a3 /net/core/dev_ioctl.c
parentnet: Make dev_get_hwtstamp_phylib accessible (diff)
downloadkernel-b18fe47c0c093cc429f7e4d7694fdf0fc362aaf5.tar.gz
kernel-b18fe47c0c093cc429f7e4d7694fdf0fc362aaf5.zip
net: Make net_hwtstamp_validate accessible
Make the net_hwtstamp_validate function accessible in prevision to use it from ethtool to validate the hwtstamp configuration before setting it. Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Signed-off-by: Kory Maincent <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/dev_ioctl.c')
-rw-r--r--net/core/dev_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c
index 67cf68817f23..1f09930fca26 100644
--- a/net/core/dev_ioctl.c
+++ b/net/core/dev_ioctl.c
@@ -184,7 +184,7 @@ static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cm
return err;
}
-static int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg)
+int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg)
{
enum hwtstamp_tx_types tx_type;
enum hwtstamp_rx_filters rx_filter;