]> git.baikalelectronics.ru Git - kernel.git/commit
net: support time stamping in phy devices.
authorRichard Cochran <richardcochran@gmail.com>
Sat, 17 Jul 2010 08:49:36 +0000 (08:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jul 2010 02:15:26 +0000 (19:15 -0700)
commit738ca1bf94bed167b3ea3d7bbcbb37542f836d61
treed9525359409e3493b48e8676717cc11ed69b640a
parentaac7bcbf78cf4ad21a92c2eaca7e7fdf8c13e6f9
net: support time stamping in phy devices.

This patch adds a new networking option to allow hardware time stamps
from PHY devices. When enabled, likely candidates among incoming and
outgoing network packets are offered to the PHY driver for possible
time stamping. When accepted by the PHY driver, incoming packets are
deferred for later delivery by the driver.

The patch also adds phylib driver methods for the SIOCSHWTSTAMP ioctl
and callbacks for transmit and receive time stamping. Drivers may
optionally implement these functions.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
include/linux/netdevice.h
include/linux/phy.h
include/linux/skbuff.h
net/Kconfig
net/core/Makefile
net/core/dev.c
net/core/timestamping.c [new file with mode: 0644]
net/socket.c