Skip to content

Commit aed5004

Browse files
kmaincentdavem330
authored andcommitted
netlink: specs: Introduce new netlink command to list available time stamping layers
Add a new commands allowing to list available time stamping layers on a netdevice's link. 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'\x01\x00\x00\x00\x05\x00\x00\x00'} Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d905f9c commit aed5004

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
@@ -949,6 +949,16 @@ attribute-sets:
949949
-
950950
name: ts-layer
951951
type: u32
952+
-
953+
name: ts-list
954+
attributes:
955+
-
956+
name: header
957+
type: nest
958+
nested-attributes: header
959+
-
960+
name: ts-list-layer
961+
type: binary
952962

953963
operations:
954964
enum-model: directional
@@ -1713,3 +1723,17 @@ operations:
17131723
attributes: &ts
17141724
- header
17151725
- ts-layer
1726+
-
1727+
name: ts-list-get
1728+
doc: Get list of timestamp devices available on an interface
1729+
1730+
attribute-set: ts-list
1731+
1732+
do:
1733+
request:
1734+
attributes:
1735+
- header
1736+
reply:
1737+
attributes:
1738+
- header
1739+
- ts-list-layer

0 commit comments

Comments
 (0)