1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_IF_LINK_H
20 #define _UAPI_LINUX_IF_LINK_H
21 #include <linux/types.h>
22 #include <linux/netlink.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 struct rtnl_link_stats {
25   __u32 rx_packets;
26   __u32 tx_packets;
27   __u32 rx_bytes;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   __u32 tx_bytes;
30   __u32 rx_errors;
31   __u32 tx_errors;
32   __u32 rx_dropped;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __u32 tx_dropped;
35   __u32 multicast;
36   __u32 collisions;
37   __u32 rx_length_errors;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __u32 rx_over_errors;
40   __u32 rx_crc_errors;
41   __u32 rx_frame_errors;
42   __u32 rx_fifo_errors;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   __u32 rx_missed_errors;
45   __u32 tx_aborted_errors;
46   __u32 tx_carrier_errors;
47   __u32 tx_fifo_errors;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   __u32 tx_heartbeat_errors;
50   __u32 tx_window_errors;
51   __u32 rx_compressed;
52   __u32 tx_compressed;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 };
55 struct rtnl_link_stats64 {
56   __u64 rx_packets;
57   __u64 tx_packets;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   __u64 rx_bytes;
60   __u64 tx_bytes;
61   __u64 rx_errors;
62   __u64 tx_errors;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   __u64 rx_dropped;
65   __u64 tx_dropped;
66   __u64 multicast;
67   __u64 collisions;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   __u64 rx_length_errors;
70   __u64 rx_over_errors;
71   __u64 rx_crc_errors;
72   __u64 rx_frame_errors;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   __u64 rx_fifo_errors;
75   __u64 rx_missed_errors;
76   __u64 tx_aborted_errors;
77   __u64 tx_carrier_errors;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   __u64 tx_fifo_errors;
80   __u64 tx_heartbeat_errors;
81   __u64 tx_window_errors;
82   __u64 rx_compressed;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84   __u64 tx_compressed;
85 };
86 struct rtnl_link_ifmap {
87   __u64 mem_start;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   __u64 mem_end;
90   __u64 base_addr;
91   __u16 irq;
92   __u8 dma;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   __u8 port;
95 };
96 enum {
97   IFLA_UNSPEC,
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99   IFLA_ADDRESS,
100   IFLA_BROADCAST,
101   IFLA_IFNAME,
102   IFLA_MTU,
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104   IFLA_LINK,
105   IFLA_QDISC,
106   IFLA_STATS,
107   IFLA_COST,
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define IFLA_COST IFLA_COST
110   IFLA_PRIORITY,
111 #define IFLA_PRIORITY IFLA_PRIORITY
112   IFLA_MASTER,
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define IFLA_MASTER IFLA_MASTER
115   IFLA_WIRELESS,
116 #define IFLA_WIRELESS IFLA_WIRELESS
117   IFLA_PROTINFO,
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define IFLA_PROTINFO IFLA_PROTINFO
120   IFLA_TXQLEN,
121 #define IFLA_TXQLEN IFLA_TXQLEN
122   IFLA_MAP,
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define IFLA_MAP IFLA_MAP
125   IFLA_WEIGHT,
126 #define IFLA_WEIGHT IFLA_WEIGHT
127   IFLA_OPERSTATE,
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129   IFLA_LINKMODE,
130   IFLA_LINKINFO,
131 #define IFLA_LINKINFO IFLA_LINKINFO
132   IFLA_NET_NS_PID,
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134   IFLA_IFALIAS,
135   IFLA_NUM_VF,
136   IFLA_VFINFO_LIST,
137   IFLA_STATS64,
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   IFLA_VF_PORTS,
140   IFLA_PORT_SELF,
141   IFLA_AF_SPEC,
142   IFLA_GROUP,
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144   IFLA_NET_NS_FD,
145   IFLA_EXT_MASK,
146   IFLA_PROMISCUITY,
147 #define IFLA_PROMISCUITY IFLA_PROMISCUITY
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149   IFLA_NUM_TX_QUEUES,
150   IFLA_NUM_RX_QUEUES,
151   IFLA_CARRIER,
152   IFLA_PHYS_PORT_ID,
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154   IFLA_CARRIER_CHANGES,
155   __IFLA_MAX
156 };
157 #define IFLA_MAX (__IFLA_MAX - 1)
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 #define IFLA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
160 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct ifinfomsg))
161 enum {
162   IFLA_INET_UNSPEC,
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164   IFLA_INET_CONF,
165   __IFLA_INET_MAX,
166 };
167 #define IFLA_INET_MAX (__IFLA_INET_MAX - 1)
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 enum {
170   IFLA_INET6_UNSPEC,
171   IFLA_INET6_FLAGS,
172   IFLA_INET6_CONF,
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174   IFLA_INET6_STATS,
175   IFLA_INET6_MCAST,
176   IFLA_INET6_CACHEINFO,
177   IFLA_INET6_ICMP6STATS,
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179   IFLA_INET6_TOKEN,
180   IFLA_INET6_ADDR_GEN_MODE,
181   __IFLA_INET6_MAX
182 };
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 #define IFLA_INET6_MAX (__IFLA_INET6_MAX - 1)
185 enum in6_addr_gen_mode {
186   IN6_ADDR_GEN_MODE_EUI64,
187   IN6_ADDR_GEN_MODE_NONE,
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 };
190 enum {
191   IFLA_BR_UNSPEC,
192   IFLA_BR_FORWARD_DELAY,
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194   IFLA_BR_HELLO_TIME,
195   IFLA_BR_MAX_AGE,
196   __IFLA_BR_MAX,
197 };
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 #define IFLA_BR_MAX (__IFLA_BR_MAX - 1)
200 enum {
201   BRIDGE_MODE_UNSPEC,
202   BRIDGE_MODE_HAIRPIN,
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 };
205 enum {
206   IFLA_BRPORT_UNSPEC,
207   IFLA_BRPORT_STATE,
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209   IFLA_BRPORT_PRIORITY,
210   IFLA_BRPORT_COST,
211   IFLA_BRPORT_MODE,
212   IFLA_BRPORT_GUARD,
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214   IFLA_BRPORT_PROTECT,
215   IFLA_BRPORT_FAST_LEAVE,
216   IFLA_BRPORT_LEARNING,
217   IFLA_BRPORT_UNICAST_FLOOD,
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219   __IFLA_BRPORT_MAX
220 };
221 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
222 struct ifla_cacheinfo {
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224   __u32 max_reasm_len;
225   __u32 tstamp;
226   __u32 reachable_time;
227   __u32 retrans_time;
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 };
230 enum {
231   IFLA_INFO_UNSPEC,
232   IFLA_INFO_KIND,
233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234   IFLA_INFO_DATA,
235   IFLA_INFO_XSTATS,
236   IFLA_INFO_SLAVE_KIND,
237   IFLA_INFO_SLAVE_DATA,
238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239   __IFLA_INFO_MAX,
240 };
241 #define IFLA_INFO_MAX (__IFLA_INFO_MAX - 1)
242 enum {
243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244   IFLA_VLAN_UNSPEC,
245   IFLA_VLAN_ID,
246   IFLA_VLAN_FLAGS,
247   IFLA_VLAN_EGRESS_QOS,
248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249   IFLA_VLAN_INGRESS_QOS,
250   IFLA_VLAN_PROTOCOL,
251   __IFLA_VLAN_MAX,
252 };
253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 #define IFLA_VLAN_MAX (__IFLA_VLAN_MAX - 1)
255 struct ifla_vlan_flags {
256   __u32 flags;
257   __u32 mask;
258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259 };
260 enum {
261   IFLA_VLAN_QOS_UNSPEC,
262   IFLA_VLAN_QOS_MAPPING,
263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264   __IFLA_VLAN_QOS_MAX
265 };
266 #define IFLA_VLAN_QOS_MAX (__IFLA_VLAN_QOS_MAX - 1)
267 struct ifla_vlan_qos_mapping {
268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269   __u32 from;
270   __u32 to;
271 };
272 enum {
273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274   IFLA_MACVLAN_UNSPEC,
275   IFLA_MACVLAN_MODE,
276   IFLA_MACVLAN_FLAGS,
277   IFLA_MACVLAN_MACADDR_MODE,
278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279   IFLA_MACVLAN_MACADDR,
280   IFLA_MACVLAN_MACADDR_DATA,
281   IFLA_MACVLAN_MACADDR_COUNT,
282   __IFLA_MACVLAN_MAX,
283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 };
285 #define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1)
286 enum macvlan_mode {
287   MACVLAN_MODE_PRIVATE = 1,
288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289   MACVLAN_MODE_VEPA = 2,
290   MACVLAN_MODE_BRIDGE = 4,
291   MACVLAN_MODE_PASSTHRU = 8,
292   MACVLAN_MODE_SOURCE = 16,
293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 };
295 enum macvlan_macaddr_mode {
296   MACVLAN_MACADDR_ADD,
297   MACVLAN_MACADDR_DEL,
298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299   MACVLAN_MACADDR_FLUSH,
300   MACVLAN_MACADDR_SET,
301 };
302 #define MACVLAN_FLAG_NOPROMISC 1
303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 enum {
305   IFLA_VXLAN_UNSPEC,
306   IFLA_VXLAN_ID,
307   IFLA_VXLAN_GROUP,
308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309   IFLA_VXLAN_LINK,
310   IFLA_VXLAN_LOCAL,
311   IFLA_VXLAN_TTL,
312   IFLA_VXLAN_TOS,
313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314   IFLA_VXLAN_LEARNING,
315   IFLA_VXLAN_AGEING,
316   IFLA_VXLAN_LIMIT,
317   IFLA_VXLAN_PORT_RANGE,
318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319   IFLA_VXLAN_PROXY,
320   IFLA_VXLAN_RSC,
321   IFLA_VXLAN_L2MISS,
322   IFLA_VXLAN_L3MISS,
323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324   IFLA_VXLAN_PORT,
325   IFLA_VXLAN_GROUP6,
326   IFLA_VXLAN_LOCAL6,
327   IFLA_VXLAN_UDP_CSUM,
328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329   IFLA_VXLAN_UDP_ZERO_CSUM6_TX,
330   IFLA_VXLAN_UDP_ZERO_CSUM6_RX,
331   __IFLA_VXLAN_MAX
332 };
333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334 #define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1)
335 struct ifla_vxlan_port_range {
336   __be16 low;
337   __be16 high;
338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 };
340 enum {
341   IFLA_BOND_UNSPEC,
342   IFLA_BOND_MODE,
343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344   IFLA_BOND_ACTIVE_SLAVE,
345   IFLA_BOND_MIIMON,
346   IFLA_BOND_UPDELAY,
347   IFLA_BOND_DOWNDELAY,
348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349   IFLA_BOND_USE_CARRIER,
350   IFLA_BOND_ARP_INTERVAL,
351   IFLA_BOND_ARP_IP_TARGET,
352   IFLA_BOND_ARP_VALIDATE,
353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354   IFLA_BOND_ARP_ALL_TARGETS,
355   IFLA_BOND_PRIMARY,
356   IFLA_BOND_PRIMARY_RESELECT,
357   IFLA_BOND_FAIL_OVER_MAC,
358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359   IFLA_BOND_XMIT_HASH_POLICY,
360   IFLA_BOND_RESEND_IGMP,
361   IFLA_BOND_NUM_PEER_NOTIF,
362   IFLA_BOND_ALL_SLAVES_ACTIVE,
363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364   IFLA_BOND_MIN_LINKS,
365   IFLA_BOND_LP_INTERVAL,
366   IFLA_BOND_PACKETS_PER_SLAVE,
367   IFLA_BOND_AD_LACP_RATE,
368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369   IFLA_BOND_AD_SELECT,
370   IFLA_BOND_AD_INFO,
371   __IFLA_BOND_MAX,
372 };
373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 #define IFLA_BOND_MAX (__IFLA_BOND_MAX - 1)
375 enum {
376   IFLA_BOND_AD_INFO_UNSPEC,
377   IFLA_BOND_AD_INFO_AGGREGATOR,
378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379   IFLA_BOND_AD_INFO_NUM_PORTS,
380   IFLA_BOND_AD_INFO_ACTOR_KEY,
381   IFLA_BOND_AD_INFO_PARTNER_KEY,
382   IFLA_BOND_AD_INFO_PARTNER_MAC,
383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384   __IFLA_BOND_AD_INFO_MAX,
385 };
386 #define IFLA_BOND_AD_INFO_MAX (__IFLA_BOND_AD_INFO_MAX - 1)
387 enum {
388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389   IFLA_BOND_SLAVE_UNSPEC,
390   IFLA_BOND_SLAVE_STATE,
391   IFLA_BOND_SLAVE_MII_STATUS,
392   IFLA_BOND_SLAVE_LINK_FAILURE_COUNT,
393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394   IFLA_BOND_SLAVE_PERM_HWADDR,
395   IFLA_BOND_SLAVE_QUEUE_ID,
396   IFLA_BOND_SLAVE_AD_AGGREGATOR_ID,
397   __IFLA_BOND_SLAVE_MAX,
398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 };
400 #define IFLA_BOND_SLAVE_MAX (__IFLA_BOND_SLAVE_MAX - 1)
401 enum {
402   IFLA_VF_INFO_UNSPEC,
403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404   IFLA_VF_INFO,
405   __IFLA_VF_INFO_MAX,
406 };
407 #define IFLA_VF_INFO_MAX (__IFLA_VF_INFO_MAX - 1)
408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409 enum {
410   IFLA_VF_UNSPEC,
411   IFLA_VF_MAC,
412   IFLA_VF_VLAN,
413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414   IFLA_VF_TX_RATE,
415   IFLA_VF_SPOOFCHK,
416   IFLA_VF_LINK_STATE,
417   IFLA_VF_RATE,
418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419   __IFLA_VF_MAX,
420 };
421 #define IFLA_VF_MAX (__IFLA_VF_MAX - 1)
422 struct ifla_vf_mac {
423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
424   __u32 vf;
425   __u8 mac[32];
426 };
427 struct ifla_vf_vlan {
428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
429   __u32 vf;
430   __u32 vlan;
431   __u32 qos;
432 };
433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
434 struct ifla_vf_tx_rate {
435   __u32 vf;
436   __u32 rate;
437 };
438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439 struct ifla_vf_rate {
440   __u32 vf;
441   __u32 min_tx_rate;
442   __u32 max_tx_rate;
443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444 };
445 struct ifla_vf_spoofchk {
446   __u32 vf;
447   __u32 setting;
448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
449 };
450 enum {
451   IFLA_VF_LINK_STATE_AUTO,
452   IFLA_VF_LINK_STATE_ENABLE,
453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
454   IFLA_VF_LINK_STATE_DISABLE,
455   __IFLA_VF_LINK_STATE_MAX,
456 };
457 struct ifla_vf_link_state {
458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459   __u32 vf;
460   __u32 link_state;
461 };
462 enum {
463 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464   IFLA_VF_PORT_UNSPEC,
465   IFLA_VF_PORT,
466   __IFLA_VF_PORT_MAX,
467 };
468 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469 #define IFLA_VF_PORT_MAX (__IFLA_VF_PORT_MAX - 1)
470 enum {
471   IFLA_PORT_UNSPEC,
472   IFLA_PORT_VF,
473 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474   IFLA_PORT_PROFILE,
475   IFLA_PORT_VSI_TYPE,
476   IFLA_PORT_INSTANCE_UUID,
477   IFLA_PORT_HOST_UUID,
478 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479   IFLA_PORT_REQUEST,
480   IFLA_PORT_RESPONSE,
481   __IFLA_PORT_MAX,
482 };
483 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484 #define IFLA_PORT_MAX (__IFLA_PORT_MAX - 1)
485 #define PORT_PROFILE_MAX 40
486 #define PORT_UUID_MAX 16
487 #define PORT_SELF_VF - 1
488 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489 enum {
490   PORT_REQUEST_PREASSOCIATE = 0,
491   PORT_REQUEST_PREASSOCIATE_RR,
492   PORT_REQUEST_ASSOCIATE,
493 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494   PORT_REQUEST_DISASSOCIATE,
495 };
496 enum {
497   PORT_VDP_RESPONSE_SUCCESS = 0,
498 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499   PORT_VDP_RESPONSE_INVALID_FORMAT,
500   PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES,
501   PORT_VDP_RESPONSE_UNUSED_VTID,
502   PORT_VDP_RESPONSE_VTID_VIOLATION,
503 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504   PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION,
505   PORT_VDP_RESPONSE_OUT_OF_SYNC,
506   PORT_PROFILE_RESPONSE_SUCCESS = 0x100,
507   PORT_PROFILE_RESPONSE_INPROGRESS,
508 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
509   PORT_PROFILE_RESPONSE_INVALID,
510   PORT_PROFILE_RESPONSE_BADSTATE,
511   PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES,
512   PORT_PROFILE_RESPONSE_ERROR,
513 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
514 };
515 struct ifla_port_vsi {
516   __u8 vsi_mgr_id;
517   __u8 vsi_type_id[3];
518 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
519   __u8 vsi_type_version;
520   __u8 pad[3];
521 };
522 enum {
523 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524   IFLA_IPOIB_UNSPEC,
525   IFLA_IPOIB_PKEY,
526   IFLA_IPOIB_MODE,
527   IFLA_IPOIB_UMCAST,
528 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
529   __IFLA_IPOIB_MAX
530 };
531 enum {
532   IPOIB_MODE_DATAGRAM = 0,
533 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534   IPOIB_MODE_CONNECTED = 1,
535 };
536 #define IFLA_IPOIB_MAX (__IFLA_IPOIB_MAX - 1)
537 enum {
538 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539   IFLA_HSR_UNSPEC,
540   IFLA_HSR_SLAVE1,
541   IFLA_HSR_SLAVE2,
542   IFLA_HSR_MULTICAST_SPEC,
543 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544   IFLA_HSR_SUPERVISION_ADDR,
545   IFLA_HSR_SEQ_NR,
546   __IFLA_HSR_MAX,
547 };
548 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
549 #define IFLA_HSR_MAX (__IFLA_HSR_MAX - 1)
550 #endif
551