diff options
author | 2024-12-12 18:06:42 +0100 | |
---|---|---|
committer | 2024-12-16 12:51:40 +0000 | |
commit | b18fe47c0c093cc429f7e4d7694fdf0fc362aaf5 (patch) | |
tree | 261df9509bfe761d0d60cc7a315ae520cbbaf4a3 /net/core/dev_ioctl.c | |
parent | net: Make dev_get_hwtstamp_phylib accessible (diff) | |
download | wireguard-linux-b18fe47c0c093cc429f7e4d7694fdf0fc362aaf5.tar.xz wireguard-linux-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 <florian.fainelli@broadcom.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev_ioctl.c')
-rw-r--r-- | net/core/dev_ioctl.c | 2 |
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; |