]> 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)
commit104636dedd62ea7241668b16d64a8f1c45497e15
tree891303875fcca8c8110c949955b87e1447dbcdfc
parentb4f472ff58e334b984e026f32fc0e3502cae5eef
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