mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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>
This commit is contained in:
parent
5e51e50e23
commit
b18fe47c0c
@ -312,5 +312,6 @@ int dev_set_hwtstamp_phylib(struct net_device *dev,
|
||||
struct netlink_ext_ack *extack);
|
||||
int dev_get_hwtstamp_phylib(struct net_device *dev,
|
||||
struct kernel_hwtstamp_config *cfg);
|
||||
int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg);
|
||||
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user