]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Introduce a method for getting time stamping capabilities.
authorRichard Cochran <richardcochran@gmail.com>
Tue, 3 Apr 2012 22:59:17 +0000 (22:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2012 09:28:45 +0000 (05:28 -0400)
commita4771f79230a0f08910a8c07101d4a4384b5f143
tree891303875fcca8c8110c949955b87e1447dbcdfc
parent4415dc4392591f9cc2bad04c86c7a2fbf8cf835f
ethtool: Introduce a method for getting time stamping capabilities.

This commit adds a new ethtool ioctl that exposes the SO_TIMESTAMPING
capabilities of a network interface. In addition, user space programs
can use this ioctl to discover the PTP Hardware Clock (PHC) device
associated with the interface.

Since software receive time stamps are handled by the stack, the generic
ethtool code can answer the query correctly in case the MAC or PHY
drivers lack special time stamping features.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
include/linux/phy.h
net/core/ethtool.c