aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ethtool.h
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2012-04-03 22:59:22 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-04 05:28:46 -0400
commit02eacbd0c405d378d2357e8e0fac5de981bd40f8 (patch)
treec6213bbd5f83b8dc4a5dd06f35792beb91116bd7 /include/linux/ethtool.h
parentixp4xx_eth: Support the get_ts_info ethtool method. (diff)
downloadlinux-dev-02eacbd0c405d378d2357e8e0fac5de981bd40f8.tar.xz
linux-dev-02eacbd0c405d378d2357e8e0fac5de981bd40f8.zip
ethtool: Add a common function for drivers with transmit time stamping.
Currently, most drivers do not support transmit SO_TIMESTAMPING. For those that do support it, there is one appropriate response to the get_ts_info query. This patch adds a common function providing this response. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Reviewed-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 1769714447b3..560a247bde2a 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -811,6 +811,7 @@ struct net_device;
/* Some generic methods drivers may use in their ethtool_ops */
u32 ethtool_op_get_link(struct net_device *dev);
+int ethtool_op_get_ts_info(struct net_device *dev, struct ethtool_ts_info *eti);
/**
* ethtool_rxfh_indir_default - get default value for RX flow hash indirection