xref: /linux/Documentation/netlink/specs/rt_link.yaml (revision e7d759f31ca295d589f7420719c311870bb3166f)
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  -
55    name: rtgenmsg
56    type: struct
57    members:
58      -
59        name: family
60        type: u8
61  -
62    name: ifinfomsg
63    type: struct
64    members:
65      -
66        name: ifi-family
67        type: u8
68      -
69        name: pad
70        type: pad
71        len: 1
72      -
73        name: ifi-type
74        type: u16
75      -
76        name: ifi-index
77        type: s32
78      -
79        name: ifi-flags
80        type: u32
81        enum: ifinfo-flags
82        enum-as-flags: true
83      -
84        name: ifi-change
85        type: u32
86  -
87    name: ifla-bridge-id
88    type: struct
89    members:
90      -
91        name: prio
92        type: u16
93      -
94        name: addr
95        type: binary
96        len: 6
97        display-hint: mac
98  -
99    name: ifla-cacheinfo
100    type: struct
101    members:
102      -
103        name: max-reasm-len
104        type: u32
105      -
106        name: tstamp
107        type: u32
108      -
109        name: reachable-time
110        type: s32
111      -
112        name: retrans-time
113        type: u32
114  -
115    name: rtnl-link-stats
116    type: struct
117    members:
118      -
119        name: rx-packets
120        type: u32
121      -
122        name: tx-packets
123        type: u32
124      -
125        name: rx-bytes
126        type: u32
127      -
128        name: tx-bytes
129        type: u32
130      -
131        name: rx-errors
132        type: u32
133      -
134        name: tx-errors
135        type: u32
136      -
137        name: rx-dropped
138        type: u32
139      -
140        name: tx-dropped
141        type: u32
142      -
143        name: multicast
144        type: u32
145      -
146        name: collisions
147        type: u32
148      -
149        name: rx-length-errors
150        type: u32
151      -
152        name: rx-over-errors
153        type: u32
154      -
155        name: rx-crc-errors
156        type: u32
157      -
158        name: rx-frame-errors
159        type: u32
160      -
161        name: rx-fifo-errors
162        type: u32
163      -
164        name: rx-missed-errors
165        type: u32
166      -
167        name: tx-aborted-errors
168        type: u32
169      -
170        name: tx-carrier-errors
171        type: u32
172      -
173        name: tx-fifo-errors
174        type: u32
175      -
176        name: tx-heartbeat-errors
177        type: u32
178      -
179        name: tx-window-errors
180        type: u32
181      -
182        name: rx-compressed
183        type: u32
184      -
185        name: tx-compressed
186        type: u32
187      -
188        name: rx-nohandler
189        type: u32
190  -
191    name: rtnl-link-stats64
192    type: struct
193    members:
194      -
195        name: rx-packets
196        type: u64
197      -
198        name: tx-packets
199        type: u64
200      -
201        name: rx-bytes
202        type: u64
203      -
204        name: tx-bytes
205        type: u64
206      -
207        name: rx-errors
208        type: u64
209      -
210        name: tx-errors
211        type: u64
212      -
213        name: rx-dropped
214        type: u64
215      -
216        name: tx-dropped
217        type: u64
218      -
219        name: multicast
220        type: u64
221      -
222        name: collisions
223        type: u64
224      -
225        name: rx-length-errors
226        type: u64
227      -
228        name: rx-over-errors
229        type: u64
230      -
231        name: rx-crc-errors
232        type: u64
233      -
234        name: rx-frame-errors
235        type: u64
236      -
237        name: rx-fifo-errors
238        type: u64
239      -
240        name: rx-missed-errors
241        type: u64
242      -
243        name: tx-aborted-errors
244        type: u64
245      -
246        name: tx-carrier-errors
247        type: u64
248      -
249        name: tx-fifo-errors
250        type: u64
251      -
252        name: tx-heartbeat-errors
253        type: u64
254      -
255        name: tx-window-errors
256        type: u64
257      -
258        name: rx-compressed
259        type: u64
260      -
261        name: tx-compressed
262        type: u64
263      -
264        name: rx-nohandler
265        type: u64
266      -
267        name: rx-otherhost-dropped
268        type: u64
269  -
270    name: rtnl-link-ifmap
271    type: struct
272    members:
273      -
274        name: mem-start
275        type: u64
276      -
277        name: mem-end
278        type: u64
279      -
280        name: base-addr
281        type: u64
282      -
283        name: irq
284        type: u16
285      -
286        name: dma
287        type: u8
288      -
289        name: port
290        type: u8
291  -
292    name: ipv4-devconf
293    type: struct
294    members:
295      -
296        name: forwarding
297        type: u32
298      -
299        name: mc-forwarding
300        type: u32
301      -
302        name: proxy-arp
303        type: u32
304      -
305        name: accept-redirects
306        type: u32
307      -
308        name: secure-redirects
309        type: u32
310      -
311        name: send-redirects
312        type: u32
313      -
314        name: shared-media
315        type: u32
316      -
317        name: rp-filter
318        type: u32
319      -
320        name: accept-source-route
321        type: u32
322      -
323        name: bootp-relay
324        type: u32
325      -
326        name: log-martians
327        type: u32
328      -
329        name: tag
330        type: u32
331      -
332        name: arpfilter
333        type: u32
334      -
335        name: medium-id
336        type: u32
337      -
338        name: noxfrm
339        type: u32
340      -
341        name: nopolicy
342        type: u32
343      -
344        name: force-igmp-version
345        type: u32
346      -
347        name: arp-announce
348        type: u32
349      -
350        name: arp-ignore
351        type: u32
352      -
353        name: promote-secondaries
354        type: u32
355      -
356        name: arp-accept
357        type: u32
358      -
359        name: arp-notify
360        type: u32
361      -
362        name: accept-local
363        type: u32
364      -
365        name: src-vmark
366        type: u32
367      -
368        name: proxy-arp-pvlan
369        type: u32
370      -
371        name: route-localnet
372        type: u32
373      -
374        name: igmpv2-unsolicited-report-interval
375        type: u32
376      -
377        name: igmpv3-unsolicited-report-interval
378        type: u32
379      -
380        name: ignore-routes-with-linkdown
381        type: u32
382      -
383        name: drop-unicast-in-l2-multicast
384        type: u32
385      -
386        name: drop-gratuitous-arp
387        type: u32
388      -
389        name: bc-forwarding
390        type: u32
391      -
392        name: arp-evict-nocarrier
393        type: u32
394  -
395    name: ipv6-devconf
396    type: struct
397    members:
398      -
399        name: forwarding
400        type: u32
401      -
402        name: hoplimit
403        type: u32
404      -
405        name: mtu6
406        type: u32
407      -
408        name: accept-ra
409        type: u32
410      -
411        name: accept-redirects
412        type: u32
413      -
414        name: autoconf
415        type: u32
416      -
417        name: dad-transmits
418        type: u32
419      -
420        name: rtr-solicits
421        type: u32
422      -
423        name: rtr-solicit-interval
424        type: u32
425      -
426        name: rtr-solicit-delay
427        type: u32
428      -
429        name: use-tempaddr
430        type: u32
431      -
432        name: temp-valid-lft
433        type: u32
434      -
435        name: temp-prefered-lft
436        type: u32
437      -
438        name: regen-max-retry
439        type: u32
440      -
441        name: max-desync-factor
442        type: u32
443      -
444        name: max-addresses
445        type: u32
446      -
447        name: force-mld-version
448        type: u32
449      -
450        name: accept-ra-defrtr
451        type: u32
452      -
453        name: accept-ra-pinfo
454        type: u32
455      -
456        name: accept-ra-rtr-pref
457        type: u32
458      -
459        name: rtr-probe-interval
460        type: u32
461      -
462        name: accept-ra-rt-info-max-plen
463        type: u32
464      -
465        name: proxy-ndp
466        type: u32
467      -
468        name: optimistic-dad
469        type: u32
470      -
471        name: accept-source-route
472        type: u32
473      -
474        name: mc-forwarding
475        type: u32
476      -
477        name: disable-ipv6
478        type: u32
479      -
480        name: accept-dad
481        type: u32
482      -
483        name: force-tllao
484        type: u32
485      -
486        name: ndisc-notify
487        type: u32
488      -
489        name: mldv1-unsolicited-report-interval
490        type: u32
491      -
492        name: mldv2-unsolicited-report-interval
493        type: u32
494      -
495        name: suppress-frag-ndisc
496        type: u32
497      -
498        name: accept-ra-from-local
499        type: u32
500      -
501        name: use-optimistic
502        type: u32
503      -
504        name: accept-ra-mtu
505        type: u32
506      -
507        name: stable-secret
508        type: u32
509      -
510        name: use-oif-addrs-only
511        type: u32
512      -
513        name: accept-ra-min-hop-limit
514        type: u32
515      -
516        name: ignore-routes-with-linkdown
517        type: u32
518      -
519        name: drop-unicast-in-l2-multicast
520        type: u32
521      -
522        name: drop-unsolicited-na
523        type: u32
524      -
525        name: keep-addr-on-down
526        type: u32
527      -
528        name: rtr-solicit-max-interval
529        type: u32
530      -
531        name: seg6-enabled
532        type: u32
533      -
534        name: seg6-require-hmac
535        type: u32
536      -
537        name: enhanced-dad
538        type: u32
539      -
540        name: addr-gen-mode
541        type: u8
542      -
543        name: disable-policy
544        type: u32
545      -
546        name: accept-ra-rt-info-min-plen
547        type: u32
548      -
549        name: ndisc-tclass
550        type: u32
551      -
552        name: rpl-seg-enabled
553        type: u32
554      -
555        name: ra-defrtr-metric
556        type: u32
557      -
558        name: ioam6-enabled
559        type: u32
560      -
561        name: ioam6-id
562        type: u32
563      -
564        name: ioam6-id-wide
565        type: u32
566      -
567        name: ndisc-evict-nocarrier
568        type: u32
569      -
570        name: accept-untracked-na
571        type: u32
572  -
573    name: ifla-icmp6-stats
574    type: struct
575    members:
576      -
577        name: inmsgs
578        type: u64
579      -
580        name: inerrors
581        type: u64
582      -
583        name: outmsgs
584        type: u64
585      -
586        name: outerrors
587        type: u64
588      -
589        name: csumerrors
590        type: u64
591      -
592        name: ratelimithost
593        type: u64
594  -
595    name: ifla-inet6-stats
596    type: struct
597    members:
598      -
599        name: inpkts
600        type: u64
601      -
602        name: inoctets
603        type: u64
604      -
605        name: indelivers
606        type: u64
607      -
608        name: outforwdatagrams
609        type: u64
610      -
611        name: outpkts
612        type: u64
613      -
614        name: outoctets
615        type: u64
616      -
617        name: inhdrerrors
618        type: u64
619      -
620        name: intoobigerrors
621        type: u64
622      -
623        name: innoroutes
624        type: u64
625      -
626        name: inaddrerrors
627        type: u64
628      -
629        name: inunknownprotos
630        type: u64
631      -
632        name: intruncatedpkts
633        type: u64
634      -
635        name: indiscards
636        type: u64
637      -
638        name: outdiscards
639        type: u64
640      -
641        name: outnoroutes
642        type: u64
643      -
644        name: reasmtimeout
645        type: u64
646      -
647        name: reasmreqds
648        type: u64
649      -
650        name: reasmoks
651        type: u64
652      -
653        name: reasmfails
654        type: u64
655      -
656        name: fragoks
657        type: u64
658      -
659        name: fragfails
660        type: u64
661      -
662        name: fragcreates
663        type: u64
664      -
665        name: inmcastpkts
666        type: u64
667      -
668        name: outmcastpkts
669        type: u64
670      -
671        name: inbcastpkts
672        type: u64
673      -
674        name: outbcastpkts
675        type: u64
676      -
677        name: inmcastoctets
678        type: u64
679      -
680        name: outmcastoctets
681        type: u64
682      -
683        name: inbcastoctets
684        type: u64
685      -
686        name: outbcastoctets
687        type: u64
688      -
689        name: csumerrors
690        type: u64
691      -
692        name: noectpkts
693        type: u64
694      -
695        name: ect1-pkts
696        type: u64
697      -
698        name: ect0-pkts
699        type: u64
700      -
701        name: cepkts
702        type: u64
703      -
704        name: reasm-overlaps
705        type: u64
706  - name: br-boolopt-multi
707    type: struct
708    members:
709      -
710        name: optval
711        type: u32
712      -
713        name: optmask
714        type: u32
715  -
716    name: if_stats_msg
717    type: struct
718    members:
719      -
720        name: family
721        type: u8
722      -
723        name: pad
724        type: pad
725        len: 3
726      -
727        name: ifindex
728        type: u32
729      -
730        name: filter-mask
731        type: u32
732
733
734attribute-sets:
735  -
736    name: link-attrs
737    name-prefix: ifla-
738    attributes:
739      -
740        name: address
741        type: binary
742        display-hint: mac
743      -
744        name: broadcast
745        type: binary
746        display-hint: mac
747      -
748        name: ifname
749        type: string
750      -
751        name: mtu
752        type: u32
753      -
754        name: link
755        type: u32
756      -
757        name: qdisc
758        type: string
759      -
760        name: stats
761        type: binary
762        struct: rtnl-link-stats
763      -
764        name: cost
765        type: string
766      -
767        name: priority
768        type: string
769      -
770        name: master
771        type: u32
772      -
773        name: wireless
774        type: string
775      -
776        name: protinfo
777        type: string
778      -
779        name: txqlen
780        type: u32
781      -
782        name: map
783        type: binary
784        struct: rtnl-link-ifmap
785      -
786        name: weight
787        type: u32
788      -
789        name: operstate
790        type: u8
791      -
792        name: linkmode
793        type: u8
794      -
795        name: linkinfo
796        type: nest
797        nested-attributes: linkinfo-attrs
798      -
799        name: net-ns-pid
800        type: u32
801      -
802        name: ifalias
803        type: string
804      -
805        name: num-vf
806        type: u32
807      -
808        name: vfinfo-list
809        type: nest
810        nested-attributes: vfinfo-attrs
811      -
812        name: stats64
813        type: binary
814        struct: rtnl-link-stats64
815      -
816        name: vf-ports
817        type: nest
818        nested-attributes: vf-ports-attrs
819      -
820        name: port-self
821        type: nest
822        nested-attributes: port-self-attrs
823      -
824        name: af-spec
825        type: nest
826        nested-attributes: af-spec-attrs
827      -
828        name: group
829        type: u32
830      -
831        name: net-ns-fd
832        type: u32
833      -
834        name: ext-mask
835        type: u32
836      -
837        name: promiscuity
838        type: u32
839      -
840        name: num-tx-queues
841        type: u32
842      -
843        name: num-rx-queues
844        type: u32
845      -
846        name: carrier
847        type: u8
848      -
849        name: phys-port-id
850        type: binary
851      -
852        name: carrier-changes
853        type: u32
854      -
855        name: phys-switch-id
856        type: binary
857      -
858        name: link-netnsid
859        type: s32
860      -
861        name: phys-port-name
862        type: string
863      -
864        name: proto-down
865        type: u8
866      -
867        name: gso-max-segs
868        type: u32
869      -
870        name: gso-max-size
871        type: u32
872      -
873        name: pad
874        type: pad
875      -
876        name: xdp
877        type: nest
878        nested-attributes: xdp-attrs
879      -
880        name: event
881        type: u32
882      -
883        name: new-netnsid
884        type: s32
885      -
886        name: target-netnsid
887        type: s32
888      -
889        name: carrier-up-count
890        type: u32
891      -
892        name: carrier-down-count
893        type: u32
894      -
895        name: new-ifindex
896        type: s32
897      -
898        name: min-mtu
899        type: u32
900      -
901        name: max-mtu
902        type: u32
903      -
904        name: prop-list
905        type: nest
906        nested-attributes: link-attrs
907      -
908        name: alt-ifname
909        type: string
910        multi-attr: true
911      -
912        name: perm-address
913        type: binary
914        display-hint: mac
915      -
916        name: proto-down-reason
917        type: string
918      -
919        name: parent-dev-name
920        type: string
921      -
922        name: parent-dev-bus-name
923        type: string
924      -
925        name: gro-max-size
926        type: u32
927      -
928        name: tso-max-size
929        type: u32
930      -
931        name: tso-max-segs
932        type: u32
933      -
934        name: allmulti
935        type: u32
936      -
937        name: devlink-port
938        type: binary
939      -
940        name: gso-ipv4-max-size
941        type: u32
942      -
943        name: gro-ipv4-max-size
944        type: u32
945  -
946    name: af-spec-attrs
947    attributes:
948      -
949        name: "inet"
950        type: nest
951        value: 2
952        nested-attributes: ifla-attrs
953      -
954        name: "inet6"
955        type: nest
956        value: 10
957        nested-attributes: ifla6-attrs
958      -
959        name: "mctp"
960        type: nest
961        value: 45
962        nested-attributes: mctp-attrs
963  -
964    name: vfinfo-attrs
965    attributes: []
966  -
967    name: vf-ports-attrs
968    attributes: []
969  -
970    name: port-self-attrs
971    attributes: []
972  -
973    name: linkinfo-attrs
974    attributes:
975      -
976        name: kind
977        type: string
978      -
979        name: data
980        type: sub-message
981        sub-message: linkinfo-data-msg
982        selector: kind
983      -
984        name: xstats
985        type: binary
986      -
987        name: slave-kind
988        type: string
989      -
990        name: slave-data
991        type: sub-message
992        sub-message: linkinfo-member-data-msg
993        selector: slave-kind
994  -
995    name: linkinfo-bridge-attrs
996    name-prefix: ifla-br-
997    attributes:
998      -
999        name: forward-delay
1000        type: u32
1001      -
1002        name: hello-time
1003        type: u32
1004      -
1005        name: max-age
1006        type: u32
1007      -
1008        name: ageing-time
1009        type: u32
1010      -
1011        name: stp-state
1012        type: u32
1013      -
1014        name: priority
1015        type: u16
1016      -
1017        name: vlan-filtering
1018        type: u8
1019      -
1020        name: vlan-protocol
1021        type: u16
1022      -
1023        name: group-fwd-mask
1024        type: u16
1025      -
1026        name: root-id
1027        type: binary
1028        struct: ifla-bridge-id
1029      -
1030        name: bridge-id
1031        type: binary
1032        struct: ifla-bridge-id
1033      -
1034        name: root-port
1035        type: u16
1036      -
1037        name: root-path-cost
1038        type: u32
1039      -
1040        name: topology-change
1041        type: u8
1042      -
1043        name: topology-change-detected
1044        type: u8
1045      -
1046        name: hello-timer
1047        type: u64
1048      -
1049        name: tcn-timer
1050        type: u64
1051      -
1052        name: topology-change-timer
1053        type: u64
1054      -
1055        name: gc-timer
1056        type: u64
1057      -
1058        name: group-addr
1059        type: binary
1060        display-hint: mac
1061      -
1062        name: fdb-flush
1063        type: binary
1064      -
1065        name: mcast-router
1066        type: u8
1067      -
1068        name: mcast-snooping
1069        type: u8
1070      -
1071        name: mcast-query-use-ifaddr
1072        type: u8
1073      -
1074        name: mcast-querier
1075        type: u8
1076      -
1077        name: mcast-hash-elasticity
1078        type: u32
1079      -
1080        name: mcast-hash-max
1081        type: u32
1082      -
1083        name: mcast-last-member-cnt
1084        type: u32
1085      -
1086        name: mcast-startup-query-cnt
1087        type: u32
1088      -
1089        name: mcast-last-member-intvl
1090        type: u64
1091      -
1092        name: mcast-membership-intvl
1093        type: u64
1094      -
1095        name: mcast-querier-intvl
1096        type: u64
1097      -
1098        name: mcast-query-intvl
1099        type: u64
1100      -
1101        name: mcast-query-response-intvl
1102        type: u64
1103      -
1104        name: mcast-startup-query-intvl
1105        type: u64
1106      -
1107        name: nf-call-iptables
1108        type: u8
1109      -
1110        name: nf-call-ip6-tables
1111        type: u8
1112      -
1113        name: nf-call-arptables
1114        type: u8
1115      -
1116        name: vlan-default-pvid
1117        type: u16
1118      -
1119        name: pad
1120        type: pad
1121      -
1122        name: vlan-stats-enabled
1123        type: u8
1124      -
1125        name: mcast-stats-enabled
1126        type: u8
1127      -
1128        name: mcast-igmp-version
1129        type: u8
1130      -
1131        name: mcast-mld-version
1132        type: u8
1133      -
1134        name: vlan-stats-per-port
1135        type: u8
1136      -
1137        name: multi-boolopt
1138        type: binary
1139        struct: br-boolopt-multi
1140      -
1141        name: mcast-querier-state
1142        type: binary
1143  -
1144    name: linkinfo-brport-attrs
1145    name-prefix: ifla-brport-
1146    attributes:
1147      -
1148        name: state
1149        type: u8
1150      -
1151        name: priority
1152        type: u16
1153      -
1154        name: cost
1155        type: u32
1156      -
1157        name: mode
1158        type: flag
1159      -
1160        name: guard
1161        type: flag
1162      -
1163        name: protect
1164        type: flag
1165      -
1166        name: fast-leave
1167        type: flag
1168      -
1169        name: learning
1170        type: flag
1171      -
1172        name: unicast-flood
1173        type: flag
1174      -
1175        name: proxyarp
1176        type: flag
1177      -
1178        name: learning-sync
1179        type: flag
1180      -
1181        name: proxyarp-wifi
1182        type: flag
1183      -
1184        name: root-id
1185        type: binary
1186        struct: ifla-bridge-id
1187      -
1188        name: bridge-id
1189        type: binary
1190        struct: ifla-bridge-id
1191      -
1192        name: designated-port
1193        type: u16
1194      -
1195        name: designated-cost
1196        type: u16
1197      -
1198        name: id
1199        type: u16
1200      -
1201        name: "no"
1202        type: u16
1203      -
1204        name: topology-change-ack
1205        type: u8
1206      -
1207        name: config-pending
1208        type: u8
1209      -
1210        name: message-age-timer
1211        type: u64
1212      -
1213        name: forward-delay-timer
1214        type: u64
1215      -
1216        name: hold-timer
1217        type: u64
1218      -
1219        name: flush
1220        type: flag
1221      -
1222        name: multicast-router
1223        type: u8
1224      -
1225        name: pad
1226        type: pad
1227      -
1228        name: mcast-flood
1229        type: flag
1230      -
1231        name: mcast-to-ucast
1232        type: flag
1233      -
1234        name: vlan-tunnel
1235        type: flag
1236      -
1237        name: bcast-flood
1238        type: flag
1239      -
1240        name: group-fwd-mask
1241        type: u16
1242      -
1243        name: neigh-suppress
1244        type: flag
1245      -
1246        name: isolated
1247        type: flag
1248      -
1249        name: backup-port
1250        type: u32
1251      -
1252        name: mrp-ring-open
1253        type: flag
1254      -
1255        name: mrp-in-open
1256        type: flag
1257      -
1258        name: mcast-eht-hosts-limit
1259        type: u32
1260      -
1261        name: mcast-eht-hosts-cnt
1262        type: u32
1263      -
1264        name: locked
1265        type: flag
1266      -
1267        name: mab
1268        type: flag
1269      -
1270        name: mcast-n-groups
1271        type: u32
1272      -
1273        name: mcast-max-groups
1274        type: u32
1275      -
1276        name: neigh-vlan-suppress
1277        type: flag
1278      -
1279        name: backup-nhid
1280        type: u32
1281  -
1282    name: linkinfo-gre-attrs
1283    name-prefix: ifla-gre-
1284    attributes:
1285      -
1286        name: link
1287        type: u32
1288      -
1289        name: iflags
1290        type: u16
1291      -
1292        name: oflags
1293        type: u16
1294      -
1295        name: ikey
1296        type: u32
1297      -
1298        name: okey
1299        type: u32
1300      -
1301        name: local
1302        type: binary
1303        display-hint: ipv4
1304      -
1305        name: remote
1306        type: binary
1307        display-hint: ipv4
1308      -
1309        name: ttl
1310        type: u8
1311      -
1312        name: tos
1313        type: u8
1314      -
1315        name: pmtudisc
1316        type: u8
1317      -
1318        name: encap-limit
1319        type: u32
1320      -
1321        name: flowinfo
1322        type: u32
1323      -
1324        name: flags
1325        type: u32
1326      -
1327        name: encap-type
1328        type: u16
1329      -
1330        name: encap-flags
1331        type: u16
1332      -
1333        name: encap-sport
1334        type: u16
1335      -
1336        name: encap-dport
1337        type: u16
1338      -
1339        name: collect-metadata
1340        type: flag
1341      -
1342        name: ignore-df
1343        type: u8
1344      -
1345        name: fwmark
1346        type: u32
1347      -
1348        name: erspan-index
1349        type: u32
1350      -
1351        name: erspan-ver
1352        type: u8
1353      -
1354        name: erspan-dir
1355        type: u8
1356      -
1357        name: erspan-hwid
1358        type: u16
1359  -
1360    name: linkinfo-geneve-attrs
1361    name-prefix: ifla-geneve-
1362    attributes:
1363      -
1364        name: id
1365        type: u32
1366      -
1367        name: remote
1368        type: binary
1369        display-hint: ipv4
1370      -
1371        name: ttl
1372        type: u8
1373      -
1374        name: tos
1375        type: u8
1376      -
1377        name: port
1378        type: u16
1379      -
1380        name: collect-metadata
1381        type: flag
1382      -
1383        name: remote6
1384        type: binary
1385        display-hint: ipv6
1386      -
1387        name: udp-csum
1388        type: u8
1389      -
1390        name: udp-zero-csum6-tx
1391        type: u8
1392      -
1393        name: udp-zero-csum6-rx
1394        type: u8
1395      -
1396        name: label
1397        type: u32
1398      -
1399        name: ttl-inherit
1400        type: u8
1401      -
1402        name: df
1403        type: u8
1404      -
1405        name: inner-proto-inherit
1406        type: flag
1407  -
1408    name: linkinfo-iptun-attrs
1409    name-prefix: ifla-iptun-
1410    attributes:
1411      -
1412        name: link
1413        type: u32
1414      -
1415        name: local
1416        type: binary
1417        display-hint: ipv4
1418      -
1419        name: remote
1420        type: binary
1421        display-hint: ipv4
1422      -
1423        name: ttl
1424        type: u8
1425      -
1426        name: tos
1427        type: u8
1428      -
1429        name: encap-limit
1430        type: u8
1431      -
1432        name: flowinfo
1433        type: u32
1434      -
1435        name: flags
1436        type: u16
1437      -
1438        name: proto
1439        type: u8
1440      -
1441        name: pmtudisc
1442        type: u8
1443      -
1444        name: 6rd-prefix
1445        type: binary
1446        display-hint: ipv6
1447      -
1448        name: 6rd-relay-prefix
1449        type: binary
1450        display-hint: ipv4
1451      -
1452        name: 6rd-prefixlen
1453        type: u16
1454      -
1455        name: 6rd-relay-prefixlen
1456        type: u16
1457      -
1458        name: encap-type
1459        type: u16
1460      -
1461        name: encap-flags
1462        type: u16
1463      -
1464        name: encap-sport
1465        type: u16
1466      -
1467        name: encap-dport
1468        type: u16
1469      -
1470        name: collect-metadata
1471        type: flag
1472      -
1473        name: fwmark
1474        type: u32
1475  -
1476    name: linkinfo-tun-attrs
1477    name-prefix: ifla-tun-
1478    attributes:
1479      -
1480        name: owner
1481        type: u32
1482      -
1483        name: group
1484        type: u32
1485      -
1486        name: type
1487        type: u8
1488      -
1489        name: pi
1490        type: u8
1491      -
1492        name: vnet-hdr
1493        type: u8
1494      -
1495        name: persist
1496        type: u8
1497      -
1498        name: multi-queue
1499        type: u8
1500      -
1501        name: num-queues
1502        type: u32
1503      -
1504        name: num-disabled-queues
1505        type: u32
1506  -
1507    name: linkinfo-vrf-attrs
1508    name-prefix: ifla-vrf-
1509    attributes:
1510      -
1511        name: table
1512        type: u32
1513  -
1514    name: xdp-attrs
1515    attributes:
1516      -
1517        name: fd
1518        type: s32
1519      -
1520        name: attached
1521        type: u8
1522      -
1523        name: flags
1524        type: u32
1525      -
1526        name: prog-id
1527        type: u32
1528      -
1529        name: drv-prog-id
1530        type: u32
1531      -
1532        name: skb-prog-id
1533        type: u32
1534      -
1535        name: hw-prog-id
1536        type: u32
1537      -
1538        name: expected-fd
1539        type: s32
1540  -
1541    name: ifla-attrs
1542    attributes:
1543      -
1544        name: conf
1545        type: binary
1546        struct: ipv4-devconf
1547  -
1548    name: ifla6-attrs
1549    attributes:
1550      -
1551        name: flags
1552        type: u32
1553      -
1554        name: conf
1555        type: binary
1556        struct: ipv6-devconf
1557      -
1558        name: stats
1559        type: binary
1560        struct: ifla-inet6-stats
1561      -
1562        name: mcast
1563        type: binary
1564      -
1565        name: cacheinfo
1566        type: binary
1567        struct: ifla-cacheinfo
1568      -
1569        name: icmp6-stats
1570        type: binary
1571        struct: ifla-icmp6-stats
1572      -
1573        name: token
1574        type: binary
1575      -
1576        name: addr-gen-mode
1577        type: u8
1578      -
1579        name: ra-mtu
1580        type: u32
1581  -
1582    name: mctp-attrs
1583    attributes:
1584      -
1585        name: mctp-net
1586        type: u32
1587  -
1588    name: stats-attrs
1589    name-prefix: ifla-stats-
1590    attributes:
1591      -
1592        name: link-64
1593        type: binary
1594        struct: rtnl-link-stats64
1595      -
1596        name: link-xstats
1597        type: binary
1598      -
1599        name: link-xstats-slave
1600        type: binary
1601      -
1602        name: link-offload-xstats
1603        type: nest
1604        nested-attributes: link-offload-xstats
1605      -
1606        name: af-spec
1607        type: binary
1608  -
1609    name: link-offload-xstats
1610    attributes:
1611      -
1612        name: cpu-hit
1613        type: binary
1614      -
1615        name: hw-s-info
1616        type: array-nest
1617        nested-attributes: hw-s-info-one
1618      -
1619        name: l3-stats
1620        type: binary
1621  -
1622    name: hw-s-info-one
1623    attributes:
1624      -
1625        name: request
1626        type: u8
1627      -
1628        name: used
1629        type: u8
1630
1631sub-messages:
1632  -
1633    name: linkinfo-data-msg
1634    formats:
1635      -
1636        value: bridge
1637        attribute-set: linkinfo-bridge-attrs
1638      -
1639        value: erspan
1640        attribute-set: linkinfo-gre-attrs
1641      -
1642        value: gre
1643        attribute-set: linkinfo-gre-attrs
1644      -
1645        value: gretap
1646        attribute-set: linkinfo-gre-attrs
1647      -
1648        value: geneve
1649        attribute-set: linkinfo-geneve-attrs
1650      -
1651        value: ipip
1652        attribute-set: linkinfo-iptun-attrs
1653      -
1654        value: sit
1655        attribute-set: linkinfo-iptun-attrs
1656      -
1657        value: tun
1658        attribute-set: linkinfo-tun-attrs
1659      -
1660        value: vrf
1661        attribute-set: linkinfo-vrf-attrs
1662  -
1663    name: linkinfo-member-data-msg
1664    formats:
1665      -
1666        value: bridge
1667        attribute-set: linkinfo-brport-attrs
1668      -
1669        value: bond
1670
1671operations:
1672  enum-model: directional
1673  list:
1674    -
1675      name: newlink
1676      doc: Create a new link.
1677      attribute-set: link-attrs
1678      fixed-header: ifinfomsg
1679      do:
1680        request:
1681          value: 16
1682          attributes: &link-new-attrs
1683            - ifi-index
1684            - ifname
1685            - net-ns-pid
1686            - net-ns-fd
1687            - target-netnsid
1688            - link-netnsid
1689            - linkinfo
1690            - group
1691            - num-tx-queues
1692            - num-rx-queues
1693            - address
1694            - broadcast
1695            - mtu
1696            - txqlen
1697            - operstate
1698            - linkmode
1699            - group
1700            - gso-max-size
1701            - gso-max-segs
1702            - gro-max-size
1703            - gso-ipv4-max-size
1704            - gro-ipv4-max-size
1705            - af-spec
1706    -
1707      name: dellink
1708      doc: Delete an existing link.
1709      attribute-set: link-attrs
1710      fixed-header: ifinfomsg
1711      do:
1712        request:
1713          value: 17
1714          attributes:
1715            - ifi-index
1716            - ifname
1717    -
1718      name: getlink
1719      doc: Get / dump information about a link.
1720      attribute-set: link-attrs
1721      fixed-header: ifinfomsg
1722      do:
1723        request:
1724          value: 18
1725          attributes:
1726            - ifi-index
1727            - ifname
1728            - alt-ifname
1729            - ext-mask
1730            - target-netnsid
1731        reply:
1732          value: 16
1733          attributes: &link-all-attrs
1734            - ifi-family
1735            - ifi-type
1736            - ifi-index
1737            - ifi-flags
1738            - ifi-change
1739            - address
1740            - broadcast
1741            - ifname
1742            - mtu
1743            - link
1744            - qdisc
1745            - stats
1746            - cost
1747            - priority
1748            - master
1749            - wireless
1750            - protinfo
1751            - txqlen
1752            - map
1753            - weight
1754            - operstate
1755            - linkmode
1756            - linkinfo
1757            - net-ns-pid
1758            - ifalias
1759            - num-vf
1760            - vfinfo-list
1761            - stats64
1762            - vf-ports
1763            - port-self
1764            - af-spec
1765            - group
1766            - net-ns-fd
1767            - ext-mask
1768            - promiscuity
1769            - num-tx-queues
1770            - num-rx-queues
1771            - carrier
1772            - phys-port-id
1773            - carrier-changes
1774            - phys-switch-id
1775            - link-netnsid
1776            - phys-port-name
1777            - proto-down
1778            - gso-max-segs
1779            - gso-max-size
1780            - pad
1781            - xdp
1782            - event
1783            - new-netnsid
1784            - if-netnsid
1785            - target-netnsid
1786            - carrier-up-count
1787            - carrier-down-count
1788            - new-ifindex
1789            - min-mtu
1790            - max-mtu
1791            - prop-list
1792            - alt-ifname
1793            - perm-address
1794            - proto-down-reason
1795            - parent-dev-name
1796            - parent-dev-bus-name
1797            - gro-max-size
1798            - tso-max-size
1799            - tso-max-segs
1800            - allmulti
1801            - devlink-port
1802            - gso-ipv4-max-size
1803            - gro-ipv4-max-size
1804      dump:
1805        request:
1806          value: 18
1807          attributes:
1808            - target-netnsid
1809            - ext-mask
1810            - master
1811            - linkinfo
1812        reply:
1813          value: 16
1814          attributes: *link-all-attrs
1815    -
1816      name: setlink
1817      doc: Set information about a link.
1818      attribute-set: link-attrs
1819      fixed-header: ifinfomsg
1820      do:
1821        request:
1822          value: 19
1823          attributes: *link-all-attrs
1824    -
1825      name: getstats
1826      doc: Get / dump link stats.
1827      attribute-set: stats-attrs
1828      fixed-header: if_stats_msg
1829      do:
1830        request:
1831          value: 94
1832          attributes:
1833            - ifindex
1834        reply:
1835          value: 92
1836          attributes: &link-stats-attrs
1837            - family
1838            - ifindex
1839            - filter-mask
1840            - link-64
1841            - link-xstats
1842            - link-xstats-slave
1843            - link-offload-xstats
1844            - af-spec
1845      dump:
1846        request:
1847          value: 94
1848        reply:
1849          value: 92
1850          attributes: *link-stats-attrs
1851
1852mcast-groups:
1853  list:
1854    -
1855      name: rtnlgrp-link
1856      value: 1
1857    -
1858      name: rtnlgrp-stats
1859      value: 36
1860