Skip to content

Commit b18fe47

Browse files
kmaincentdavem330
authored andcommitted
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>
1 parent 5e51e50 commit b18fe47

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

net/core/dev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,5 +312,6 @@ int dev_set_hwtstamp_phylib(struct net_device *dev,
312312
struct netlink_ext_ack *extack);
313313
int dev_get_hwtstamp_phylib(struct net_device *dev,
314314
struct kernel_hwtstamp_config *cfg);
315+
int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg);
315316

316317
#endif

net/core/dev_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cm
184184
return err;
185185
}
186186

187-
static int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg)
187+
int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg)
188188
{
189189
enum hwtstamp_tx_types tx_type;
190190
enum hwtstamp_rx_filters rx_filter;

0 commit comments

Comments
 (0)