Skip to content

Commit ee60ea6

Browse files
kmaincentdavem330
authored andcommitted
netlink: specs: Introduce time stamping set command
Add a new commands allowing to set the time stamping. Example usage : ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema \ --do ts-list-get \ --json '{"header":{"dev-name":"eth0"}}' {'header': {'dev-index': 3, 'dev-name': 'eth0'}, 'ts-list-layer': b'\x02\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00'} ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --do ts-set \ --json '{"header":{"dev-name":"eth0"}, "ts-layer":5}' none ./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': 5} Signed-off-by: Kory Maincent <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 152c75e commit ee60ea6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/netlink/specs/ethtool.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -1737,3 +1737,12 @@ operations:
17371737
attributes:
17381738
- header
17391739
- ts-list-layer
1740+
-
1741+
name: ts-set
1742+
doc: Set the timestamp device
1743+
1744+
attribute-set: ts
1745+
1746+
do:
1747+
request:
1748+
attributes: *ts

0 commit comments

Comments
 (0)