netlink: specs: Introduce new netlink command to get current timestamp
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 14 Nov 2023 11:28:37 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2023 14:52:57 +0000 (14:52 +0000)
commitbb8645b00ced1db036adf9ad7d9baaf1890aa2e6
tree47aaae4f7acb6b33e36cd60cb32ce6c9dcebd3a4
parent11d55be06df0aedf19b05ab61c2d26b31a3c7e64
netlink: specs: Introduce new netlink command to get current timestamp

Add a new commands allowing to get the current time stamping on a
netdevice's link.

Example usage :
./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do ts-get \
     --json '{"header":{"dev-name":"eth0"}}'
{'header': {'dev-index': 3, 'dev-name': 'eth0'}, 'ts-layer': 1}

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/netlink/specs/ethtool.yaml