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)
commitc8f3a8c31069137fe0100e6920558f1a7487ef3c
tree891303875fcca8c8110c949955b87e1447dbcdfc
parent995a9090b2b7dc734351f3ac0ba8d913ffb87001
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