]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove deprecated syststamp timestamp
authorWillem de Bruijn <willemb@google.com>
Fri, 25 Jul 2014 22:01:32 +0000 (18:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jul 2014 18:39:50 +0000 (11:39 -0700)
commitf89e2555d4b08b58502b42a049c33ee66d48fa87
tree2915bc3a3e8ea825e7b02349b05915aaff8a91eb
parent5961fded57ab6e37854134d53320d6bf5d1fb6d5
net: remove deprecated syststamp timestamp

The SO_TIMESTAMPING API defines three types of timestamps: software,
hardware in raw format (hwtstamp) and hardware converted to system
format (syststamp). The last has been deprecated in favor of combining
hwtstamp with a PTP clock driver. There are no active users in the
kernel.

The option was device driver dependent. If set, but without hardware
support, the correct behavior is to return zero in the relevant field
in the SCM_TIMESTAMPING ancillary message. Without device drivers
implementing the option, this field is effectively always zero.

Remove the internal plumbing to dissuage new drivers from implementing
the feature. Keep the SOF_TIMESTAMPING_SYS_HARDWARE flag, however, to
avoid breaking existing applications that request the timestamp.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/timestamping.txt
Documentation/networking/timestamping/timestamping.c
include/linux/skbuff.h
include/net/sock.h
net/core/sock.c
net/socket.c