Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <maxime.chevallier@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Tested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Maxime Chevallier and committed by
David S. Miller
d3d9a3e4 17194be4

+55
+55
Documentation/netlink/specs/ethtool.yaml
··· 39 39 - ovld-detected 40 40 - power-not-available 41 41 - short-detected 42 + - 43 + name: phy-upstream-type 44 + enum-name: 45 + type: enum 46 + entries: [ mac, phy ] 42 47 43 48 attribute-sets: 44 49 - ··· 1097 1092 - 1098 1093 name: total 1099 1094 type: uint 1095 + - 1096 + name: phy 1097 + attributes: 1098 + - 1099 + name: header 1100 + type: nest 1101 + nested-attributes: header 1102 + - 1103 + name: index 1104 + type: u32 1105 + - 1106 + name: drvname 1107 + type: string 1108 + - 1109 + name: name 1110 + type: string 1111 + - 1112 + name: upstream-type 1113 + type: u32 1114 + enum: phy-upstream-type 1115 + - 1116 + name: upstream-index 1117 + type: u32 1118 + - 1119 + name: upstream-sfp-name 1120 + type: string 1121 + - 1122 + name: downstream-sfp-name 1123 + type: string 1100 1124 1101 1125 operations: 1102 1126 enum-model: directional ··· 1924 1890 - status-msg 1925 1891 - done 1926 1892 - total 1893 + - 1894 + name: phy-get 1895 + doc: Get PHY devices attached to an interface 1896 + 1897 + attribute-set: phy 1898 + 1899 + do: &phy-get-op 1900 + request: 1901 + attributes: 1902 + - header 1903 + reply: 1904 + attributes: 1905 + - header 1906 + - index 1907 + - drvname 1908 + - name 1909 + - upstream-type 1910 + - upstream-index 1911 + - upstream-sfp-name 1912 + - downstream-sfp-name 1913 + dump: *phy-get-op