Skip to content

Commit 95132a0

Browse files
minimaxwelldavem330
authored andcommitted
netlink: specs: add ethnl PHY_GET command set
The PHY_GET command, supporting both DUMP and GET operations, is used to retrieve the list of PHYs connected to a netdevice, and get topology information to know where exactly it sits on the physical link. Add the netlink specs corresponding to that command. Signed-off-by: Maxime Chevallier <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 63d5eaf commit 95132a0

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

Documentation/netlink/specs/ethtool.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ definitions:
1616
name: stringset
1717
type: enum
1818
entries: []
19+
-
20+
name: phy-upstream-type
21+
enum-name:
22+
type: enum
23+
entries: [ mac, phy ]
1924

2025
attribute-sets:
2126
-
@@ -945,6 +950,45 @@ attribute-sets:
945950
-
946951
name: burst-tmr
947952
type: u32
953+
-
954+
name: phy-upstream
955+
attributes:
956+
-
957+
name: index
958+
type: u32
959+
-
960+
name: sfp-name
961+
type: string
962+
-
963+
name: phy
964+
attributes:
965+
-
966+
name: header
967+
type: nest
968+
nested-attributes: header
969+
-
970+
name: index
971+
type: u32
972+
-
973+
name: drvname
974+
type: string
975+
-
976+
name: name
977+
type: string
978+
-
979+
name: upstream-type
980+
type: u8
981+
enum: phy-upstream-type
982+
-
983+
name: upstream
984+
type: nest
985+
nested-attributes: phy-upstream
986+
-
987+
name: downstream-sfp-name
988+
type: string
989+
-
990+
name: id
991+
type: u32
948992

949993
operations:
950994
enum-model: directional
@@ -1696,3 +1740,24 @@ operations:
16961740
name: mm-ntf
16971741
doc: Notification for change in MAC Merge configuration.
16981742
notify: mm-get
1743+
-
1744+
name: phy-get
1745+
doc: Get PHY devices attached to an interface
1746+
1747+
attribute-set: phy
1748+
1749+
do: &phy-get-op
1750+
request:
1751+
attributes:
1752+
- header
1753+
reply:
1754+
attributes:
1755+
- header
1756+
- index
1757+
- drvname
1758+
- name
1759+
- upstream-type
1760+
- upstream
1761+
- downstream-sfp-name
1762+
- id
1763+
dump: *phy-get-op

0 commit comments

Comments
 (0)