Skip to content

Commit bb8645b

Browse files
kmaincentdavem330
authored andcommitted
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>
1 parent 11d55be commit bb8645b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Documentation/netlink/specs/ethtool.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,16 @@ attribute-sets:
939939
-
940940
name: burst-tmr
941941
type: u32
942+
-
943+
name: ts
944+
attributes:
945+
-
946+
name: header
947+
type: nest
948+
nested-attributes: header
949+
-
950+
name: ts-layer
951+
type: u32
942952

943953
operations:
944954
enum-model: directional
@@ -1689,3 +1699,17 @@ operations:
16891699
name: mm-ntf
16901700
doc: Notification for change in MAC Merge configuration.
16911701
notify: mm-get
1702+
-
1703+
name: ts-get
1704+
doc: Get current timestamp
1705+
1706+
attribute-set: ts
1707+
1708+
do:
1709+
request:
1710+
attributes:
1711+
- header
1712+
reply:
1713+
attributes: &ts
1714+
- header
1715+
- ts-layer

0 commit comments

Comments
 (0)