Commit 95132a01 authored by Maxime Chevallier's avatar Maxime Chevallier Committed by David S. Miller

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: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63d5eaf3
...@@ -16,6 +16,11 @@ definitions: ...@@ -16,6 +16,11 @@ definitions:
name: stringset name: stringset
type: enum type: enum
entries: [] entries: []
-
name: phy-upstream-type
enum-name:
type: enum
entries: [ mac, phy ]
attribute-sets: attribute-sets:
- -
...@@ -945,6 +950,45 @@ attribute-sets: ...@@ -945,6 +950,45 @@ attribute-sets:
- -
name: burst-tmr name: burst-tmr
type: u32 type: u32
-
name: phy-upstream
attributes:
-
name: index
type: u32
-
name: sfp-name
type: string
-
name: phy
attributes:
-
name: header
type: nest
nested-attributes: header
-
name: index
type: u32
-
name: drvname
type: string
-
name: name
type: string
-
name: upstream-type
type: u8
enum: phy-upstream-type
-
name: upstream
type: nest
nested-attributes: phy-upstream
-
name: downstream-sfp-name
type: string
-
name: id
type: u32
operations: operations:
enum-model: directional enum-model: directional
...@@ -1696,3 +1740,24 @@ operations: ...@@ -1696,3 +1740,24 @@ operations:
name: mm-ntf name: mm-ntf
doc: Notification for change in MAC Merge configuration. doc: Notification for change in MAC Merge configuration.
notify: mm-get notify: mm-get
-
name: phy-get
doc: Get PHY devices attached to an interface
attribute-set: phy
do: &phy-get-op
request:
attributes:
- header
reply:
attributes:
- header
- index
- drvname
- name
- upstream-type
- upstream
- downstream-sfp-name
- id
dump: *phy-get-op
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment