xref: /linux/Documentation/netlink/specs/rt_link.yaml (revision 62c884256ea1f898b00f20729a306a4eeb1840b1)
1# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
3name: rt-link
4protocol: netlink-raw
5protonum: 0
6
7doc:
8  Link configuration over rtnetlink.
9
10definitions:
11  -
12    name: ifinfo-flags
13    type: flags
14    entries:
15      -
16        name: up
17      -
18        name: broadcast
19      -
20        name: debug
21      -
22        name: loopback
23      -
24        name: point-to-point
25      -
26        name: no-trailers
27      -
28        name: running
29      -
30        name: no-arp
31      -
32        name: promisc
33      -
34        name: all-multi
35      -
36        name: master
37      -
38        name: slave
39      -
40        name: multicast
41      -
42        name: portsel
43      -
44        name: auto-media
45      -
46        name: dynamic
47      -
48        name: lower-up
49      -
50        name: dormant
51      -
52        name: echo
53  -
54    name: vlan-protocols
55    type: enum
56    entries:
57      -
58        name: 8021q
59        value: 33024
60      -
61        name: 8021ad
62        value: 34984
63  -
64    name: rtgenmsg
65    type: struct
66    members:
67      -
68        name: family
69        type: u8
70  -
71    name: ifinfomsg
72    type: struct
73    members:
74      -
75        name: ifi-family
76        type: u8
77      -
78        name: pad
79        type: pad
80        len: 1
81      -
82        name: ifi-type
83        type: u16
84      -
85        name: ifi-index
86        type: s32
87      -
88        name: ifi-flags
89        type: u32
90        enum: ifinfo-flags
91        enum-as-flags: true
92      -
93        name: ifi-change
94        type: u32
95  -
96    name: ifla-bridge-id
97    type: struct
98    members:
99      -
100        name: prio
101        type: u16
102      -
103        name: addr
104        type: binary
105        len: 6
106        display-hint: mac
107  -
108    name: ifla-cacheinfo
109    type: struct
110    members:
111      -
112        name: max-reasm-len
113        type: u32
114      -
115        name: tstamp
116        type: u32
117      -
118        name: reachable-time
119        type: s32
120      -
121        name: retrans-time
122        type: u32
123  -
124    name: rtnl-link-stats
125    type: struct
126    members:
127      -
128        name: rx-packets
129        type: u32
130      -
131        name: tx-packets
132        type: u32
133      -
134        name: rx-bytes
135        type: u32
136      -
137        name: tx-bytes
138        type: u32
139      -
140        name: rx-errors
141        type: u32
142      -
143        name: tx-errors
144        type: u32
145      -
146        name: rx-dropped
147        type: u32
148      -
149        name: tx-dropped
150        type: u32
151      -
152        name: multicast
153        type: u32
154      -
155        name: collisions
156        type: u32
157      -
158        name: rx-length-errors
159        type: u32
160      -
161        name: rx-over-errors
162        type: u32
163      -
164        name: rx-crc-errors
165        type: u32
166      -
167        name: rx-frame-errors
168        type: u32
169      -
170        name: rx-fifo-errors
171        type: u32
172      -
173        name: rx-missed-errors
174        type: u32
175      -
176        name: tx-aborted-errors
177        type: u32
178      -
179        name: tx-carrier-errors
180        type: u32
181      -
182        name: tx-fifo-errors
183        type: u32
184      -
185        name: tx-heartbeat-errors
186        type: u32
187      -
188        name: tx-window-errors
189        type: u32
190      -
191        name: rx-compressed
192        type: u32
193      -
194        name: tx-compressed
195        type: u32
196      -
197        name: rx-nohandler
198        type: u32
199  -
200    name: rtnl-link-stats64
201    type: struct
202    members:
203      -
204        name: rx-packets
205        type: u64
206      -
207        name: tx-packets
208        type: u64
209      -
210        name: rx-bytes
211        type: u64
212      -
213        name: tx-bytes
214        type: u64
215      -
216        name: rx-errors
217        type: u64
218      -
219        name: tx-errors
220        type: u64
221      -
222        name: rx-dropped
223        type: u64
224      -
225        name: tx-dropped
226        type: u64
227      -
228        name: multicast
229        type: u64
230      -
231        name: collisions
232        type: u64
233      -
234        name: rx-length-errors
235        type: u64
236      -
237        name: rx-over-errors
238        type: u64
239      -
240        name: rx-crc-errors
241        type: u64
242      -
243        name: rx-frame-errors
244        type: u64
245      -
246        name: rx-fifo-errors
247        type: u64
248      -
249        name: rx-missed-errors
250        type: u64
251      -
252        name: tx-aborted-errors
253        type: u64
254      -
255        name: tx-carrier-errors
256        type: u64
257      -
258        name: tx-fifo-errors
259        type: u64
260      -
261        name: tx-heartbeat-errors
262        type: u64
263      -
264        name: tx-window-errors
265        type: u64
266      -
267        name: rx-compressed
268        type: u64
269      -
270        name: tx-compressed
271        type: u64
272      -
273        name: rx-nohandler
274        type: u64
275      -
276        name: rx-otherhost-dropped
277        type: u64
278  -
279    name: rtnl-link-ifmap
280    type: struct
281    members:
282      -
283        name: mem-start
284        type: u64
285      -
286        name: mem-end
287        type: u64
288      -
289        name: base-addr
290        type: u64
291      -
292        name: irq
293        type: u16
294      -
295        name: dma
296        type: u8
297      -
298        name: port
299        type: u8
300  -
301    name: ipv4-devconf
302    type: struct
303    members:
304      -
305        name: forwarding
306        type: u32
307      -
308        name: mc-forwarding
309        type: u32
310      -
311        name: proxy-arp
312        type: u32
313      -
314        name: accept-redirects
315        type: u32
316      -
317        name: secure-redirects
318        type: u32
319      -
320        name: send-redirects
321        type: u32
322      -
323        name: shared-media
324        type: u32
325      -
326        name: rp-filter
327        type: u32
328      -
329        name: accept-source-route
330        type: u32
331      -
332        name: bootp-relay
333        type: u32
334      -
335        name: log-martians
336        type: u32
337      -
338        name: tag
339        type: u32
340      -
341        name: arpfilter
342        type: u32
343      -
344        name: medium-id
345        type: u32
346      -
347        name: noxfrm
348        type: u32
349      -
350        name: nopolicy
351        type: u32
352      -
353        name: force-igmp-version
354        type: u32
355      -
356        name: arp-announce
357        type: u32
358      -
359        name: arp-ignore
360        type: u32
361      -
362        name: promote-secondaries
363        type: u32
364      -
365        name: arp-accept
366        type: u32
367      -
368        name: arp-notify
369        type: u32
370      -
371        name: accept-local
372        type: u32
373      -
374        name: src-vmark
375        type: u32
376      -
377        name: proxy-arp-pvlan
378        type: u32
379      -
380        name: route-localnet
381        type: u32
382      -
383        name: igmpv2-unsolicited-report-interval
384        type: u32
385      -
386        name: igmpv3-unsolicited-report-interval
387        type: u32
388      -
389        name: ignore-routes-with-linkdown
390        type: u32
391      -
392        name: drop-unicast-in-l2-multicast
393        type: u32
394      -
395        name: drop-gratuitous-arp
396        type: u32
397      -
398        name: bc-forwarding
399        type: u32
400      -
401        name: arp-evict-nocarrier
402        type: u32
403  -
404    name: ipv6-devconf
405    type: struct
406    members:
407      -
408        name: forwarding
409        type: u32
410      -
411        name: hoplimit
412        type: u32
413      -
414        name: mtu6
415        type: u32
416      -
417        name: accept-ra
418        type: u32
419      -
420        name: accept-redirects
421        type: u32
422      -
423        name: autoconf
424        type: u32
425      -
426        name: dad-transmits
427        type: u32
428      -
429        name: rtr-solicits
430        type: u32
431      -
432        name: rtr-solicit-interval
433        type: u32
434      -
435        name: rtr-solicit-delay
436        type: u32
437      -
438        name: use-tempaddr
439        type: u32
440      -
441        name: temp-valid-lft
442        type: u32
443      -
444        name: temp-prefered-lft
445        type: u32
446      -
447        name: regen-max-retry
448        type: u32
449      -
450        name: max-desync-factor
451        type: u32
452      -
453        name: max-addresses
454        type: u32
455      -
456        name: force-mld-version
457        type: u32
458      -
459        name: accept-ra-defrtr
460        type: u32
461      -
462        name: accept-ra-pinfo
463        type: u32
464      -
465        name: accept-ra-rtr-pref
466        type: u32
467      -
468        name: rtr-probe-interval
469        type: u32
470      -
471        name: accept-ra-rt-info-max-plen
472        type: u32
473      -
474        name: proxy-ndp
475        type: u32
476      -
477        name: optimistic-dad
478        type: u32
479      -
480        name: accept-source-route
481        type: u32
482      -
483        name: mc-forwarding
484        type: u32
485      -
486        name: disable-ipv6
487        type: u32
488      -
489        name: accept-dad
490        type: u32
491      -
492        name: force-tllao
493        type: u32
494      -
495        name: ndisc-notify
496        type: u32
497      -
498        name: mldv1-unsolicited-report-interval
499        type: u32
500      -
501        name: mldv2-unsolicited-report-interval
502        type: u32
503      -
504        name: suppress-frag-ndisc
505        type: u32
506      -
507        name: accept-ra-from-local
508        type: u32
509      -
510        name: use-optimistic
511        type: u32
512      -
513        name: accept-ra-mtu
514        type: u32
515      -
516        name: stable-secret
517        type: u32
518      -
519        name: use-oif-addrs-only
520        type: u32
521      -
522        name: accept-ra-min-hop-limit
523        type: u32
524      -
525        name: ignore-routes-with-linkdown
526        type: u32
527      -
528        name: drop-unicast-in-l2-multicast
529        type: u32
530      -
531        name: drop-unsolicited-na
532        type: u32
533      -
534        name: keep-addr-on-down
535        type: u32
536      -
537        name: rtr-solicit-max-interval
538        type: u32
539      -
540        name: seg6-enabled
541        type: u32
542      -
543        name: seg6-require-hmac
544        type: u32
545      -
546        name: enhanced-dad
547        type: u32
548      -
549        name: addr-gen-mode
550        type: u8
551      -
552        name: disable-policy
553        type: u32
554      -
555        name: accept-ra-rt-info-min-plen
556        type: u32
557      -
558        name: ndisc-tclass
559        type: u32
560      -
561        name: rpl-seg-enabled
562        type: u32
563      -
564        name: ra-defrtr-metric
565        type: u32
566      -
567        name: ioam6-enabled
568        type: u32
569      -
570        name: ioam6-id
571        type: u32
572      -
573        name: ioam6-id-wide
574        type: u32
575      -
576        name: ndisc-evict-nocarrier
577        type: u32
578      -
579        name: accept-untracked-na
580        type: u32
581  -
582    name: ifla-icmp6-stats
583    type: struct
584    members:
585      -
586        name: inmsgs
587        type: u64
588      -
589        name: inerrors
590        type: u64
591      -
592        name: outmsgs
593        type: u64
594      -
595        name: outerrors
596        type: u64
597      -
598        name: csumerrors
599        type: u64
600      -
601        name: ratelimithost
602        type: u64
603  -
604    name: ifla-inet6-stats
605    type: struct
606    members:
607      -
608        name: inpkts
609        type: u64
610      -
611        name: inoctets
612        type: u64
613      -
614        name: indelivers
615        type: u64
616      -
617        name: outforwdatagrams
618        type: u64
619      -
620        name: outpkts
621        type: u64
622      -
623        name: outoctets
624        type: u64
625      -
626        name: inhdrerrors
627        type: u64
628      -
629        name: intoobigerrors
630        type: u64
631      -
632        name: innoroutes
633        type: u64
634      -
635        name: inaddrerrors
636        type: u64
637      -
638        name: inunknownprotos
639        type: u64
640      -
641        name: intruncatedpkts
642        type: u64
643      -
644        name: indiscards
645        type: u64
646      -
647        name: outdiscards
648        type: u64
649      -
650        name: outnoroutes
651        type: u64
652      -
653        name: reasmtimeout
654        type: u64
655      -
656        name: reasmreqds
657        type: u64
658      -
659        name: reasmoks
660        type: u64
661      -
662        name: reasmfails
663        type: u64
664      -
665        name: fragoks
666        type: u64
667      -
668        name: fragfails
669        type: u64
670      -
671        name: fragcreates
672        type: u64
673      -
674        name: inmcastpkts
675        type: u64
676      -
677        name: outmcastpkts
678        type: u64
679      -
680        name: inbcastpkts
681        type: u64
682      -
683        name: outbcastpkts
684        type: u64
685      -
686        name: inmcastoctets
687        type: u64
688      -
689        name: outmcastoctets
690        type: u64
691      -
692        name: inbcastoctets
693        type: u64
694      -
695        name: outbcastoctets
696        type: u64
697      -
698        name: csumerrors
699        type: u64
700      -
701        name: noectpkts
702        type: u64
703      -
704        name: ect1-pkts
705        type: u64
706      -
707        name: ect0-pkts
708        type: u64
709      -
710        name: cepkts
711        type: u64
712      -
713        name: reasm-overlaps
714        type: u64
715  - name: br-boolopt-multi
716    type: struct
717    members:
718      -
719        name: optval
720        type: u32
721      -
722        name: optmask
723        type: u32
724  -
725    name: if_stats_msg
726    type: struct
727    members:
728      -
729        name: family
730        type: u8
731      -
732        name: pad
733        type: pad
734        len: 3
735      -
736        name: ifindex
737        type: u32
738      -
739        name: filter-mask
740        type: u32
741  -
742    name: ifla-vlan-flags
743    type: struct
744    members:
745      -
746        name: flags
747        type: u32
748        enum: vlan-flags
749        enum-as-flags: true
750      -
751        name: mask
752        type: u32
753        display-hint: hex
754  -
755    name: vlan-flags
756    type: flags
757    entries:
758      - reorder-hdr
759      - gvrp
760      - loose-binding
761      - mvrp
762      - bridge-binding
763  -
764    name: ifla-vlan-qos-mapping
765    type: struct
766    members:
767      -
768        name: from
769        type: u32
770      -
771        name: to
772        type: u32
773  -
774    name: ifla-vf-mac
775    type: struct
776    members:
777      -
778        name: vf
779        type: u32
780      -
781        name: mac
782        type: binary
783        len: 32
784  -
785    name: ifla-vf-vlan
786    type: struct
787    members:
788      -
789        name: vf
790        type: u32
791      -
792        name: vlan
793        type: u32
794      -
795        name: qos
796        type: u32
797  -
798    name: ifla-vf-tx-rate
799    type: struct
800    members:
801      -
802        name: vf
803        type: u32
804      -
805        name: rate
806        type: u32
807  -
808    name: ifla-vf-spoofchk
809    type: struct
810    members:
811      -
812        name: vf
813        type: u32
814      -
815        name: setting
816        type: u32
817  -
818    name: ifla-vf-link-state
819    type: struct
820    members:
821      -
822        name: vf
823        type: u32
824      -
825        name: link-state
826        type: u32
827        enum: ifla-vf-link-state-enum
828  -
829    name: ifla-vf-link-state-enum
830    type: enum
831    entries:
832      - auto
833      - enable
834      - disable
835  -
836    name: ifla-vf-rate
837    type: struct
838    members:
839      -
840        name: vf
841        type: u32
842      -
843        name: min-tx-rate
844        type: u32
845      -
846        name: max-tx-rate
847        type: u32
848  -
849    name: ifla-vf-rss-query-en
850    type: struct
851    members:
852      -
853        name: vf
854        type: u32
855      -
856        name: setting
857        type: u32
858  -
859    name: ifla-vf-trust
860    type: struct
861    members:
862      -
863        name: vf
864        type: u32
865      -
866        name: setting
867        type: u32
868  -
869    name: ifla-vf-guid
870    type: struct
871    members:
872      -
873        name: vf
874        type: u32
875      -
876        name: guid
877        type: u64
878  -
879    name: ifla-vf-vlan-info
880    type: struct
881    members:
882      -
883        name: vf
884        type: u32
885      -
886        name: vlan
887        type: u32
888      -
889        name: qos
890        type: u32
891      -
892        name: vlan-proto
893        type: u32
894  -
895    name: rtext-filter
896    type: flags
897    entries:
898      - vf
899      - brvlan
900      - brvlan-compressed
901      - skip-stats
902      - mrp
903      - cfm-config
904      - cfm-status
905      - mst
906
907attribute-sets:
908  -
909    name: link-attrs
910    name-prefix: ifla-
911    attributes:
912      -
913        name: address
914        type: binary
915        display-hint: mac
916      -
917        name: broadcast
918        type: binary
919        display-hint: mac
920      -
921        name: ifname
922        type: string
923      -
924        name: mtu
925        type: u32
926      -
927        name: link
928        type: u32
929      -
930        name: qdisc
931        type: string
932      -
933        name: stats
934        type: binary
935        struct: rtnl-link-stats
936      -
937        name: cost
938        type: string
939      -
940        name: priority
941        type: string
942      -
943        name: master
944        type: u32
945      -
946        name: wireless
947        type: string
948      -
949        name: protinfo
950        type: string
951      -
952        name: txqlen
953        type: u32
954      -
955        name: map
956        type: binary
957        struct: rtnl-link-ifmap
958      -
959        name: weight
960        type: u32
961      -
962        name: operstate
963        type: u8
964      -
965        name: linkmode
966        type: u8
967      -
968        name: linkinfo
969        type: nest
970        nested-attributes: linkinfo-attrs
971      -
972        name: net-ns-pid
973        type: u32
974      -
975        name: ifalias
976        type: string
977      -
978        name: num-vf
979        type: u32
980      -
981        name: vfinfo-list
982        type: nest
983        nested-attributes: vfinfo-list-attrs
984      -
985        name: stats64
986        type: binary
987        struct: rtnl-link-stats64
988      -
989        name: vf-ports
990        type: nest
991        nested-attributes: vf-ports-attrs
992      -
993        name: port-self
994        type: nest
995        nested-attributes: port-self-attrs
996      -
997        name: af-spec
998        type: nest
999        nested-attributes: af-spec-attrs
1000      -
1001        name: group
1002        type: u32
1003      -
1004        name: net-ns-fd
1005        type: u32
1006      -
1007        name: ext-mask
1008        type: u32
1009        enum: rtext-filter
1010        enum-as-flags: true
1011      -
1012        name: promiscuity
1013        type: u32
1014      -
1015        name: num-tx-queues
1016        type: u32
1017      -
1018        name: num-rx-queues
1019        type: u32
1020      -
1021        name: carrier
1022        type: u8
1023      -
1024        name: phys-port-id
1025        type: binary
1026      -
1027        name: carrier-changes
1028        type: u32
1029      -
1030        name: phys-switch-id
1031        type: binary
1032      -
1033        name: link-netnsid
1034        type: s32
1035      -
1036        name: phys-port-name
1037        type: string
1038      -
1039        name: proto-down
1040        type: u8
1041      -
1042        name: gso-max-segs
1043        type: u32
1044      -
1045        name: gso-max-size
1046        type: u32
1047      -
1048        name: pad
1049        type: pad
1050      -
1051        name: xdp
1052        type: nest
1053        nested-attributes: xdp-attrs
1054      -
1055        name: event
1056        type: u32
1057      -
1058        name: new-netnsid
1059        type: s32
1060      -
1061        name: target-netnsid
1062        type: s32
1063      -
1064        name: carrier-up-count
1065        type: u32
1066      -
1067        name: carrier-down-count
1068        type: u32
1069      -
1070        name: new-ifindex
1071        type: s32
1072      -
1073        name: min-mtu
1074        type: u32
1075      -
1076        name: max-mtu
1077        type: u32
1078      -
1079        name: prop-list
1080        type: nest
1081        nested-attributes: link-attrs
1082      -
1083        name: alt-ifname
1084        type: string
1085        multi-attr: true
1086      -
1087        name: perm-address
1088        type: binary
1089        display-hint: mac
1090      -
1091        name: proto-down-reason
1092        type: string
1093      -
1094        name: parent-dev-name
1095        type: string
1096      -
1097        name: parent-dev-bus-name
1098        type: string
1099      -
1100        name: gro-max-size
1101        type: u32
1102      -
1103        name: tso-max-size
1104        type: u32
1105      -
1106        name: tso-max-segs
1107        type: u32
1108      -
1109        name: allmulti
1110        type: u32
1111      -
1112        name: devlink-port
1113        type: binary
1114      -
1115        name: gso-ipv4-max-size
1116        type: u32
1117      -
1118        name: gro-ipv4-max-size
1119        type: u32
1120      -
1121        name: dpll-pin
1122        type: nest
1123        nested-attributes: link-dpll-pin-attrs
1124  -
1125    name: af-spec-attrs
1126    attributes:
1127      -
1128        name: "inet"
1129        type: nest
1130        value: 2
1131        nested-attributes: ifla-attrs
1132      -
1133        name: "inet6"
1134        type: nest
1135        value: 10
1136        nested-attributes: ifla6-attrs
1137      -
1138        name: "mctp"
1139        type: nest
1140        value: 45
1141        nested-attributes: mctp-attrs
1142  -
1143    name: vfinfo-list-attrs
1144    attributes:
1145      -
1146        name: info
1147        type: nest
1148        nested-attributes: vfinfo-attrs
1149        multi-attr: true
1150  -
1151    name: vfinfo-attrs
1152    attributes:
1153      -
1154        name: mac
1155        type: binary
1156        struct: ifla-vf-mac
1157      -
1158        name: vlan
1159        type: binary
1160        struct: ifla-vf-vlan
1161      -
1162        name: tx-rate
1163        type: binary
1164        struct: ifla-vf-tx-rate
1165      -
1166        name: spoofchk
1167        type: binary
1168        struct: ifla-vf-spoofchk
1169      -
1170        name: link-state
1171        type: binary
1172        struct: ifla-vf-link-state
1173      -
1174        name: rate
1175        type: binary
1176        struct: ifla-vf-rate
1177      -
1178        name: rss-query-en
1179        type: binary
1180        struct: ifla-vf-rss-query-en
1181      -
1182        name: stats
1183        type: nest
1184        nested-attributes: vf-stats-attrs
1185      -
1186        name: trust
1187        type: binary
1188        struct: ifla-vf-trust
1189      -
1190        name: ib-node-guid
1191        type: binary
1192        struct: ifla-vf-guid
1193      -
1194        name: ib-port-guid
1195        type: binary
1196        struct: ifla-vf-guid
1197      -
1198        name: vlan-list
1199        type: nest
1200        nested-attributes: vf-vlan-attrs
1201      -
1202        name: broadcast
1203        type: binary
1204  -
1205    name: vf-stats-attrs
1206    attributes:
1207      -
1208        name: rx-packets
1209        type: u64
1210        value: 0
1211      -
1212        name: tx-packets
1213        type: u64
1214      -
1215        name: rx-bytes
1216        type: u64
1217      -
1218        name: tx-bytes
1219        type: u64
1220      -
1221        name: broadcast
1222        type: u64
1223      -
1224        name: multicast
1225        type: u64
1226      -
1227        name: pad
1228        type: pad
1229      -
1230        name: rx-dropped
1231        type: u64
1232      -
1233        name: tx-dropped
1234        type: u64
1235  -
1236    name: vf-vlan-attrs
1237    attributes:
1238      -
1239        name: info
1240        type: binary
1241        struct: ifla-vf-vlan-info
1242        multi-attr: true
1243  -
1244    name: vf-ports-attrs
1245    attributes: []
1246  -
1247    name: port-self-attrs
1248    attributes: []
1249  -
1250    name: linkinfo-attrs
1251    attributes:
1252      -
1253        name: kind
1254        type: string
1255      -
1256        name: data
1257        type: sub-message
1258        sub-message: linkinfo-data-msg
1259        selector: kind
1260      -
1261        name: xstats
1262        type: binary
1263      -
1264        name: slave-kind
1265        type: string
1266      -
1267        name: slave-data
1268        type: sub-message
1269        sub-message: linkinfo-member-data-msg
1270        selector: slave-kind
1271  -
1272    name: linkinfo-bond-attrs
1273    name-prefix: ifla-bond-
1274    attributes:
1275      -
1276        name: mode
1277        type: u8
1278      -
1279        name: active-slave
1280        type: u32
1281      -
1282        name: miimon
1283        type: u32
1284      -
1285        name: updelay
1286        type: u32
1287      -
1288        name: downdelay
1289        type: u32
1290      -
1291        name: use-carrier
1292        type: u8
1293      -
1294        name: arp-interval
1295        type: u32
1296      -
1297        name: arp-ip-target
1298        type: indexed-array
1299        sub-type: u32
1300        byte-order: big-endian
1301        display-hint: ipv4
1302      -
1303        name: arp-validate
1304        type: u32
1305      -
1306        name: arp-all-targets
1307        type: u32
1308      -
1309        name: primary
1310        type: u32
1311      -
1312        name: primary-reselect
1313        type: u8
1314      -
1315        name: fail-over-mac
1316        type: u8
1317      -
1318        name: xmit-hash-policy
1319        type: u8
1320      -
1321        name: resend-igmp
1322        type: u32
1323      -
1324        name: num-peer-notif
1325        type: u8
1326      -
1327        name: all-slaves-active
1328        type: u8
1329      -
1330        name: min-links
1331        type: u32
1332      -
1333        name: lp-interval
1334        type: u32
1335      -
1336        name: packets-per-slave
1337        type: u32
1338      -
1339        name: ad-lacp-rate
1340        type: u8
1341      -
1342        name: ad-select
1343        type: u8
1344      -
1345        name: ad-info
1346        type: nest
1347        nested-attributes: bond-ad-info-attrs
1348      -
1349        name: ad-actor-sys-prio
1350        type: u16
1351      -
1352        name: ad-user-port-key
1353        type: u16
1354      -
1355        name: ad-actor-system
1356        type: binary
1357        display-hint: mac
1358      -
1359        name: tlb-dynamic-lb
1360        type: u8
1361      -
1362        name: peer-notif-delay
1363        type: u32
1364      -
1365        name: ad-lacp-active
1366        type: u8
1367      -
1368        name: missed-max
1369        type: u8
1370      -
1371        name: ns-ip6-target
1372        type: indexed-array
1373        sub-type: binary
1374        display-hint: ipv6
1375      -
1376        name: coupled-control
1377        type: u8
1378  -
1379    name: bond-ad-info-attrs
1380    name-prefix: ifla-bond-ad-info-
1381    attributes:
1382      -
1383        name: aggregator
1384        type: u16
1385      -
1386        name: num-ports
1387        type: u16
1388      -
1389        name: actor-key
1390        type: u16
1391      -
1392        name: partner-key
1393        type: u16
1394      -
1395        name: partner-mac
1396        type: binary
1397        display-hint: mac
1398  -
1399    name: bond-slave-attrs
1400    name-prefix: ifla-bond-slave-
1401    attributes:
1402      -
1403        name: state
1404        type: u8
1405      -
1406        name: mii-status
1407        type: u8
1408      -
1409        name: link-failure-count
1410        type: u32
1411      -
1412        name: perm-hwaddr
1413        type: binary
1414        display-hint: mac
1415      -
1416        name: queue-id
1417        type: u16
1418      -
1419        name: ad-aggregator-id
1420        type: u16
1421      -
1422        name: ad-actor-oper-port-state
1423        type: u8
1424      -
1425        name: ad-partner-oper-port-state
1426        type: u16
1427      -
1428        name: prio
1429        type: u32
1430  -
1431    name: linkinfo-bridge-attrs
1432    name-prefix: ifla-br-
1433    attributes:
1434      -
1435        name: forward-delay
1436        type: u32
1437      -
1438        name: hello-time
1439        type: u32
1440      -
1441        name: max-age
1442        type: u32
1443      -
1444        name: ageing-time
1445        type: u32
1446      -
1447        name: stp-state
1448        type: u32
1449      -
1450        name: priority
1451        type: u16
1452      -
1453        name: vlan-filtering
1454        type: u8
1455      -
1456        name: vlan-protocol
1457        type: u16
1458      -
1459        name: group-fwd-mask
1460        type: u16
1461      -
1462        name: root-id
1463        type: binary
1464        struct: ifla-bridge-id
1465      -
1466        name: bridge-id
1467        type: binary
1468        struct: ifla-bridge-id
1469      -
1470        name: root-port
1471        type: u16
1472      -
1473        name: root-path-cost
1474        type: u32
1475      -
1476        name: topology-change
1477        type: u8
1478      -
1479        name: topology-change-detected
1480        type: u8
1481      -
1482        name: hello-timer
1483        type: u64
1484      -
1485        name: tcn-timer
1486        type: u64
1487      -
1488        name: topology-change-timer
1489        type: u64
1490      -
1491        name: gc-timer
1492        type: u64
1493      -
1494        name: group-addr
1495        type: binary
1496        display-hint: mac
1497      -
1498        name: fdb-flush
1499        type: binary
1500      -
1501        name: mcast-router
1502        type: u8
1503      -
1504        name: mcast-snooping
1505        type: u8
1506      -
1507        name: mcast-query-use-ifaddr
1508        type: u8
1509      -
1510        name: mcast-querier
1511        type: u8
1512      -
1513        name: mcast-hash-elasticity
1514        type: u32
1515      -
1516        name: mcast-hash-max
1517        type: u32
1518      -
1519        name: mcast-last-member-cnt
1520        type: u32
1521      -
1522        name: mcast-startup-query-cnt
1523        type: u32
1524      -
1525        name: mcast-last-member-intvl
1526        type: u64
1527      -
1528        name: mcast-membership-intvl
1529        type: u64
1530      -
1531        name: mcast-querier-intvl
1532        type: u64
1533      -
1534        name: mcast-query-intvl
1535        type: u64
1536      -
1537        name: mcast-query-response-intvl
1538        type: u64
1539      -
1540        name: mcast-startup-query-intvl
1541        type: u64
1542      -
1543        name: nf-call-iptables
1544        type: u8
1545      -
1546        name: nf-call-ip6-tables
1547        type: u8
1548      -
1549        name: nf-call-arptables
1550        type: u8
1551      -
1552        name: vlan-default-pvid
1553        type: u16
1554      -
1555        name: pad
1556        type: pad
1557      -
1558        name: vlan-stats-enabled
1559        type: u8
1560      -
1561        name: mcast-stats-enabled
1562        type: u8
1563      -
1564        name: mcast-igmp-version
1565        type: u8
1566      -
1567        name: mcast-mld-version
1568        type: u8
1569      -
1570        name: vlan-stats-per-port
1571        type: u8
1572      -
1573        name: multi-boolopt
1574        type: binary
1575        struct: br-boolopt-multi
1576      -
1577        name: mcast-querier-state
1578        type: binary
1579      -
1580        name: fdb-n-learned
1581        type: u32
1582      -
1583        name: fdb-max-learned
1584        type: u32
1585  -
1586    name: linkinfo-brport-attrs
1587    name-prefix: ifla-brport-
1588    attributes:
1589      -
1590        name: state
1591        type: u8
1592      -
1593        name: priority
1594        type: u16
1595      -
1596        name: cost
1597        type: u32
1598      -
1599        name: mode
1600        type: flag
1601      -
1602        name: guard
1603        type: flag
1604      -
1605        name: protect
1606        type: flag
1607      -
1608        name: fast-leave
1609        type: flag
1610      -
1611        name: learning
1612        type: flag
1613      -
1614        name: unicast-flood
1615        type: flag
1616      -
1617        name: proxyarp
1618        type: flag
1619      -
1620        name: learning-sync
1621        type: flag
1622      -
1623        name: proxyarp-wifi
1624        type: flag
1625      -
1626        name: root-id
1627        type: binary
1628        struct: ifla-bridge-id
1629      -
1630        name: bridge-id
1631        type: binary
1632        struct: ifla-bridge-id
1633      -
1634        name: designated-port
1635        type: u16
1636      -
1637        name: designated-cost
1638        type: u16
1639      -
1640        name: id
1641        type: u16
1642      -
1643        name: "no"
1644        type: u16
1645      -
1646        name: topology-change-ack
1647        type: u8
1648      -
1649        name: config-pending
1650        type: u8
1651      -
1652        name: message-age-timer
1653        type: u64
1654      -
1655        name: forward-delay-timer
1656        type: u64
1657      -
1658        name: hold-timer
1659        type: u64
1660      -
1661        name: flush
1662        type: flag
1663      -
1664        name: multicast-router
1665        type: u8
1666      -
1667        name: pad
1668        type: pad
1669      -
1670        name: mcast-flood
1671        type: flag
1672      -
1673        name: mcast-to-ucast
1674        type: flag
1675      -
1676        name: vlan-tunnel
1677        type: flag
1678      -
1679        name: bcast-flood
1680        type: flag
1681      -
1682        name: group-fwd-mask
1683        type: u16
1684      -
1685        name: neigh-suppress
1686        type: flag
1687      -
1688        name: isolated
1689        type: flag
1690      -
1691        name: backup-port
1692        type: u32
1693      -
1694        name: mrp-ring-open
1695        type: flag
1696      -
1697        name: mrp-in-open
1698        type: flag
1699      -
1700        name: mcast-eht-hosts-limit
1701        type: u32
1702      -
1703        name: mcast-eht-hosts-cnt
1704        type: u32
1705      -
1706        name: locked
1707        type: flag
1708      -
1709        name: mab
1710        type: flag
1711      -
1712        name: mcast-n-groups
1713        type: u32
1714      -
1715        name: mcast-max-groups
1716        type: u32
1717      -
1718        name: neigh-vlan-suppress
1719        type: flag
1720      -
1721        name: backup-nhid
1722        type: u32
1723  -
1724    name: linkinfo-gre-attrs
1725    name-prefix: ifla-gre-
1726    attributes:
1727      -
1728        name: link
1729        type: u32
1730      -
1731        name: iflags
1732        type: u16
1733      -
1734        name: oflags
1735        type: u16
1736      -
1737        name: ikey
1738        type: u32
1739      -
1740        name: okey
1741        type: u32
1742      -
1743        name: local
1744        type: binary
1745        display-hint: ipv4
1746      -
1747        name: remote
1748        type: binary
1749        display-hint: ipv4
1750      -
1751        name: ttl
1752        type: u8
1753      -
1754        name: tos
1755        type: u8
1756      -
1757        name: pmtudisc
1758        type: u8
1759      -
1760        name: encap-limit
1761        type: u32
1762      -
1763        name: flowinfo
1764        type: u32
1765      -
1766        name: flags
1767        type: u32
1768      -
1769        name: encap-type
1770        type: u16
1771      -
1772        name: encap-flags
1773        type: u16
1774      -
1775        name: encap-sport
1776        type: u16
1777      -
1778        name: encap-dport
1779        type: u16
1780      -
1781        name: collect-metadata
1782        type: flag
1783      -
1784        name: ignore-df
1785        type: u8
1786      -
1787        name: fwmark
1788        type: u32
1789      -
1790        name: erspan-index
1791        type: u32
1792      -
1793        name: erspan-ver
1794        type: u8
1795      -
1796        name: erspan-dir
1797        type: u8
1798      -
1799        name: erspan-hwid
1800        type: u16
1801  -
1802    name: linkinfo-geneve-attrs
1803    name-prefix: ifla-geneve-
1804    attributes:
1805      -
1806        name: id
1807        type: u32
1808      -
1809        name: remote
1810        type: binary
1811        display-hint: ipv4
1812      -
1813        name: ttl
1814        type: u8
1815      -
1816        name: tos
1817        type: u8
1818      -
1819        name: port
1820        type: u16
1821      -
1822        name: collect-metadata
1823        type: flag
1824      -
1825        name: remote6
1826        type: binary
1827        display-hint: ipv6
1828      -
1829        name: udp-csum
1830        type: u8
1831      -
1832        name: udp-zero-csum6-tx
1833        type: u8
1834      -
1835        name: udp-zero-csum6-rx
1836        type: u8
1837      -
1838        name: label
1839        type: u32
1840      -
1841        name: ttl-inherit
1842        type: u8
1843      -
1844        name: df
1845        type: u8
1846      -
1847        name: inner-proto-inherit
1848        type: flag
1849  -
1850    name: linkinfo-iptun-attrs
1851    name-prefix: ifla-iptun-
1852    attributes:
1853      -
1854        name: link
1855        type: u32
1856      -
1857        name: local
1858        type: binary
1859        display-hint: ipv4
1860      -
1861        name: remote
1862        type: binary
1863        display-hint: ipv4
1864      -
1865        name: ttl
1866        type: u8
1867      -
1868        name: tos
1869        type: u8
1870      -
1871        name: encap-limit
1872        type: u8
1873      -
1874        name: flowinfo
1875        type: u32
1876      -
1877        name: flags
1878        type: u16
1879      -
1880        name: proto
1881        type: u8
1882      -
1883        name: pmtudisc
1884        type: u8
1885      -
1886        name: 6rd-prefix
1887        type: binary
1888        display-hint: ipv6
1889      -
1890        name: 6rd-relay-prefix
1891        type: binary
1892        display-hint: ipv4
1893      -
1894        name: 6rd-prefixlen
1895        type: u16
1896      -
1897        name: 6rd-relay-prefixlen
1898        type: u16
1899      -
1900        name: encap-type
1901        type: u16
1902      -
1903        name: encap-flags
1904        type: u16
1905      -
1906        name: encap-sport
1907        type: u16
1908      -
1909        name: encap-dport
1910        type: u16
1911      -
1912        name: collect-metadata
1913        type: flag
1914      -
1915        name: fwmark
1916        type: u32
1917  -
1918    name: linkinfo-tun-attrs
1919    name-prefix: ifla-tun-
1920    attributes:
1921      -
1922        name: owner
1923        type: u32
1924      -
1925        name: group
1926        type: u32
1927      -
1928        name: type
1929        type: u8
1930      -
1931        name: pi
1932        type: u8
1933      -
1934        name: vnet-hdr
1935        type: u8
1936      -
1937        name: persist
1938        type: u8
1939      -
1940        name: multi-queue
1941        type: u8
1942      -
1943        name: num-queues
1944        type: u32
1945      -
1946        name: num-disabled-queues
1947        type: u32
1948  -
1949    name: linkinfo-vlan-attrs
1950    name-prefix: ifla-vlan-
1951    attributes:
1952      -
1953        name: id
1954        type: u16
1955      -
1956        name: flag
1957        type: binary
1958        struct: ifla-vlan-flags
1959      -
1960        name: egress-qos
1961        type: nest
1962        nested-attributes: ifla-vlan-qos
1963      -
1964        name: ingress-qos
1965        type: nest
1966        nested-attributes: ifla-vlan-qos
1967      -
1968        name: protocol
1969        type: u16
1970        enum: vlan-protocols
1971        byte-order: big-endian
1972  -
1973    name: ifla-vlan-qos
1974    name-prefix: ifla-vlan-qos
1975    attributes:
1976      -
1977        name: mapping
1978        type: binary
1979        multi-attr: true
1980        struct: ifla-vlan-qos-mapping
1981  -
1982    name: linkinfo-vrf-attrs
1983    name-prefix: ifla-vrf-
1984    attributes:
1985      -
1986        name: table
1987        type: u32
1988  -
1989    name: xdp-attrs
1990    attributes:
1991      -
1992        name: fd
1993        type: s32
1994      -
1995        name: attached
1996        type: u8
1997      -
1998        name: flags
1999        type: u32
2000      -
2001        name: prog-id
2002        type: u32
2003      -
2004        name: drv-prog-id
2005        type: u32
2006      -
2007        name: skb-prog-id
2008        type: u32
2009      -
2010        name: hw-prog-id
2011        type: u32
2012      -
2013        name: expected-fd
2014        type: s32
2015  -
2016    name: ifla-attrs
2017    attributes:
2018      -
2019        name: conf
2020        type: binary
2021        struct: ipv4-devconf
2022  -
2023    name: ifla6-attrs
2024    attributes:
2025      -
2026        name: flags
2027        type: u32
2028      -
2029        name: conf
2030        type: binary
2031        struct: ipv6-devconf
2032      -
2033        name: stats
2034        type: binary
2035        struct: ifla-inet6-stats
2036      -
2037        name: mcast
2038        type: binary
2039      -
2040        name: cacheinfo
2041        type: binary
2042        struct: ifla-cacheinfo
2043      -
2044        name: icmp6-stats
2045        type: binary
2046        struct: ifla-icmp6-stats
2047      -
2048        name: token
2049        type: binary
2050      -
2051        name: addr-gen-mode
2052        type: u8
2053      -
2054        name: ra-mtu
2055        type: u32
2056  -
2057    name: mctp-attrs
2058    attributes:
2059      -
2060        name: mctp-net
2061        type: u32
2062  -
2063    name: stats-attrs
2064    name-prefix: ifla-stats-
2065    attributes:
2066      -
2067        name: link-64
2068        type: binary
2069        struct: rtnl-link-stats64
2070      -
2071        name: link-xstats
2072        type: binary
2073      -
2074        name: link-xstats-slave
2075        type: binary
2076      -
2077        name: link-offload-xstats
2078        type: nest
2079        nested-attributes: link-offload-xstats
2080      -
2081        name: af-spec
2082        type: binary
2083  -
2084    name: link-offload-xstats
2085    attributes:
2086      -
2087        name: cpu-hit
2088        type: binary
2089      -
2090        name: hw-s-info
2091        type: indexed-array
2092        sub-type: nest
2093        nested-attributes: hw-s-info-one
2094      -
2095        name: l3-stats
2096        type: binary
2097  -
2098    name: hw-s-info-one
2099    attributes:
2100      -
2101        name: request
2102        type: u8
2103      -
2104        name: used
2105        type: u8
2106  -
2107    name: link-dpll-pin-attrs
2108    attributes:
2109      -
2110        name: id
2111        type: u32
2112
2113sub-messages:
2114  -
2115    name: linkinfo-data-msg
2116    formats:
2117      -
2118        value: bond
2119        attribute-set: linkinfo-bond-attrs
2120      -
2121        value: bridge
2122        attribute-set: linkinfo-bridge-attrs
2123      -
2124        value: erspan
2125        attribute-set: linkinfo-gre-attrs
2126      -
2127        value: gre
2128        attribute-set: linkinfo-gre-attrs
2129      -
2130        value: gretap
2131        attribute-set: linkinfo-gre-attrs
2132      -
2133        value: geneve
2134        attribute-set: linkinfo-geneve-attrs
2135      -
2136        value: ipip
2137        attribute-set: linkinfo-iptun-attrs
2138      -
2139        value: sit
2140        attribute-set: linkinfo-iptun-attrs
2141      -
2142        value: tun
2143        attribute-set: linkinfo-tun-attrs
2144      -
2145        value: vlan
2146        attribute-set: linkinfo-vlan-attrs
2147      -
2148        value: vrf
2149        attribute-set: linkinfo-vrf-attrs
2150  -
2151    name: linkinfo-member-data-msg
2152    formats:
2153      -
2154        value: bridge
2155        attribute-set: linkinfo-brport-attrs
2156      -
2157        value: bond
2158        attribute-set: bond-slave-attrs
2159
2160operations:
2161  enum-model: directional
2162  list:
2163    -
2164      name: newlink
2165      doc: Create a new link.
2166      attribute-set: link-attrs
2167      fixed-header: ifinfomsg
2168      do:
2169        request:
2170          value: 16
2171          attributes: &link-new-attrs
2172            - ifi-index
2173            - ifname
2174            - net-ns-pid
2175            - net-ns-fd
2176            - target-netnsid
2177            - link-netnsid
2178            - linkinfo
2179            - group
2180            - num-tx-queues
2181            - num-rx-queues
2182            - address
2183            - broadcast
2184            - mtu
2185            - txqlen
2186            - operstate
2187            - linkmode
2188            - group
2189            - gso-max-size
2190            - gso-max-segs
2191            - gro-max-size
2192            - gso-ipv4-max-size
2193            - gro-ipv4-max-size
2194            - af-spec
2195    -
2196      name: dellink
2197      doc: Delete an existing link.
2198      attribute-set: link-attrs
2199      fixed-header: ifinfomsg
2200      do:
2201        request:
2202          value: 17
2203          attributes:
2204            - ifi-index
2205            - ifname
2206    -
2207      name: getlink
2208      doc: Get / dump information about a link.
2209      attribute-set: link-attrs
2210      fixed-header: ifinfomsg
2211      do:
2212        request:
2213          value: 18
2214          attributes:
2215            - ifi-index
2216            - ifname
2217            - alt-ifname
2218            - ext-mask
2219            - target-netnsid
2220        reply:
2221          value: 16
2222          attributes: &link-all-attrs
2223            - ifi-family
2224            - ifi-type
2225            - ifi-index
2226            - ifi-flags
2227            - ifi-change
2228            - address
2229            - broadcast
2230            - ifname
2231            - mtu
2232            - link
2233            - qdisc
2234            - stats
2235            - cost
2236            - priority
2237            - master
2238            - wireless
2239            - protinfo
2240            - txqlen
2241            - map
2242            - weight
2243            - operstate
2244            - linkmode
2245            - linkinfo
2246            - net-ns-pid
2247            - ifalias
2248            - num-vf
2249            - vfinfo-list
2250            - stats64
2251            - vf-ports
2252            - port-self
2253            - af-spec
2254            - group
2255            - net-ns-fd
2256            - ext-mask
2257            - promiscuity
2258            - num-tx-queues
2259            - num-rx-queues
2260            - carrier
2261            - phys-port-id
2262            - carrier-changes
2263            - phys-switch-id
2264            - link-netnsid
2265            - phys-port-name
2266            - proto-down
2267            - gso-max-segs
2268            - gso-max-size
2269            - pad
2270            - xdp
2271            - event
2272            - new-netnsid
2273            - if-netnsid
2274            - target-netnsid
2275            - carrier-up-count
2276            - carrier-down-count
2277            - new-ifindex
2278            - min-mtu
2279            - max-mtu
2280            - prop-list
2281            - alt-ifname
2282            - perm-address
2283            - proto-down-reason
2284            - parent-dev-name
2285            - parent-dev-bus-name
2286            - gro-max-size
2287            - tso-max-size
2288            - tso-max-segs
2289            - allmulti
2290            - devlink-port
2291            - gso-ipv4-max-size
2292            - gro-ipv4-max-size
2293      dump:
2294        request:
2295          value: 18
2296          attributes:
2297            - target-netnsid
2298            - ext-mask
2299            - master
2300            - linkinfo
2301        reply:
2302          value: 16
2303          attributes: *link-all-attrs
2304    -
2305      name: setlink
2306      doc: Set information about a link.
2307      attribute-set: link-attrs
2308      fixed-header: ifinfomsg
2309      do:
2310        request:
2311          value: 19
2312          attributes: *link-all-attrs
2313    -
2314      name: getstats
2315      doc: Get / dump link stats.
2316      attribute-set: stats-attrs
2317      fixed-header: if_stats_msg
2318      do:
2319        request:
2320          value: 94
2321          attributes:
2322            - ifindex
2323        reply:
2324          value: 92
2325          attributes: &link-stats-attrs
2326            - family
2327            - ifindex
2328            - filter-mask
2329            - link-64
2330            - link-xstats
2331            - link-xstats-slave
2332            - link-offload-xstats
2333            - af-spec
2334      dump:
2335        request:
2336          value: 94
2337        reply:
2338          value: 92
2339          attributes: *link-stats-attrs
2340
2341mcast-groups:
2342  list:
2343    -
2344      name: rtnlgrp-link
2345      value: 1
2346    -
2347      name: rtnlgrp-stats
2348      value: 36
2349