]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/ethtool/tsinfo.c
ethtool: provide timestamping information with TSINFO_GET request
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Mar 2020 23:01:58 +0000 (00:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:32:37 +0000 (22:32 -0700)
commit5b071c59ede04db200d9eccb97701261461e89bf
treec1f74f356a90c2cc80fbf14e06981ffd1a89b2f9
parentf76510b458a52023e96b3a700a97ffb526de17dc
ethtool: provide timestamping information with TSINFO_GET request

Implement TSINFO_GET request to get timestamping information for a network
device. This is traditionally available via ETHTOOL_GET_TS_INFO ioctl
request.

Move part of ethtool_get_ts_info() into common.c so that ioctl and netlink
code use the same logic to get timestamping information from the device.

v3: use "TSINFO" rather than "TIMESTAMP", suggested by Richard Cochran

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h
net/ethtool/Makefile
net/ethtool/common.c
net/ethtool/common.h
net/ethtool/ioctl.c
net/ethtool/netlink.c
net/ethtool/netlink.h
net/ethtool/tsinfo.c [new file with mode: 0644]