mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02: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);
|
struct netlink_ext_ack *extack);
|
||||||
int dev_get_hwtstamp_phylib(struct net_device *dev,
|
int dev_get_hwtstamp_phylib(struct net_device *dev,
|
||||||
struct kernel_hwtstamp_config *cfg);
|
struct kernel_hwtstamp_config *cfg);
|
||||||
|
int net_hwtstamp_validate(const struct kernel_hwtstamp_config *cfg);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -184,7 +184,7 @@ static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cm
|
||||||
return err;
|
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_tx_types tx_type;
|
||||||
enum hwtstamp_rx_filters rx_filter;
|
enum hwtstamp_rx_filters rx_filter;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user