xref: /linux/Documentation/netlink/specs/ethtool.yaml (revision 7d1f84f1b94e79cb95d974ab3ec54cb3a4d64f5b)
1# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2---
3name: ethtool
4
5protocol: genetlink-legacy
6
7doc: Partial family for Ethtool Netlink.
8uapi-header: linux/ethtool_netlink_generated.h
9
10c-family-name: ethtool-genl-name
11c-version-name: ethtool-genl-version
12
13definitions:
14  -
15    name: udp-tunnel-type
16    enum-name:
17    type: enum
18    entries: [vxlan, geneve, vxlan-gpe]
19    enum-cnt-name: __ethtool-udp-tunnel-type-cnt
20    render-max: true
21  -
22    name: stringset
23    type: enum
24    entries: []
25    header: linux/ethtool.h  # skip rendering, no actual definition
26  -
27    name: header-flags
28    type: flags
29    name-prefix: ethtool-flag-
30    doc: common ethtool header flags
31    entries:
32      -
33        name: compact-bitsets
34        doc: use compact bitsets in reply
35      -
36        name: omit-reply
37        doc: provide optional reply for SET or ACT requests
38      -
39        name: stats
40        doc: request statistics, if supported by the driver
41  -
42    name: module-fw-flash-status
43    type: enum
44    doc: plug-in module firmware flashing status
45    header: linux/ethtool.h
46    entries:
47      -
48        name: started
49        doc: The firmware flashing process has started.
50        value: 1
51      -
52        name: in-progress
53        doc: The firmware flashing process is in progress.
54      -
55        name: completed
56        doc: The firmware flashing process was completed successfully.
57      -
58        name: error
59        doc: The firmware flashing process was stopped due to an error.
60  -
61    name: c33-pse-ext-state
62    doc: |
63      "groups of PSE extended states functions. IEEE 802.3-2022 33.2.4.4
64      Variables"
65    type: enum
66    name-prefix: ethtool-c33-pse-ext-state-
67    header: linux/ethtool.h
68    entries:
69      -
70        name: none
71        doc: none
72      -
73        name: error-condition
74        doc: Group of error_condition states
75      -
76        name: mr-mps-valid
77        doc: Group of mr_mps_valid states
78      -
79        name: mr-pse-enable
80        doc: Group of mr_pse_enable states
81      -
82        name: option-detect-ted
83        doc: Group of option_detect_ted states
84      -
85        name: option-vport-lim
86        doc: Group of option_vport_lim states
87      -
88        name: ovld-detected
89        doc: Group of ovld_detected states
90      -
91        name: power-not-available
92        doc: Group of power_not_available states
93        value: 8
94      -
95        name: short-detected
96        doc: Group of short_detected states
97  -
98    name: phy-upstream-type
99    enum-name: phy-upstream
100    header: linux/ethtool.h
101    type: enum
102    name-prefix: phy-upstream-
103    entries: [mac, phy]
104  -
105    name: tcp-data-split
106    type: enum
107    entries: [unknown, disabled, enabled]
108  -
109    name: hwtstamp-source
110    doc: Source of the hardware timestamp
111    enum-name: hwtstamp-source
112    name-prefix: hwtstamp-source-
113    type: enum
114    entries:
115      -
116        name: netdev
117        doc: |
118          Hardware timestamp comes from a MAC or a device
119          which has MAC and PHY integrated
120        value: 1
121      -
122        name: phylib
123        doc: |
124          Hardware timestamp comes from one PHY device
125          of the network topology
126  -
127    name: pse-event
128    doc: PSE event list for the PSE controller
129    type: flags
130    name-prefix: ethtool-
131    entries:
132      -
133        name: pse-event-over-current
134        doc: PSE output current is too high
135      -
136        name: pse-event-over-temp
137        doc: PSE in over temperature state
138      -
139        name: c33-pse-event-detection
140        doc: |
141          detection process occur on the PSE. IEEE 802.3-2022 33.2.5 and
142          145.2.6 PSE detection of PDs. IEEE 802.3-202 30.9.1.1.5
143          aPSEPowerDetectionStatus
144      -
145        name: c33-pse-event-classification
146        doc: |
147          classification process occur on the PSE. IEEE 802.3-2022 33.2.6
148          and 145.2.8 classification of PDs mutual identification.
149          IEEE 802.3-2022 30.9.1.1.8 aPSEPowerClassification.
150      -
151        name: c33-pse-event-disconnection
152        doc: |
153          PD has been disconnected on the PSE. IEEE 802.3-2022 33.3.8
154          and 145.3.9 PD Maintain Power Signature. IEEE 802.3-2022
155          33.5.1.2.9 MPS Absent. IEEE 802.3-2022 30.9.1.1.20
156          aPSEMPSAbsentCounter.
157      -
158        name: pse-event-over-budget
159        doc: PSE turned off due to over budget situation
160      -
161        name: pse-event-sw-pw-control-error
162        doc: PSE faced an error managing the power control from software
163  -
164    name: input-xfrm
165    doc: RSS hash function transformations.
166    type: flags
167    enum-name:
168    name-prefix: rxh-xfrm-
169    header: linux/ethtool.h
170    entries:
171      -
172        name: sym-xor
173        doc: >-
174          XOR the corresponding source and destination fields of each specified
175          protocol. Both copies of the XOR'ed fields are fed into the RSS and
176          RXHASH calculation. Note that this XORing reduces the input set
177          entropy and could be exploited to reduce the RSS queue spread.
178      -
179        name: sym-or-xor
180        doc: >-
181          Similar to SYM_XOR, except that one copy of the XOR'ed fields is
182          replaced by an OR of the same fields.
183  -
184    name: rxfh-fields
185    name-prefix: rxh-
186    enum-name:
187    header: linux/ethtool.h
188    type: flags
189    entries:
190      -
191        name: l2da
192        value: 1
193      -
194        name: vlan
195      -
196        name: l3-proto
197      -
198        name: ip-src
199      -
200        name: ip-dst
201      -
202        name: l4-b-0-1
203        doc: src port in case of TCP/UDP/SCTP
204      -
205        name: l4-b-2-3
206        doc: dst port in case of TCP/UDP/SCTP
207      -
208        name: gtp-teid
209      -
210        name: ip6-fl
211        doc: IPv6 Flow Label
212      -
213        name: discard
214        value: 31
215  -
216    name: port-type
217    doc: type of physical connector
218    type: enum
219    entries: [mdi, sfp]
220
221attribute-sets:
222  -
223    name: header
224    attr-cnt-name: __ethtool-a-header-cnt
225    attributes:
226      -
227        name: unspec
228        type: unused
229        value: 0
230      -
231        name: dev-index
232        type: u32
233      -
234        name: dev-name
235        type: string
236      -
237        name: flags
238        type: u32
239        enum: header-flags
240      -
241        name: phy-index
242        type: u32
243
244  -
245    name: bitset-bit
246    attr-cnt-name: __ethtool-a-bitset-bit-cnt
247    attributes:
248      -
249        name: unspec
250        type: unused
251        value: 0
252      -
253        name: index
254        type: u32
255      -
256        name: name
257        type: string
258      -
259        name: value
260        type: flag
261  -
262    name: bitset-bits
263    attr-cnt-name: __ethtool-a-bitset-bits-cnt
264    attributes:
265      -
266        name: unspec
267        type: unused
268        value: 0
269      -
270        name: bit
271        type: nest
272        multi-attr: true
273        nested-attributes: bitset-bit
274  -
275    name: bitset
276    attr-cnt-name: __ethtool-a-bitset-cnt
277    attributes:
278      -
279        name: unspec
280        type: unused
281        value: 0
282      -
283        name: nomask
284        type: flag
285      -
286        name: size
287        type: u32
288      -
289        name: bits
290        type: nest
291        nested-attributes: bitset-bits
292      -
293        name: value
294        type: binary
295      -
296        name: mask
297        type: binary
298  -
299    name: string
300    attr-cnt-name: __ethtool-a-string-cnt
301    attributes:
302      -
303        name: unspec
304        type: unused
305        value: 0
306      -
307        name: index
308        type: u32
309      -
310        name: value
311        type: string
312  -
313    name: strings
314    attr-cnt-name: __ethtool-a-strings-cnt
315    attributes:
316      -
317        name: unspec
318        type: unused
319        value: 0
320      -
321        name: string
322        type: nest
323        multi-attr: true
324        nested-attributes: string
325  -
326    name: stringset
327    attr-cnt-name: __ethtool-a-stringset-cnt
328    attributes:
329      -
330        name: unspec
331        type: unused
332        value: 0
333      -
334        name: id
335        type: u32
336      -
337        name: count
338        type: u32
339      -
340        name: strings
341        type: nest
342        multi-attr: true
343        nested-attributes: strings
344  -
345    name: stringsets
346    attr-cnt-name: __ethtool-a-stringsets-cnt
347    attributes:
348      -
349        name: unspec
350        type: unused
351        value: 0
352      -
353        name: stringset
354        type: nest
355        multi-attr: true
356        nested-attributes: stringset
357  -
358    name: strset
359    attr-cnt-name: __ethtool-a-strset-cnt
360    attributes:
361      -
362        name: unspec
363        type: unused
364        value: 0
365      -
366        name: header
367        type: nest
368        nested-attributes: header
369      -
370        name: stringsets
371        type: nest
372        nested-attributes: stringsets
373      -
374        name: counts-only
375        type: flag
376
377  -
378    name: privflags
379    attr-cnt-name: __ethtool-a-privflags-cnt
380    attributes:
381      -
382        name: unspec
383        type: unused
384        value: 0
385      -
386        name: header
387        type: nest
388        nested-attributes: header
389      -
390        name: flags
391        type: nest
392        nested-attributes: bitset
393
394  -
395    name: rings
396    attr-cnt-name: __ethtool-a-rings-cnt
397    attributes:
398      -
399        name: unspec
400        type: unused
401        value: 0
402      -
403        name: header
404        type: nest
405        nested-attributes: header
406      -
407        name: rx-max
408        type: u32
409      -
410        name: rx-mini-max
411        type: u32
412      -
413        name: rx-jumbo-max
414        type: u32
415      -
416        name: tx-max
417        type: u32
418      -
419        name: rx
420        type: u32
421      -
422        name: rx-mini
423        type: u32
424      -
425        name: rx-jumbo
426        type: u32
427      -
428        name: tx
429        type: u32
430      -
431        name: rx-buf-len
432        type: u32
433      -
434        name: tcp-data-split
435        type: u8
436        enum: tcp-data-split
437      -
438        name: cqe-size
439        type: u32
440      -
441        name: tx-push
442        type: u8
443      -
444        name: rx-push
445        type: u8
446      -
447        name: tx-push-buf-len
448        type: u32
449      -
450        name: tx-push-buf-len-max
451        type: u32
452      -
453        name: hds-thresh
454        type: u32
455      -
456        name: hds-thresh-max
457        type: u32
458
459  -
460    name: mm-stat
461    attr-cnt-name: __ethtool-a-mm-stat-cnt
462    doc: MAC Merge (802.3)
463    attributes:
464      -
465        name: unspec
466        type: unused
467        value: 0
468      -
469        name: pad
470        type: pad
471      -
472        name: reassembly-errors
473        doc: aMACMergeFrameAssErrorCount
474        type: u64
475      -
476        name: smd-errors
477        doc: aMACMergeFrameSmdErrorCount
478        type: u64
479      -
480        name: reassembly-ok
481        doc: aMACMergeFrameAssOkCount
482        type: u64
483      -
484        name: rx-frag-count
485        doc: aMACMergeFragCountRx
486        type: u64
487      -
488        name: tx-frag-count
489        doc: aMACMergeFragCountTx
490        type: u64
491      -
492        name: hold-count
493        doc: aMACMergeHoldCount
494        type: u64
495  -
496    name: mm
497    attr-cnt-name: __ethtool-a-mm-cnt
498    attributes:
499      -
500        name: unspec
501        type: unused
502        value: 0
503      -
504        name: header
505        type: nest
506        nested-attributes: header
507      -
508        name: pmac-enabled
509        type: u8
510      -
511        name: tx-enabled
512        type: u8
513      -
514        name: tx-active
515        type: u8
516      -
517        name: tx-min-frag-size
518        type: u32
519      -
520        name: rx-min-frag-size
521        type: u32
522      -
523        name: verify-enabled
524        type: u8
525      -
526        name: verify-status
527        type: u8
528      -
529        name: verify-time
530        type: u32
531      -
532        name: max-verify-time
533        type: u32
534      -
535        name: stats
536        type: nest
537        nested-attributes: mm-stat
538  -
539    name: linkinfo
540    attr-cnt-name: __ethtool-a-linkinfo-cnt
541    attributes:
542      -
543        name: unspec
544        type: unused
545        value: 0
546      -
547        name: header
548        type: nest
549        nested-attributes: header
550      -
551        name: port
552        type: u8
553      -
554        name: phyaddr
555        type: u8
556      -
557        name: tp-mdix
558        type: u8
559      -
560        name: tp-mdix-ctrl
561        type: u8
562      -
563        name: transceiver
564        type: u8
565  -
566    name: linkmodes
567    attr-cnt-name: __ethtool-a-linkmodes-cnt
568    attributes:
569      -
570        name: unspec
571        type: unused
572        value: 0
573      -
574        name: header
575        type: nest
576        nested-attributes: header
577      -
578        name: autoneg
579        type: u8
580      -
581        name: ours
582        type: nest
583        nested-attributes: bitset
584      -
585        name: peer
586        type: nest
587        nested-attributes: bitset
588      -
589        name: speed
590        type: u32
591      -
592        name: duplex
593        type: u8
594      -
595        name: master-slave-cfg
596        type: u8
597      -
598        name: master-slave-state
599        type: u8
600      -
601        name: lanes
602        type: u32
603      -
604        name: rate-matching
605        type: u8
606  -
607    name: linkstate
608    attr-cnt-name: __ethtool-a-linkstate-cnt
609    attributes:
610      -
611        name: unspec
612        type: unused
613        value: 0
614      -
615        name: header
616        type: nest
617        nested-attributes: header
618      -
619        name: link
620        type: u8
621      -
622        name: sqi
623        type: u32
624      -
625        name: sqi-max
626        type: u32
627      -
628        name: ext-state
629        type: u8
630      -
631        name: ext-substate
632        type: u8
633      -
634        name: ext-down-cnt
635        type: u32
636  -
637    name: debug
638    attr-cnt-name: __ethtool-a-debug-cnt
639    attributes:
640      -
641        name: unspec
642        type: unused
643        value: 0
644      -
645        name: header
646        type: nest
647        nested-attributes: header
648      -
649        name: msgmask
650        type: nest
651        nested-attributes: bitset
652  -
653    name: wol
654    attr-cnt-name: __ethtool-a-wol-cnt
655    attributes:
656      -
657        name: unspec
658        type: unused
659        value: 0
660      -
661        name: header
662        type: nest
663        nested-attributes: header
664      -
665        name: modes
666        type: nest
667        nested-attributes: bitset
668      -
669        name: sopass
670        type: binary
671  -
672    name: features
673    attr-cnt-name: __ethtool-a-features-cnt
674    attributes:
675      -
676        name: unspec
677        type: unused
678        value: 0
679      -
680        name: header
681        type: nest
682        nested-attributes: header
683      -
684        name: hw
685        type: nest
686        nested-attributes: bitset
687      -
688        name: wanted
689        type: nest
690        nested-attributes: bitset
691      -
692        name: active
693        type: nest
694        nested-attributes: bitset
695      -
696        name: nochange
697        type: nest
698        nested-attributes: bitset
699  -
700    name: channels
701    attr-cnt-name: __ethtool-a-channels-cnt
702    attributes:
703      -
704        name: unspec
705        type: unused
706        value: 0
707      -
708        name: header
709        type: nest
710        nested-attributes: header
711      -
712        name: rx-max
713        type: u32
714      -
715        name: tx-max
716        type: u32
717      -
718        name: other-max
719        type: u32
720      -
721        name: combined-max
722        type: u32
723      -
724        name: rx-count
725        type: u32
726      -
727        name: tx-count
728        type: u32
729      -
730        name: other-count
731        type: u32
732      -
733        name: combined-count
734        type: u32
735
736  -
737    name: irq-moderation
738    attr-cnt-name: __ethtool-a-irq-moderation-cnt
739    attributes:
740      -
741        name: unspec
742        type: unused
743        value: 0
744      -
745        name: usec
746        type: u32
747      -
748        name: pkts
749        type: u32
750      -
751        name: comps
752        type: u32
753  -
754    name: profile
755    attr-cnt-name: __ethtool-a-profile-cnt
756    attributes:
757      -
758        name: unspec
759        type: unused
760        value: 0
761      -
762        name: irq-moderation
763        type: nest
764        multi-attr: true
765        nested-attributes: irq-moderation
766  -
767    name: coalesce
768    attr-cnt-name: __ethtool-a-coalesce-cnt
769    attributes:
770      -
771        name: unspec
772        type: unused
773        value: 0
774      -
775        name: header
776        type: nest
777        nested-attributes: header
778      -
779        name: rx-usecs
780        type: u32
781      -
782        name: rx-max-frames
783        type: u32
784      -
785        name: rx-usecs-irq
786        type: u32
787      -
788        name: rx-max-frames-irq
789        type: u32
790      -
791        name: tx-usecs
792        type: u32
793      -
794        name: tx-max-frames
795        type: u32
796      -
797        name: tx-usecs-irq
798        type: u32
799      -
800        name: tx-max-frames-irq
801        type: u32
802      -
803        name: stats-block-usecs
804        type: u32
805      -
806        name: use-adaptive-rx
807        type: u8
808      -
809        name: use-adaptive-tx
810        type: u8
811      -
812        name: pkt-rate-low
813        type: u32
814      -
815        name: rx-usecs-low
816        type: u32
817      -
818        name: rx-max-frames-low
819        type: u32
820      -
821        name: tx-usecs-low
822        type: u32
823      -
824        name: tx-max-frames-low
825        type: u32
826      -
827        name: pkt-rate-high
828        type: u32
829      -
830        name: rx-usecs-high
831        type: u32
832      -
833        name: rx-max-frames-high
834        type: u32
835      -
836        name: tx-usecs-high
837        type: u32
838      -
839        name: tx-max-frames-high
840        type: u32
841      -
842        name: rate-sample-interval
843        type: u32
844      -
845        name: use-cqe-mode-tx
846        type: u8
847      -
848        name: use-cqe-mode-rx
849        type: u8
850      -
851        name: tx-aggr-max-bytes
852        type: u32
853      -
854        name: tx-aggr-max-frames
855        type: u32
856      -
857        name: tx-aggr-time-usecs
858        type: u32
859      -
860        name: rx-profile
861        type: nest
862        nested-attributes: profile
863      -
864        name: tx-profile
865        type: nest
866        nested-attributes: profile
867      -
868        name: rx-cqe-frames
869        type: u32
870      -
871        name: rx-cqe-nsecs
872        type: u32
873
874  -
875    name: pause-stat
876    attr-cnt-name: __ethtool-a-pause-stat-cnt
877    attributes:
878      -
879        name: unspec
880        type: unused
881        value: 0
882      -
883        name: pad
884        type: pad
885      -
886        name: tx-frames
887        type: u64
888      -
889        name: rx-frames
890        type: u64
891      -
892        name: tx-pause-storm-events
893        type: u64
894        doc: >-
895            TX pause storm event count. Increments each time device
896            detects that its pause assertion condition has been true
897            for too long for normal operation. As a result, the device
898            has temporarily disabled its own Pause TX function to
899            protect the network from itself.
900            This counter should never increment under normal overload
901            conditions; it indicates catastrophic failure like an OS
902            crash. The rate of incrementing is implementation specific.
903
904  -
905    name: pause
906    attr-cnt-name: __ethtool-a-pause-cnt
907    attributes:
908      -
909        name: unspec
910        type: unused
911        value: 0
912      -
913        name: header
914        type: nest
915        nested-attributes: header
916      -
917        name: autoneg
918        type: u8
919      -
920        name: rx
921        type: u8
922      -
923        name: tx
924        type: u8
925      -
926        name: stats
927        type: nest
928        nested-attributes: pause-stat
929      -
930        name: stats-src
931        type: u32
932  -
933    name: eee
934    attr-cnt-name: __ethtool-a-eee-cnt
935    attributes:
936      -
937        name: unspec
938        type: unused
939        value: 0
940      -
941        name: header
942        type: nest
943        nested-attributes: header
944      -
945        name: modes-ours
946        type: nest
947        nested-attributes: bitset
948      -
949        name: modes-peer
950        type: nest
951        nested-attributes: bitset
952      -
953        name: active
954        type: u8
955      -
956        name: enabled
957        type: u8
958      -
959        name: tx-lpi-enabled
960        type: u8
961      -
962        name: tx-lpi-timer
963        type: u32
964  -
965    name: ts-stat
966    attr-cnt-name: __ethtool-a-ts-stat-cnt
967    attributes:
968      -
969        name: unspec
970        type: unused
971        value: 0
972      -
973        name: tx-pkts
974        type: uint
975      -
976        name: tx-lost
977        type: uint
978      -
979        name: tx-err
980        type: uint
981      -
982        name: tx-onestep-pkts-unconfirmed
983        type: uint
984  -
985    name: ts-hwtstamp-provider
986    attr-cnt-name: __ethtool-a-ts-hwtstamp-provider-cnt
987    attributes:
988      -
989        name: unspec
990        type: unused
991        value: 0
992      -
993        name: index
994        type: u32
995      -
996        name: qualifier
997        type: u32
998  -
999    name: tsinfo
1000    attr-cnt-name: __ethtool-a-tsinfo-cnt
1001    attributes:
1002      -
1003        name: unspec
1004        type: unused
1005        value: 0
1006      -
1007        name: header
1008        type: nest
1009        nested-attributes: header
1010      -
1011        name: timestamping
1012        type: nest
1013        nested-attributes: bitset
1014      -
1015        name: tx-types
1016        type: nest
1017        nested-attributes: bitset
1018      -
1019        name: rx-filters
1020        type: nest
1021        nested-attributes: bitset
1022      -
1023        name: phc-index
1024        type: u32
1025      -
1026        name: stats
1027        type: nest
1028        nested-attributes: ts-stat
1029      -
1030        name: hwtstamp-provider
1031        type: nest
1032        nested-attributes: ts-hwtstamp-provider
1033      -
1034        name: hwtstamp-source
1035        type: u32
1036        enum: hwtstamp-source
1037      -
1038        name: hwtstamp-phyindex
1039        type: u32
1040  -
1041    name: cable-result
1042    attr-cnt-name: __ethtool-a-cable-result-cnt
1043    attributes:
1044      -
1045        name: unspec
1046        type: unused
1047        value: 0
1048      -
1049        name: pair
1050        doc: ETHTOOL_A_CABLE_PAIR
1051        type: u8
1052      -
1053        name: code
1054        doc: ETHTOOL_A_CABLE_RESULT_CODE
1055        type: u8
1056      -
1057        name: src
1058        doc: ETHTOOL_A_CABLE_INF_SRC
1059        type: u32
1060  -
1061    name: cable-fault-length
1062    attr-cnt-name: __ethtool-a-cable-fault-length-cnt
1063    attributes:
1064      -
1065        name: unspec
1066        type: unused
1067        value: 0
1068      -
1069        name: pair
1070        type: u8
1071      -
1072        name: cm
1073        type: u32
1074      -
1075        name: src
1076        type: u32
1077  -
1078    name: cable-nest
1079    attr-cnt-name: __ethtool-a-cable-nest-cnt
1080    attributes:
1081      -
1082        name: unspec
1083        type: unused
1084        value: 0
1085      -
1086        name: result
1087        type: nest
1088        nested-attributes: cable-result
1089      -
1090        name: fault-length
1091        type: nest
1092        nested-attributes: cable-fault-length
1093  -
1094    name: cable-test
1095    attr-cnt-name: __ethtool-a-cable-test-cnt
1096    attributes:
1097      -
1098        name: unspec
1099        type: unused
1100        value: 0
1101      -
1102        name: header
1103        type: nest
1104        nested-attributes: header
1105  -
1106    name: cable-test-ntf
1107    attr-cnt-name: __ethtool-a-cable-test-ntf-cnt
1108    attributes:
1109      -
1110        name: unspec
1111        type: unused
1112        value: 0
1113      -
1114        name: header
1115        type: nest
1116        nested-attributes: header
1117      -
1118        name: status
1119        doc: _STARTED/_COMPLETE
1120        type: u8
1121      -
1122        name: nest
1123        type: nest
1124        nested-attributes: cable-nest
1125  -
1126    name: cable-test-tdr-cfg
1127    attr-cnt-name: __ethtool-a-cable-test-tdr-cfg-cnt
1128    attributes:
1129      -
1130        name: unspec
1131        type: unused
1132        value: 0
1133      -
1134        name: first
1135        type: u32
1136      -
1137        name: last
1138        type: u32
1139      -
1140        name: step
1141        type: u32
1142      -
1143        name: pair
1144        type: u8
1145  -
1146    name: cable-test-tdr-ntf
1147    attr-cnt-name: __ethtool-a-cable-test-tdr-ntf-cnt
1148    attributes:
1149      -
1150        name: unspec
1151        type: unused
1152        value: 0
1153      -
1154        name: header
1155        type: nest
1156        nested-attributes: header
1157      -
1158        name: status
1159        type: u8
1160      -
1161        name: nest
1162        type: nest
1163        nested-attributes: cable-nest
1164  -
1165    name: cable-test-tdr
1166    attr-cnt-name: __ethtool-a-cable-test-tdr-cnt
1167    attributes:
1168      -
1169        name: unspec
1170        type: unused
1171        value: 0
1172      -
1173        name: header
1174        type: nest
1175        nested-attributes: header
1176      -
1177        name: cfg
1178        type: nest
1179        nested-attributes: cable-test-tdr-cfg
1180  -
1181    name: tunnel-udp-entry
1182    attr-cnt-name: __ethtool-a-tunnel-udp-entry-cnt
1183    attributes:
1184      -
1185        name: unspec
1186        type: unused
1187        value: 0
1188      -
1189        name: port
1190        type: u16
1191        byte-order: big-endian
1192      -
1193        name: type
1194        type: u32
1195        enum: udp-tunnel-type
1196  -
1197    name: tunnel-udp-table
1198    attr-cnt-name: __ethtool-a-tunnel-udp-table-cnt
1199    attributes:
1200      -
1201        name: unspec
1202        type: unused
1203        value: 0
1204      -
1205        name: size
1206        type: u32
1207      -
1208        name: types
1209        type: nest
1210        nested-attributes: bitset
1211      -
1212        name: entry
1213        type: nest
1214        multi-attr: true
1215        nested-attributes: tunnel-udp-entry
1216  -
1217    name: tunnel-udp
1218    attr-cnt-name: __ethtool-a-tunnel-udp-cnt
1219    attributes:
1220      -
1221        name: unspec
1222        type: unused
1223        value: 0
1224      -
1225        name: table
1226        type: nest
1227        nested-attributes: tunnel-udp-table
1228  -
1229    name: tunnel-info
1230    attr-cnt-name: __ethtool-a-tunnel-info-cnt
1231    attributes:
1232      -
1233        name: unspec
1234        type: unused
1235        value: 0
1236      -
1237        name: header
1238        type: nest
1239        nested-attributes: header
1240      -
1241        name: udp-ports
1242        type: nest
1243        nested-attributes: tunnel-udp
1244  -
1245    name: fec-hist
1246    attr-cnt-name: --ethtool-a-fec-hist-cnt
1247    attributes:
1248      -
1249        name: pad
1250        type: pad
1251      -
1252        name: bin-low
1253        type: u32
1254        doc: Low bound of FEC bin (inclusive)
1255      -
1256        name: bin-high
1257        type: u32
1258        doc: High bound of FEC bin (inclusive)
1259      -
1260        name: bin-val
1261        type: uint
1262        doc: Error count in the bin (optional if per-lane values exist)
1263      -
1264        name: bin-val-per-lane
1265        type: binary
1266        sub-type: u64
1267        doc: An array of per-lane error counters in the bin (optional)
1268  -
1269    name: fec-stat
1270    attr-cnt-name: __ethtool-a-fec-stat-cnt
1271    attributes:
1272      -
1273        name: unspec
1274        type: unused
1275        value: 0
1276      -
1277        name: pad
1278        type: pad
1279      -
1280        name: corrected
1281        type: binary
1282        sub-type: u64
1283      -
1284        name: uncorr
1285        type: binary
1286        sub-type: u64
1287      -
1288        name: corr-bits
1289        type: binary
1290        sub-type: u64
1291      -
1292        name: hist
1293        type: nest
1294        multi-attr: true
1295        nested-attributes: fec-hist
1296  -
1297    name: fec
1298    attr-cnt-name: __ethtool-a-fec-cnt
1299    attributes:
1300      -
1301        name: unspec
1302        type: unused
1303        value: 0
1304      -
1305        name: header
1306        type: nest
1307        nested-attributes: header
1308      -
1309        name: modes
1310        type: nest
1311        nested-attributes: bitset
1312      -
1313        name: auto
1314        type: u8
1315      -
1316        name: active
1317        type: u32
1318      -
1319        name: stats
1320        type: nest
1321        nested-attributes: fec-stat
1322  -
1323    name: module-eeprom
1324    attr-cnt-name: __ethtool-a-module-eeprom-cnt
1325    attributes:
1326      -
1327        name: unspec
1328        type: unused
1329        value: 0
1330      -
1331        name: header
1332        type: nest
1333        nested-attributes: header
1334      -
1335        name: offset
1336        type: u32
1337      -
1338        name: length
1339        type: u32
1340      -
1341        name: page
1342        type: u8
1343      -
1344        name: bank
1345        type: u8
1346      -
1347        name: i2c-address
1348        type: u8
1349      -
1350        name: data
1351        type: binary
1352  -
1353    name: stats-grp
1354    attr-cnt-name: __ethtool-a-stats-grp-cnt
1355    attributes:
1356      -
1357        name: unspec
1358        type: unused
1359        value: 0
1360      -
1361        name: pad
1362        type: pad
1363      -
1364        name: id
1365        type: u32
1366      -
1367        name: ss-id
1368        type: u32
1369      -
1370        name: stat
1371        type: u64
1372        type-value: [id]
1373      -
1374        name: hist-rx
1375        type: nest
1376        nested-attributes: stats-grp-hist
1377      -
1378        name: hist-tx
1379        type: nest
1380        nested-attributes: stats-grp-hist
1381      -
1382        name: hist-bkt-low
1383        type: u32
1384      -
1385        name: hist-bkt-hi
1386        type: u32
1387      -
1388        name: hist-val
1389        type: u64
1390  -
1391    name: stats-grp-hist
1392    subset-of: stats-grp
1393    attributes:
1394      -
1395        name: hist-bkt-low
1396      -
1397        name: hist-bkt-hi
1398      -
1399        name: hist-val
1400  -
1401    name: stats
1402    attr-cnt-name: __ethtool-a-stats-cnt
1403    attributes:
1404      -
1405        name: unspec
1406        type: unused
1407        value: 0
1408      -
1409        name: pad
1410        type: pad
1411      -
1412        name: header
1413        type: nest
1414        nested-attributes: header
1415      -
1416        name: groups
1417        type: nest
1418        nested-attributes: bitset
1419      -
1420        name: grp
1421        type: nest
1422        nested-attributes: stats-grp
1423      -
1424        name: src
1425        type: u32
1426  -
1427    name: phc-vclocks
1428    attr-cnt-name: __ethtool-a-phc-vclocks-cnt
1429    attributes:
1430      -
1431        name: unspec
1432        type: unused
1433        value: 0
1434      -
1435        name: header
1436        type: nest
1437        nested-attributes: header
1438      -
1439        name: num
1440        type: u32
1441      -
1442        name: index
1443        type: binary
1444        sub-type: s32
1445  -
1446    name: module
1447    attr-cnt-name: __ethtool-a-module-cnt
1448    attributes:
1449      -
1450        name: unspec
1451        type: unused
1452        value: 0
1453      -
1454        name: header
1455        type: nest
1456        nested-attributes: header
1457      -
1458        name: power-mode-policy
1459        type: u8
1460      -
1461        name: power-mode
1462        type: u8
1463  -
1464    name: c33-pse-pw-limit
1465    attr-cnt-name: __ethtool-a-c33-pse-pw-limit-cnt
1466    attr-max-name: __ethtool-a-c33-pse-pw-limit-max
1467    attributes:
1468      -
1469        name: unspec
1470        type: unused
1471        value: 0
1472      -
1473        name: min
1474        type: u32
1475      -
1476        name: max
1477        type: u32
1478  -
1479    name: pse
1480    attr-cnt-name: __ethtool-a-pse-cnt
1481    attributes:
1482      -
1483        name: unspec
1484        type: unused
1485        value: 0
1486      -
1487        name: header
1488        type: nest
1489        nested-attributes: header
1490      -
1491        name: podl-pse-admin-state
1492        type: u32
1493        name-prefix: ethtool-a-
1494      -
1495        name: podl-pse-admin-control
1496        type: u32
1497        name-prefix: ethtool-a-
1498      -
1499        name: podl-pse-pw-d-status
1500        type: u32
1501        name-prefix: ethtool-a-
1502      -
1503        name: c33-pse-admin-state
1504        type: u32
1505        name-prefix: ethtool-a-
1506      -
1507        name: c33-pse-admin-control
1508        type: u32
1509        name-prefix: ethtool-a-
1510      -
1511        name: c33-pse-pw-d-status
1512        type: u32
1513        name-prefix: ethtool-a-
1514      -
1515        name: c33-pse-pw-class
1516        type: u32
1517        name-prefix: ethtool-a-
1518      -
1519        name: c33-pse-actual-pw
1520        type: u32
1521        name-prefix: ethtool-a-
1522      -
1523        name: c33-pse-ext-state
1524        type: u32
1525        name-prefix: ethtool-a-
1526        enum: c33-pse-ext-state
1527      -
1528        name: c33-pse-ext-substate
1529        type: u32
1530        name-prefix: ethtool-a-
1531      -
1532        name: c33-pse-avail-pw-limit
1533        type: u32
1534        name-prefix: ethtool-a-
1535      -
1536        name: c33-pse-pw-limit-ranges
1537        name-prefix: ethtool-a-
1538        type: nest
1539        multi-attr: true
1540        nested-attributes: c33-pse-pw-limit
1541      -
1542        name: pse-pw-d-id
1543        type: u32
1544        name-prefix: ethtool-a-
1545      -
1546        name: pse-prio-max
1547        type: u32
1548        name-prefix: ethtool-a-
1549      -
1550        name: pse-prio
1551        type: u32
1552        name-prefix: ethtool-a-
1553  -
1554    name: flow
1555    attr-cnt-name: --ethtool-a-flow-cnt
1556    doc: |
1557      Flow types, corresponding to those defined in the old
1558      ethtool header for RXFH and RXNFC as ${PROTO}_FLOW.
1559      The values are not matching the old ones to avoid carrying
1560      into Netlink the IP_USER_FLOW vs IPV4_FLOW vs IPV4_USER_FLOW confusion.
1561    attributes:
1562      -
1563        name: ether
1564        type: uint
1565        enum: rxfh-fields
1566      -
1567        name: ip4
1568        type: uint
1569        enum: rxfh-fields
1570      -
1571        name: ip6
1572        type: uint
1573        enum: rxfh-fields
1574      -
1575        name: tcp4
1576        type: uint
1577        enum: rxfh-fields
1578      -
1579        name: tcp6
1580        type: uint
1581        enum: rxfh-fields
1582      -
1583        name: udp4
1584        type: uint
1585        enum: rxfh-fields
1586      -
1587        name: udp6
1588        type: uint
1589        enum: rxfh-fields
1590      -
1591        name: sctp4
1592        type: uint
1593        enum: rxfh-fields
1594      -
1595        name: sctp6
1596        type: uint
1597        enum: rxfh-fields
1598      -
1599        name: ah4
1600        type: uint
1601        enum: rxfh-fields
1602      -
1603        name: ah6
1604        type: uint
1605        enum: rxfh-fields
1606      -
1607        name: esp4
1608        type: uint
1609        enum: rxfh-fields
1610      -
1611        name: esp6
1612        type: uint
1613        enum: rxfh-fields
1614      -
1615        name: ah-esp4
1616        type: uint
1617        enum: rxfh-fields
1618      -
1619        name: ah-esp6
1620        type: uint
1621        enum: rxfh-fields
1622      -
1623        name: gtpu4
1624        type: uint
1625        enum: rxfh-fields
1626      -
1627        name: gtpu6
1628        type: uint
1629        enum: rxfh-fields
1630      -
1631        name: gtpc4
1632        type: uint
1633        enum: rxfh-fields
1634      -
1635        name: gtpc6
1636        type: uint
1637        enum: rxfh-fields
1638      -
1639        name: gtpc-teid4
1640        type: uint
1641        enum: rxfh-fields
1642      -
1643        name: gtpc-teid6
1644        type: uint
1645        enum: rxfh-fields
1646      -
1647        name: gtpu-eh4
1648        type: uint
1649        enum: rxfh-fields
1650      -
1651        name: gtpu-eh6
1652        type: uint
1653        enum: rxfh-fields
1654      -
1655        name: gtpu-ul4
1656        type: uint
1657        enum: rxfh-fields
1658      -
1659        name: gtpu-ul6
1660        type: uint
1661        enum: rxfh-fields
1662      -
1663        name: gtpu-dl4
1664        type: uint
1665        enum: rxfh-fields
1666      -
1667        name: gtpu-dl6
1668        type: uint
1669        enum: rxfh-fields
1670  -
1671    name: rss
1672    attr-cnt-name: __ethtool-a-rss-cnt
1673    attributes:
1674      -
1675        name: unspec
1676        type: unused
1677        value: 0
1678      -
1679        name: header
1680        type: nest
1681        nested-attributes: header
1682      -
1683        name: context
1684        type: u32
1685      -
1686        name: hfunc
1687        type: u32
1688      -
1689        name: indir
1690        type: binary
1691        sub-type: u32
1692      -
1693        name: hkey
1694        type: binary
1695      -
1696        name: input-xfrm
1697        type: u32
1698        enum: input-xfrm
1699      -
1700        name: start-context
1701        type: u32
1702      -
1703        name: flow-hash
1704        type: nest
1705        nested-attributes: flow
1706  -
1707    name: plca
1708    attr-cnt-name: __ethtool-a-plca-cnt
1709    attributes:
1710      -
1711        name: unspec
1712        type: unused
1713        value: 0
1714      -
1715        name: header
1716        type: nest
1717        nested-attributes: header
1718      -
1719        name: version
1720        type: u16
1721      -
1722        name: enabled
1723        type: u8
1724      -
1725        name: status
1726        type: u8
1727      -
1728        name: node-cnt
1729        type: u32
1730      -
1731        name: node-id
1732        type: u32
1733      -
1734        name: to-tmr
1735        type: u32
1736      -
1737        name: burst-cnt
1738        type: u32
1739      -
1740        name: burst-tmr
1741        type: u32
1742  -
1743    name: module-fw-flash
1744    attr-cnt-name: __ethtool-a-module-fw-flash-cnt
1745    attributes:
1746      -
1747        name: unspec
1748        type: unused
1749        value: 0
1750      -
1751        name: header
1752        type: nest
1753        nested-attributes: header
1754      -
1755        name: file-name
1756        type: string
1757      -
1758        name: password
1759        type: u32
1760      -
1761        name: status
1762        type: u32
1763        enum: module-fw-flash-status
1764      -
1765        name: status-msg
1766        type: string
1767      -
1768        name: done
1769        type: uint
1770      -
1771        name: total
1772        type: uint
1773  -
1774    name: phy
1775    attr-cnt-name: __ethtool-a-phy-cnt
1776    attributes:
1777      -
1778        name: unspec
1779        type: unused
1780        value: 0
1781      -
1782        name: header
1783        type: nest
1784        nested-attributes: header
1785      -
1786        name: index
1787        type: u32
1788      -
1789        name: drvname
1790        type: string
1791      -
1792        name: name
1793        type: string
1794      -
1795        name: upstream-type
1796        type: u32
1797        enum: phy-upstream-type
1798      -
1799        name: upstream-index
1800        type: u32
1801      -
1802        name: upstream-sfp-name
1803        type: string
1804      -
1805        name: downstream-sfp-name
1806        type: string
1807  -
1808    name: tsconfig
1809    attr-cnt-name: __ethtool-a-tsconfig-cnt
1810    attributes:
1811      -
1812        name: unspec
1813        type: unused
1814        value: 0
1815      -
1816        name: header
1817        type: nest
1818        nested-attributes: header
1819      -
1820        name: hwtstamp-provider
1821        type: nest
1822        nested-attributes: ts-hwtstamp-provider
1823      -
1824        name: tx-types
1825        type: nest
1826        nested-attributes: bitset
1827      -
1828        name: rx-filters
1829        type: nest
1830        nested-attributes: bitset
1831      -
1832        name: hwtstamp-flags
1833        type: nest
1834        nested-attributes: bitset
1835  -
1836    name: pse-ntf
1837    attr-cnt-name: --ethtool-a-pse-ntf-cnt
1838    attributes:
1839      -
1840        name: header
1841        type: nest
1842        nested-attributes: header
1843      -
1844        name: events
1845        type: uint
1846        enum: pse-event
1847        doc: List of events reported by the PSE controller
1848  -
1849    name: mse-capabilities
1850    doc: MSE capabilities attribute set
1851    attr-cnt-name: --ethtool-a-mse-capabilities-cnt
1852    attributes:
1853      -
1854        name: max-average-mse
1855        type: uint
1856      -
1857        name: max-peak-mse
1858        type: uint
1859      -
1860        name: refresh-rate-ps
1861        type: uint
1862      -
1863        name: num-symbols
1864        type: uint
1865  -
1866    name: mse-snapshot
1867    doc: MSE snapshot attribute set
1868    attr-cnt-name: --ethtool-a-mse-snapshot-cnt
1869    attributes:
1870      -
1871        name: average-mse
1872        type: uint
1873      -
1874        name: peak-mse
1875        type: uint
1876      -
1877        name: worst-peak-mse
1878        type: uint
1879  -
1880    name: mse
1881    attr-cnt-name: --ethtool-a-mse-cnt
1882    attributes:
1883      -
1884        name: header
1885        type: nest
1886        nested-attributes: header
1887      -
1888        name: capabilities
1889        type: nest
1890        nested-attributes: mse-capabilities
1891      -
1892        name: channel-a
1893        type: nest
1894        nested-attributes: mse-snapshot
1895      -
1896        name: channel-b
1897        type: nest
1898        nested-attributes: mse-snapshot
1899      -
1900        name: channel-c
1901        type: nest
1902        nested-attributes: mse-snapshot
1903      -
1904        name: channel-d
1905        type: nest
1906        nested-attributes: mse-snapshot
1907      -
1908        name: worst-channel
1909        type: nest
1910        nested-attributes: mse-snapshot
1911      -
1912        name: link
1913        type: nest
1914        nested-attributes: mse-snapshot
1915  -
1916    name: port
1917    attr-cnt-name: --ethtool-a-port-cnt
1918    attributes:
1919      -
1920        name: header
1921        type: nest
1922        nested-attributes: header
1923      -
1924        name: id
1925        type: u32
1926      -
1927        name: supported-modes
1928        type: nest
1929        nested-attributes: bitset
1930      -
1931        name: supported-interfaces
1932        type: nest
1933        nested-attributes: bitset
1934      -
1935        name: type
1936        type: u32
1937        enum: port-type
1938      -
1939        name: upstream-port
1940        type: u32
1941
1942operations:
1943  enum-model: directional
1944  name-prefix: ethtool-msg-
1945  list:
1946    -
1947      name: strset-get
1948      doc: Get string set from the kernel.
1949
1950      attribute-set: strset
1951
1952      do: &strset-get-op
1953        request:
1954          attributes:
1955            - header
1956            - stringsets
1957            - counts-only
1958        reply:
1959          attributes:
1960            - header
1961            - stringsets
1962      dump: *strset-get-op
1963    -
1964      name: linkinfo-get
1965      doc: Get link info.
1966
1967      attribute-set: linkinfo
1968
1969      do: &linkinfo-get-op
1970        request:
1971          attributes:
1972            - header
1973        reply:
1974          attributes: &linkinfo
1975            - header
1976            - port
1977            - phyaddr
1978            - tp-mdix
1979            - tp-mdix-ctrl
1980            - transceiver
1981      dump: *linkinfo-get-op
1982    -
1983      name: linkinfo-set
1984      doc: Set link info.
1985
1986      attribute-set: linkinfo
1987
1988      do:
1989        request:
1990          attributes: *linkinfo
1991    -
1992      name: linkinfo-ntf
1993      doc: Notification for change in link info.
1994      notify: linkinfo-get
1995    -
1996      name: linkmodes-get
1997      doc: Get link modes.
1998
1999      attribute-set: linkmodes
2000
2001      do: &linkmodes-get-op
2002        request:
2003          attributes:
2004            - header
2005        reply:
2006          attributes: &linkmodes
2007            - header
2008            - autoneg
2009            - ours
2010            - peer
2011            - speed
2012            - duplex
2013            - master-slave-cfg
2014            - master-slave-state
2015            - lanes
2016            - rate-matching
2017      dump: *linkmodes-get-op
2018    -
2019      name: linkmodes-set
2020      doc: Set link modes.
2021
2022      attribute-set: linkmodes
2023
2024      do:
2025        request:
2026          attributes: *linkmodes
2027    -
2028      name: linkmodes-ntf
2029      doc: Notification for change in link modes.
2030      notify: linkmodes-get
2031    -
2032      name: linkstate-get
2033      doc: Get link state.
2034
2035      attribute-set: linkstate
2036
2037      do: &linkstate-get-op
2038        request:
2039          attributes:
2040            - header
2041        reply:
2042          attributes:
2043            - header
2044            - link
2045            - sqi
2046            - sqi-max
2047            - ext-state
2048            - ext-substate
2049            - ext-down-cnt
2050      dump: *linkstate-get-op
2051    -
2052      name: debug-get
2053      doc: Get debug message mask.
2054
2055      attribute-set: debug
2056
2057      do: &debug-get-op
2058        request:
2059          attributes:
2060            - header
2061        reply:
2062          attributes: &debug
2063            - header
2064            - msgmask
2065      dump: *debug-get-op
2066    -
2067      name: debug-set
2068      doc: Set debug message mask.
2069
2070      attribute-set: debug
2071
2072      do:
2073        request:
2074          attributes: *debug
2075    -
2076      name: debug-ntf
2077      doc: Notification for change in debug message mask.
2078      notify: debug-get
2079    -
2080      name: wol-get
2081      doc: Get WOL params.
2082
2083      attribute-set: wol
2084
2085      do: &wol-get-op
2086        request:
2087          attributes:
2088            - header
2089        reply:
2090          attributes: &wol
2091            - header
2092            - modes
2093            - sopass
2094      dump: *wol-get-op
2095    -
2096      name: wol-set
2097      doc: Set WOL params.
2098
2099      attribute-set: wol
2100
2101      do:
2102        request:
2103          attributes: *wol
2104    -
2105      name: wol-ntf
2106      doc: Notification for change in WOL params.
2107      notify: wol-get
2108    -
2109      name: features-get
2110      doc: Get features.
2111
2112      attribute-set: features
2113
2114      do: &feature-get-op
2115        request:
2116          attributes:
2117            - header
2118        reply:
2119          attributes: &feature
2120            - header
2121            # User-changeable features.
2122            - hw
2123            # User-requested features.
2124            - wanted
2125            # Currently active features.
2126            - active
2127            # Unchangeable features.
2128            - nochange
2129      dump: *feature-get-op
2130    -
2131      name: features-set
2132      doc: Set features.
2133
2134      attribute-set: features
2135
2136      do: &feature-set-op
2137        request:
2138          attributes: *feature
2139        reply:
2140          attributes: *feature
2141    -
2142      name: features-ntf
2143      doc: Notification for change in features.
2144      notify: features-get
2145    -
2146      name: privflags-get
2147      doc: Get device private flags.
2148
2149      attribute-set: privflags
2150
2151      do: &privflag-get-op
2152        request:
2153          attributes:
2154            - header
2155        reply:
2156          attributes: &privflag
2157            - header
2158            - flags
2159      dump: *privflag-get-op
2160    -
2161      name: privflags-set
2162      doc: Set device private flags.
2163
2164      attribute-set: privflags
2165
2166      do:
2167        request:
2168          attributes: *privflag
2169    -
2170      name: privflags-ntf
2171      doc: Notification for change in device private flags.
2172      notify: privflags-get
2173
2174    -
2175      name: rings-get
2176      doc: Get ring params.
2177
2178      attribute-set: rings
2179
2180      do: &ring-get-op
2181        request:
2182          attributes:
2183            - header
2184        reply:
2185          attributes: &ring
2186            - header
2187            - rx-max
2188            - rx-mini-max
2189            - rx-jumbo-max
2190            - tx-max
2191            - rx
2192            - rx-mini
2193            - rx-jumbo
2194            - tx
2195            - rx-buf-len
2196            - tcp-data-split
2197            - cqe-size
2198            - tx-push
2199            - rx-push
2200            - tx-push-buf-len
2201            - tx-push-buf-len-max
2202            - hds-thresh
2203            - hds-thresh-max
2204      dump: *ring-get-op
2205    -
2206      name: rings-set
2207      doc: Set ring params.
2208
2209      attribute-set: rings
2210
2211      do:
2212        request:
2213          attributes: *ring
2214    -
2215      name: rings-ntf
2216      doc: Notification for change in ring params.
2217      notify: rings-get
2218    -
2219      name: channels-get
2220      doc: Get channel params.
2221
2222      attribute-set: channels
2223
2224      do: &channel-get-op
2225        request:
2226          attributes:
2227            - header
2228        reply:
2229          attributes: &channel
2230            - header
2231            - rx-max
2232            - tx-max
2233            - other-max
2234            - combined-max
2235            - rx-count
2236            - tx-count
2237            - other-count
2238            - combined-count
2239      dump: *channel-get-op
2240    -
2241      name: channels-set
2242      doc: Set channel params.
2243
2244      attribute-set: channels
2245
2246      do:
2247        request:
2248          attributes: *channel
2249    -
2250      name: channels-ntf
2251      doc: Notification for change in channel params.
2252      notify: channels-get
2253    -
2254      name: coalesce-get
2255      doc: Get coalesce params.
2256
2257      attribute-set: coalesce
2258
2259      do: &coalesce-get-op
2260        request:
2261          attributes:
2262            - header
2263        reply:
2264          attributes: &coalesce
2265            - header
2266            - rx-usecs
2267            - rx-max-frames
2268            - rx-usecs-irq
2269            - rx-max-frames-irq
2270            - tx-usecs
2271            - tx-max-frames
2272            - tx-usecs-irq
2273            - tx-max-frames-irq
2274            - stats-block-usecs
2275            - use-adaptive-rx
2276            - use-adaptive-tx
2277            - pkt-rate-low
2278            - rx-usecs-low
2279            - rx-max-frames-low
2280            - tx-usecs-low
2281            - tx-max-frames-low
2282            - pkt-rate-high
2283            - rx-usecs-high
2284            - rx-max-frames-high
2285            - tx-usecs-high
2286            - tx-max-frames-high
2287            - rate-sample-interval
2288            - use-cqe-mode-tx
2289            - use-cqe-mode-rx
2290            - tx-aggr-max-bytes
2291            - tx-aggr-max-frames
2292            - tx-aggr-time-usecs
2293            - rx-profile
2294            - tx-profile
2295            - rx-cqe-frames
2296            - rx-cqe-nsecs
2297      dump: *coalesce-get-op
2298    -
2299      name: coalesce-set
2300      doc: Set coalesce params.
2301
2302      attribute-set: coalesce
2303
2304      do:
2305        request:
2306          attributes: *coalesce
2307    -
2308      name: coalesce-ntf
2309      doc: Notification for change in coalesce params.
2310      notify: coalesce-get
2311    -
2312      name: pause-get
2313      doc: Get pause params.
2314
2315      attribute-set: pause
2316
2317      do: &pause-get-op
2318        request:
2319          attributes:
2320            - header
2321        reply:
2322          attributes: &pause
2323            - header
2324            - autoneg
2325            - rx
2326            - tx
2327            - stats
2328            - stats-src
2329      dump: *pause-get-op
2330    -
2331      name: pause-set
2332      doc: Set pause params.
2333
2334      attribute-set: pause
2335
2336      do:
2337        request:
2338          attributes: *pause
2339    -
2340      name: pause-ntf
2341      doc: Notification for change in pause params.
2342      notify: pause-get
2343    -
2344      name: eee-get
2345      doc: Get eee params.
2346
2347      attribute-set: eee
2348
2349      do: &eee-get-op
2350        request:
2351          attributes:
2352            - header
2353        reply:
2354          attributes: &eee
2355            - header
2356            - modes-ours
2357            - modes-peer
2358            - active
2359            - enabled
2360            - tx-lpi-enabled
2361            - tx-lpi-timer
2362      dump: *eee-get-op
2363    -
2364      name: eee-set
2365      doc: Set eee params.
2366
2367      attribute-set: eee
2368
2369      do:
2370        request:
2371          attributes: *eee
2372    -
2373      name: eee-ntf
2374      doc: Notification for change in eee params.
2375      notify: eee-get
2376    -
2377      name: tsinfo-get
2378      doc: Get tsinfo params.
2379
2380      attribute-set: tsinfo
2381
2382      do: &tsinfo-get-op
2383        request:
2384          attributes:
2385            - header
2386            - hwtstamp-provider
2387        reply:
2388          attributes:
2389            - header
2390            - timestamping
2391            - tx-types
2392            - rx-filters
2393            - phc-index
2394            - stats
2395            - hwtstamp-provider
2396            - hwtstamp-source
2397            - hwtstamp-phyindex
2398      dump: *tsinfo-get-op
2399    -
2400      name: cable-test-act
2401      doc: Cable test.
2402
2403      attribute-set: cable-test
2404
2405      do:
2406        request:
2407          attributes:
2408            - header
2409    -
2410      name: cable-test-ntf
2411      doc: Cable test notification.
2412
2413      attribute-set: cable-test-ntf
2414
2415      event:
2416        attributes:
2417          - header
2418          - status
2419    -
2420      name: cable-test-tdr-act
2421      doc: Cable test TDR.
2422
2423      attribute-set: cable-test-tdr
2424
2425      do:
2426        request:
2427          attributes:
2428            - header
2429    -
2430      name: cable-test-tdr-ntf
2431      doc: Cable test TDR notification.
2432
2433      attribute-set: cable-test-tdr-ntf
2434
2435      event:
2436        attributes:
2437          - header
2438          - status
2439          - nest
2440    -
2441      name: tunnel-info-get
2442      doc: Get tsinfo params.
2443
2444      attribute-set: tunnel-info
2445
2446      do: &tunnel-info-get-op
2447        request:
2448          attributes:
2449            - header
2450        reply:
2451          attributes:
2452            - header
2453            - udp-ports
2454      dump: *tunnel-info-get-op
2455    -
2456      name: fec-get
2457      doc: Get FEC params.
2458
2459      attribute-set: fec
2460
2461      do: &fec-get-op
2462        request:
2463          attributes:
2464            - header
2465        reply:
2466          attributes: &fec
2467            - header
2468            - modes
2469            - auto
2470            - active
2471            - stats
2472      dump: *fec-get-op
2473    -
2474      name: fec-set
2475      doc: Set FEC params.
2476
2477      attribute-set: fec
2478
2479      do:
2480        request:
2481          attributes: *fec
2482    -
2483      name: fec-ntf
2484      doc: Notification for change in FEC params.
2485      notify: fec-get
2486    -
2487      name: module-eeprom-get
2488      doc: Get module EEPROM params.
2489
2490      attribute-set: module-eeprom
2491
2492      do: &module-eeprom-get-op
2493        request:
2494          attributes:
2495            - header
2496            - offset
2497            - length
2498            - page
2499            - bank
2500            - i2c-address
2501        reply:
2502          attributes:
2503            - header
2504            - data
2505      dump: *module-eeprom-get-op
2506    -
2507      name: stats-get
2508      doc: Get statistics.
2509
2510      attribute-set: stats
2511
2512      do: &stats-get-op
2513        request:
2514          attributes:
2515            - header
2516            - groups
2517        reply:
2518          attributes:
2519            - header
2520            - groups
2521            - grp
2522            - src
2523      dump: *stats-get-op
2524    -
2525      name: phc-vclocks-get
2526      doc: Get PHC VCLOCKs.
2527
2528      attribute-set: phc-vclocks
2529
2530      do: &phc-vclocks-get-op
2531        request:
2532          attributes:
2533            - header
2534        reply:
2535          attributes:
2536            - header
2537            - num
2538      dump: *phc-vclocks-get-op
2539    -
2540      name: module-get
2541      doc: Get module params.
2542
2543      attribute-set: module
2544
2545      do: &module-get-op
2546        request:
2547          attributes:
2548            - header
2549        reply:
2550          attributes: &module
2551            - header
2552            - power-mode-policy
2553            - power-mode
2554      dump: *module-get-op
2555    -
2556      name: module-set
2557      doc: Set module params.
2558
2559      attribute-set: module
2560
2561      do:
2562        request:
2563          attributes: *module
2564    -
2565      name: module-ntf
2566      doc: Notification for change in module params.
2567      notify: module-get
2568    -
2569      name: pse-get
2570      doc: Get Power Sourcing Equipment params.
2571
2572      attribute-set: pse
2573
2574      do: &pse-get-op
2575        request:
2576          attributes:
2577            - header
2578        reply:
2579          attributes:
2580            - header
2581            - podl-pse-admin-state
2582            - podl-pse-admin-control
2583            - podl-pse-pw-d-status
2584            - c33-pse-admin-state
2585            - c33-pse-admin-control
2586            - c33-pse-pw-d-status
2587            - c33-pse-pw-class
2588            - c33-pse-actual-pw
2589            - c33-pse-ext-state
2590            - c33-pse-ext-substate
2591            - c33-pse-avail-pw-limit
2592            - c33-pse-pw-limit-ranges
2593            - pse-pw-d-id
2594            - pse-prio-max
2595            - pse-prio
2596      dump: *pse-get-op
2597    -
2598      name: pse-set
2599      doc: Set Power Sourcing Equipment params.
2600
2601      attribute-set: pse
2602
2603      do:
2604        request:
2605          attributes:
2606            - header
2607            - podl-pse-admin-control
2608            - c33-pse-admin-control
2609            - c33-pse-avail-pw-limit
2610            - pse-prio
2611    -
2612      name: rss-get
2613      doc: Get RSS params.
2614
2615      attribute-set: rss
2616
2617      do:
2618        request:
2619          attributes:
2620            - header
2621            - context
2622        reply: &rss-reply
2623          attributes:
2624            - header
2625            - context
2626            - hfunc
2627            - indir
2628            - hkey
2629            - input-xfrm
2630            - flow-hash
2631      dump:
2632        request:
2633          attributes:
2634            - header
2635            - start-context
2636        reply: *rss-reply
2637    -
2638      name: plca-get-cfg
2639      doc: Get PLCA params.
2640
2641      attribute-set: plca
2642
2643      do: &plca-get-op
2644        request:
2645          attributes:
2646            - header
2647        reply:
2648          attributes: &plca
2649            - header
2650            - version
2651            - enabled
2652            - status
2653            - node-cnt
2654            - node-id
2655            - to-tmr
2656            - burst-cnt
2657            - burst-tmr
2658      dump: *plca-get-op
2659    -
2660      name: plca-set-cfg
2661      doc: Set PLCA params.
2662
2663      attribute-set: plca
2664
2665      do:
2666        request:
2667          attributes: *plca
2668    -
2669      name: plca-get-status
2670      doc: Get PLCA status params.
2671
2672      attribute-set: plca
2673
2674      do: &plca-get-status-op
2675        request:
2676          attributes:
2677            - header
2678        reply:
2679          attributes: *plca
2680      dump: *plca-get-status-op
2681    -
2682      name: plca-ntf
2683      doc: Notification for change in PLCA params.
2684      notify: plca-get-cfg
2685    -
2686      name: mm-get
2687      doc: Get MAC Merge configuration and state
2688
2689      attribute-set: mm
2690
2691      do: &mm-get-op
2692        request:
2693          attributes:
2694            - header
2695        reply:
2696          attributes:
2697            - header
2698            - pmac-enabled
2699            - tx-enabled
2700            - tx-active
2701            - tx-min-frag-size
2702            - rx-min-frag-size
2703            - verify-enabled
2704            - verify-time
2705            - max-verify-time
2706            - stats
2707      dump: *mm-get-op
2708    -
2709      name: mm-set
2710      doc: Set MAC Merge configuration
2711
2712      attribute-set: mm
2713
2714      do:
2715        request:
2716          attributes:
2717            - header
2718            - verify-enabled
2719            - verify-time
2720            - tx-enabled
2721            - pmac-enabled
2722            - tx-min-frag-size
2723    -
2724      name: mm-ntf
2725      doc: Notification for change in MAC Merge configuration.
2726      notify: mm-get
2727    -
2728      name: module-fw-flash-act
2729      doc: Flash transceiver module firmware.
2730
2731      attribute-set: module-fw-flash
2732
2733      do:
2734        request:
2735          attributes:
2736            - header
2737            - file-name
2738            - password
2739    -
2740      name: module-fw-flash-ntf
2741      doc: Notification for firmware flashing progress and status.
2742
2743      attribute-set: module-fw-flash
2744
2745      event:
2746        attributes:
2747          - header
2748          - status
2749          - status-msg
2750          - done
2751          - total
2752    -
2753      name: phy-get
2754      doc: Get PHY devices attached to an interface
2755
2756      attribute-set: phy
2757
2758      do: &phy-get-op
2759        request:
2760          attributes:
2761            - header
2762        reply:
2763          attributes:
2764            - header
2765            - index
2766            - drvname
2767            - name
2768            - upstream-type
2769            - upstream-index
2770            - upstream-sfp-name
2771            - downstream-sfp-name
2772      dump: *phy-get-op
2773    -
2774      name: phy-ntf
2775      doc: Notification for change in PHY devices.
2776      notify: phy-get
2777    -
2778      name: tsconfig-get
2779      doc: Get hwtstamp config.
2780
2781      attribute-set: tsconfig
2782
2783      do: &tsconfig-get-op
2784        request:
2785          attributes:
2786            - header
2787        reply:
2788          attributes: &tsconfig
2789            - header
2790            - hwtstamp-provider
2791            - tx-types
2792            - rx-filters
2793            - hwtstamp-flags
2794      dump: *tsconfig-get-op
2795    -
2796      name: tsconfig-set
2797      doc: Set hwtstamp config.
2798
2799      attribute-set: tsconfig
2800
2801      do:
2802        request:
2803          attributes: *tsconfig
2804        reply:
2805          attributes: *tsconfig
2806    -
2807      name: pse-ntf
2808      doc: Notification for PSE events.
2809
2810      attribute-set: pse-ntf
2811
2812      event:
2813        attributes:
2814          - header
2815          - events
2816    -
2817      name: rss-set
2818      doc: Set RSS params.
2819
2820      attribute-set: rss
2821
2822      do:
2823        request:
2824          attributes:
2825            - header
2826            - context
2827            - hfunc
2828            - indir
2829            - hkey
2830            - input-xfrm
2831            - flow-hash
2832    -
2833      name: rss-ntf
2834      doc: |
2835        Notification for change in RSS configuration.
2836        For additional contexts only modifications use this notification,
2837        creation and deletion have dedicated messages.
2838      notify: rss-get
2839    -
2840      name: rss-create-act
2841      doc: Create an RSS context.
2842      attribute-set: rss
2843      do:
2844        request: &rss-create-attrs
2845          attributes:
2846            - header
2847            - context
2848            - hfunc
2849            - indir
2850            - hkey
2851            - input-xfrm
2852        reply: *rss-create-attrs
2853    -
2854      name: rss-create-ntf
2855      doc: |
2856        Notification for creation of an additional RSS context.
2857      notify: rss-create-act
2858    -
2859      name: rss-delete-act
2860      doc: Delete an RSS context.
2861      attribute-set: rss
2862      do:
2863        request:
2864          attributes:
2865            - header
2866            - context
2867    -
2868      name: rss-delete-ntf
2869      doc: |
2870        Notification for deletion of an additional RSS context.
2871      attribute-set: rss
2872      event:
2873        attributes:
2874          - header
2875          - context
2876    -
2877      name: mse-get
2878      doc: Get PHY MSE measurement data and capabilities.
2879      attribute-set: mse
2880      do: &mse-get-op
2881        request:
2882          attributes:
2883            - header
2884        reply:
2885          attributes:
2886            - header
2887            - capabilities
2888            - channel-a
2889            - channel-b
2890            - channel-c
2891            - channel-d
2892            - worst-channel
2893            - link
2894      dump: *mse-get-op
2895    -
2896      name: port-get
2897      doc: Get ports attached to an interface
2898
2899      attribute-set: port
2900
2901      do:
2902        request:
2903          attributes:
2904            - header
2905            - id
2906        reply: &port-get-op-reply
2907          attributes:
2908            - header
2909            - id
2910            - supported-modes
2911            - supported-interfaces
2912            - type
2913            - upstream-port
2914      dump:
2915        request:
2916          attributes:
2917            - header
2918        reply: *port-get-op-reply
2919
2920mcast-groups:
2921  list:
2922    -
2923      name: monitor
2924      c-define-name: ethtool-mcgrp-monitor-name
2925