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 struct rtnl_link_stats { 24 __u32 rx_packets; 25 __u32 tx_packets; 26 __u32 rx_bytes; 27 __u32 tx_bytes; 28 __u32 rx_errors; 29 __u32 tx_errors; 30 __u32 rx_dropped; 31 __u32 tx_dropped; 32 __u32 multicast; 33 __u32 collisions; 34 __u32 rx_length_errors; 35 __u32 rx_over_errors; 36 __u32 rx_crc_errors; 37 __u32 rx_frame_errors; 38 __u32 rx_fifo_errors; 39 __u32 rx_missed_errors; 40 __u32 tx_aborted_errors; 41 __u32 tx_carrier_errors; 42 __u32 tx_fifo_errors; 43 __u32 tx_heartbeat_errors; 44 __u32 tx_window_errors; 45 __u32 rx_compressed; 46 __u32 tx_compressed; 47 __u32 rx_nohandler; 48 }; 49 struct rtnl_link_stats64 { 50 __u64 rx_packets; 51 __u64 tx_packets; 52 __u64 rx_bytes; 53 __u64 tx_bytes; 54 __u64 rx_errors; 55 __u64 tx_errors; 56 __u64 rx_dropped; 57 __u64 tx_dropped; 58 __u64 multicast; 59 __u64 collisions; 60 __u64 rx_length_errors; 61 __u64 rx_over_errors; 62 __u64 rx_crc_errors; 63 __u64 rx_frame_errors; 64 __u64 rx_fifo_errors; 65 __u64 rx_missed_errors; 66 __u64 tx_aborted_errors; 67 __u64 tx_carrier_errors; 68 __u64 tx_fifo_errors; 69 __u64 tx_heartbeat_errors; 70 __u64 tx_window_errors; 71 __u64 rx_compressed; 72 __u64 tx_compressed; 73 __u64 rx_nohandler; 74 }; 75 struct rtnl_link_ifmap { 76 __u64 mem_start; 77 __u64 mem_end; 78 __u64 base_addr; 79 __u16 irq; 80 __u8 dma; 81 __u8 port; 82 }; 83 enum { 84 IFLA_UNSPEC, 85 IFLA_ADDRESS, 86 IFLA_BROADCAST, 87 IFLA_IFNAME, 88 IFLA_MTU, 89 IFLA_LINK, 90 IFLA_QDISC, 91 IFLA_STATS, 92 IFLA_COST, 93 #define IFLA_COST IFLA_COST 94 IFLA_PRIORITY, 95 #define IFLA_PRIORITY IFLA_PRIORITY 96 IFLA_MASTER, 97 #define IFLA_MASTER IFLA_MASTER 98 IFLA_WIRELESS, 99 #define IFLA_WIRELESS IFLA_WIRELESS 100 IFLA_PROTINFO, 101 #define IFLA_PROTINFO IFLA_PROTINFO 102 IFLA_TXQLEN, 103 #define IFLA_TXQLEN IFLA_TXQLEN 104 IFLA_MAP, 105 #define IFLA_MAP IFLA_MAP 106 IFLA_WEIGHT, 107 #define IFLA_WEIGHT IFLA_WEIGHT 108 IFLA_OPERSTATE, 109 IFLA_LINKMODE, 110 IFLA_LINKINFO, 111 #define IFLA_LINKINFO IFLA_LINKINFO 112 IFLA_NET_NS_PID, 113 IFLA_IFALIAS, 114 IFLA_NUM_VF, 115 IFLA_VFINFO_LIST, 116 IFLA_STATS64, 117 IFLA_VF_PORTS, 118 IFLA_PORT_SELF, 119 IFLA_AF_SPEC, 120 IFLA_GROUP, 121 IFLA_NET_NS_FD, 122 IFLA_EXT_MASK, 123 IFLA_PROMISCUITY, 124 #define IFLA_PROMISCUITY IFLA_PROMISCUITY 125 IFLA_NUM_TX_QUEUES, 126 IFLA_NUM_RX_QUEUES, 127 IFLA_CARRIER, 128 IFLA_PHYS_PORT_ID, 129 IFLA_CARRIER_CHANGES, 130 IFLA_PHYS_SWITCH_ID, 131 IFLA_LINK_NETNSID, 132 IFLA_PHYS_PORT_NAME, 133 IFLA_PROTO_DOWN, 134 IFLA_GSO_MAX_SEGS, 135 IFLA_GSO_MAX_SIZE, 136 IFLA_PAD, 137 IFLA_XDP, 138 IFLA_EVENT, 139 IFLA_NEW_NETNSID, 140 IFLA_IF_NETNSID, 141 IFLA_TARGET_NETNSID = IFLA_IF_NETNSID, 142 IFLA_CARRIER_UP_COUNT, 143 IFLA_CARRIER_DOWN_COUNT, 144 IFLA_NEW_IFINDEX, 145 IFLA_MIN_MTU, 146 IFLA_MAX_MTU, 147 __IFLA_MAX 148 }; 149 #define IFLA_MAX (__IFLA_MAX - 1) 150 #define IFLA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) 151 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct ifinfomsg)) 152 enum { 153 IFLA_INET_UNSPEC, 154 IFLA_INET_CONF, 155 __IFLA_INET_MAX, 156 }; 157 #define IFLA_INET_MAX (__IFLA_INET_MAX - 1) 158 enum { 159 IFLA_INET6_UNSPEC, 160 IFLA_INET6_FLAGS, 161 IFLA_INET6_CONF, 162 IFLA_INET6_STATS, 163 IFLA_INET6_MCAST, 164 IFLA_INET6_CACHEINFO, 165 IFLA_INET6_ICMP6STATS, 166 IFLA_INET6_TOKEN, 167 IFLA_INET6_ADDR_GEN_MODE, 168 __IFLA_INET6_MAX 169 }; 170 #define IFLA_INET6_MAX (__IFLA_INET6_MAX - 1) 171 enum in6_addr_gen_mode { 172 IN6_ADDR_GEN_MODE_EUI64, 173 IN6_ADDR_GEN_MODE_NONE, 174 IN6_ADDR_GEN_MODE_STABLE_PRIVACY, 175 IN6_ADDR_GEN_MODE_RANDOM, 176 }; 177 enum { 178 IFLA_BR_UNSPEC, 179 IFLA_BR_FORWARD_DELAY, 180 IFLA_BR_HELLO_TIME, 181 IFLA_BR_MAX_AGE, 182 IFLA_BR_AGEING_TIME, 183 IFLA_BR_STP_STATE, 184 IFLA_BR_PRIORITY, 185 IFLA_BR_VLAN_FILTERING, 186 IFLA_BR_VLAN_PROTOCOL, 187 IFLA_BR_GROUP_FWD_MASK, 188 IFLA_BR_ROOT_ID, 189 IFLA_BR_BRIDGE_ID, 190 IFLA_BR_ROOT_PORT, 191 IFLA_BR_ROOT_PATH_COST, 192 IFLA_BR_TOPOLOGY_CHANGE, 193 IFLA_BR_TOPOLOGY_CHANGE_DETECTED, 194 IFLA_BR_HELLO_TIMER, 195 IFLA_BR_TCN_TIMER, 196 IFLA_BR_TOPOLOGY_CHANGE_TIMER, 197 IFLA_BR_GC_TIMER, 198 IFLA_BR_GROUP_ADDR, 199 IFLA_BR_FDB_FLUSH, 200 IFLA_BR_MCAST_ROUTER, 201 IFLA_BR_MCAST_SNOOPING, 202 IFLA_BR_MCAST_QUERY_USE_IFADDR, 203 IFLA_BR_MCAST_QUERIER, 204 IFLA_BR_MCAST_HASH_ELASTICITY, 205 IFLA_BR_MCAST_HASH_MAX, 206 IFLA_BR_MCAST_LAST_MEMBER_CNT, 207 IFLA_BR_MCAST_STARTUP_QUERY_CNT, 208 IFLA_BR_MCAST_LAST_MEMBER_INTVL, 209 IFLA_BR_MCAST_MEMBERSHIP_INTVL, 210 IFLA_BR_MCAST_QUERIER_INTVL, 211 IFLA_BR_MCAST_QUERY_INTVL, 212 IFLA_BR_MCAST_QUERY_RESPONSE_INTVL, 213 IFLA_BR_MCAST_STARTUP_QUERY_INTVL, 214 IFLA_BR_NF_CALL_IPTABLES, 215 IFLA_BR_NF_CALL_IP6TABLES, 216 IFLA_BR_NF_CALL_ARPTABLES, 217 IFLA_BR_VLAN_DEFAULT_PVID, 218 IFLA_BR_PAD, 219 IFLA_BR_VLAN_STATS_ENABLED, 220 IFLA_BR_MCAST_STATS_ENABLED, 221 IFLA_BR_MCAST_IGMP_VERSION, 222 IFLA_BR_MCAST_MLD_VERSION, 223 IFLA_BR_VLAN_STATS_PER_PORT, 224 IFLA_BR_MULTI_BOOLOPT, 225 __IFLA_BR_MAX, 226 }; 227 #define IFLA_BR_MAX (__IFLA_BR_MAX - 1) 228 struct ifla_bridge_id { 229 __u8 prio[2]; 230 __u8 addr[6]; 231 }; 232 enum { 233 BRIDGE_MODE_UNSPEC, 234 BRIDGE_MODE_HAIRPIN, 235 }; 236 enum { 237 IFLA_BRPORT_UNSPEC, 238 IFLA_BRPORT_STATE, 239 IFLA_BRPORT_PRIORITY, 240 IFLA_BRPORT_COST, 241 IFLA_BRPORT_MODE, 242 IFLA_BRPORT_GUARD, 243 IFLA_BRPORT_PROTECT, 244 IFLA_BRPORT_FAST_LEAVE, 245 IFLA_BRPORT_LEARNING, 246 IFLA_BRPORT_UNICAST_FLOOD, 247 IFLA_BRPORT_PROXYARP, 248 IFLA_BRPORT_LEARNING_SYNC, 249 IFLA_BRPORT_PROXYARP_WIFI, 250 IFLA_BRPORT_ROOT_ID, 251 IFLA_BRPORT_BRIDGE_ID, 252 IFLA_BRPORT_DESIGNATED_PORT, 253 IFLA_BRPORT_DESIGNATED_COST, 254 IFLA_BRPORT_ID, 255 IFLA_BRPORT_NO, 256 IFLA_BRPORT_TOPOLOGY_CHANGE_ACK, 257 IFLA_BRPORT_CONFIG_PENDING, 258 IFLA_BRPORT_MESSAGE_AGE_TIMER, 259 IFLA_BRPORT_FORWARD_DELAY_TIMER, 260 IFLA_BRPORT_HOLD_TIMER, 261 IFLA_BRPORT_FLUSH, 262 IFLA_BRPORT_MULTICAST_ROUTER, 263 IFLA_BRPORT_PAD, 264 IFLA_BRPORT_MCAST_FLOOD, 265 IFLA_BRPORT_MCAST_TO_UCAST, 266 IFLA_BRPORT_VLAN_TUNNEL, 267 IFLA_BRPORT_BCAST_FLOOD, 268 IFLA_BRPORT_GROUP_FWD_MASK, 269 IFLA_BRPORT_NEIGH_SUPPRESS, 270 IFLA_BRPORT_ISOLATED, 271 IFLA_BRPORT_BACKUP_PORT, 272 __IFLA_BRPORT_MAX 273 }; 274 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) 275 struct ifla_cacheinfo { 276 __u32 max_reasm_len; 277 __u32 tstamp; 278 __u32 reachable_time; 279 __u32 retrans_time; 280 }; 281 enum { 282 IFLA_INFO_UNSPEC, 283 IFLA_INFO_KIND, 284 IFLA_INFO_DATA, 285 IFLA_INFO_XSTATS, 286 IFLA_INFO_SLAVE_KIND, 287 IFLA_INFO_SLAVE_DATA, 288 __IFLA_INFO_MAX, 289 }; 290 #define IFLA_INFO_MAX (__IFLA_INFO_MAX - 1) 291 enum { 292 IFLA_VLAN_UNSPEC, 293 IFLA_VLAN_ID, 294 IFLA_VLAN_FLAGS, 295 IFLA_VLAN_EGRESS_QOS, 296 IFLA_VLAN_INGRESS_QOS, 297 IFLA_VLAN_PROTOCOL, 298 __IFLA_VLAN_MAX, 299 }; 300 #define IFLA_VLAN_MAX (__IFLA_VLAN_MAX - 1) 301 struct ifla_vlan_flags { 302 __u32 flags; 303 __u32 mask; 304 }; 305 enum { 306 IFLA_VLAN_QOS_UNSPEC, 307 IFLA_VLAN_QOS_MAPPING, 308 __IFLA_VLAN_QOS_MAX 309 }; 310 #define IFLA_VLAN_QOS_MAX (__IFLA_VLAN_QOS_MAX - 1) 311 struct ifla_vlan_qos_mapping { 312 __u32 from; 313 __u32 to; 314 }; 315 enum { 316 IFLA_MACVLAN_UNSPEC, 317 IFLA_MACVLAN_MODE, 318 IFLA_MACVLAN_FLAGS, 319 IFLA_MACVLAN_MACADDR_MODE, 320 IFLA_MACVLAN_MACADDR, 321 IFLA_MACVLAN_MACADDR_DATA, 322 IFLA_MACVLAN_MACADDR_COUNT, 323 __IFLA_MACVLAN_MAX, 324 }; 325 #define IFLA_MACVLAN_MAX (__IFLA_MACVLAN_MAX - 1) 326 enum macvlan_mode { 327 MACVLAN_MODE_PRIVATE = 1, 328 MACVLAN_MODE_VEPA = 2, 329 MACVLAN_MODE_BRIDGE = 4, 330 MACVLAN_MODE_PASSTHRU = 8, 331 MACVLAN_MODE_SOURCE = 16, 332 }; 333 enum macvlan_macaddr_mode { 334 MACVLAN_MACADDR_ADD, 335 MACVLAN_MACADDR_DEL, 336 MACVLAN_MACADDR_FLUSH, 337 MACVLAN_MACADDR_SET, 338 }; 339 #define MACVLAN_FLAG_NOPROMISC 1 340 enum { 341 IFLA_VRF_UNSPEC, 342 IFLA_VRF_TABLE, 343 __IFLA_VRF_MAX 344 }; 345 #define IFLA_VRF_MAX (__IFLA_VRF_MAX - 1) 346 enum { 347 IFLA_VRF_PORT_UNSPEC, 348 IFLA_VRF_PORT_TABLE, 349 __IFLA_VRF_PORT_MAX 350 }; 351 #define IFLA_VRF_PORT_MAX (__IFLA_VRF_PORT_MAX - 1) 352 enum { 353 IFLA_MACSEC_UNSPEC, 354 IFLA_MACSEC_SCI, 355 IFLA_MACSEC_PORT, 356 IFLA_MACSEC_ICV_LEN, 357 IFLA_MACSEC_CIPHER_SUITE, 358 IFLA_MACSEC_WINDOW, 359 IFLA_MACSEC_ENCODING_SA, 360 IFLA_MACSEC_ENCRYPT, 361 IFLA_MACSEC_PROTECT, 362 IFLA_MACSEC_INC_SCI, 363 IFLA_MACSEC_ES, 364 IFLA_MACSEC_SCB, 365 IFLA_MACSEC_REPLAY_PROTECT, 366 IFLA_MACSEC_VALIDATION, 367 IFLA_MACSEC_PAD, 368 __IFLA_MACSEC_MAX, 369 }; 370 #define IFLA_MACSEC_MAX (__IFLA_MACSEC_MAX - 1) 371 enum { 372 IFLA_XFRM_UNSPEC, 373 IFLA_XFRM_LINK, 374 IFLA_XFRM_IF_ID, 375 __IFLA_XFRM_MAX 376 }; 377 #define IFLA_XFRM_MAX (__IFLA_XFRM_MAX - 1) 378 enum macsec_validation_type { 379 MACSEC_VALIDATE_DISABLED = 0, 380 MACSEC_VALIDATE_CHECK = 1, 381 MACSEC_VALIDATE_STRICT = 2, 382 __MACSEC_VALIDATE_END, 383 MACSEC_VALIDATE_MAX = __MACSEC_VALIDATE_END - 1, 384 }; 385 enum { 386 IFLA_IPVLAN_UNSPEC, 387 IFLA_IPVLAN_MODE, 388 IFLA_IPVLAN_FLAGS, 389 __IFLA_IPVLAN_MAX 390 }; 391 #define IFLA_IPVLAN_MAX (__IFLA_IPVLAN_MAX - 1) 392 enum ipvlan_mode { 393 IPVLAN_MODE_L2 = 0, 394 IPVLAN_MODE_L3, 395 IPVLAN_MODE_L3S, 396 IPVLAN_MODE_MAX 397 }; 398 #define IPVLAN_F_PRIVATE 0x01 399 #define IPVLAN_F_VEPA 0x02 400 enum { 401 IFLA_VXLAN_UNSPEC, 402 IFLA_VXLAN_ID, 403 IFLA_VXLAN_GROUP, 404 IFLA_VXLAN_LINK, 405 IFLA_VXLAN_LOCAL, 406 IFLA_VXLAN_TTL, 407 IFLA_VXLAN_TOS, 408 IFLA_VXLAN_LEARNING, 409 IFLA_VXLAN_AGEING, 410 IFLA_VXLAN_LIMIT, 411 IFLA_VXLAN_PORT_RANGE, 412 IFLA_VXLAN_PROXY, 413 IFLA_VXLAN_RSC, 414 IFLA_VXLAN_L2MISS, 415 IFLA_VXLAN_L3MISS, 416 IFLA_VXLAN_PORT, 417 IFLA_VXLAN_GROUP6, 418 IFLA_VXLAN_LOCAL6, 419 IFLA_VXLAN_UDP_CSUM, 420 IFLA_VXLAN_UDP_ZERO_CSUM6_TX, 421 IFLA_VXLAN_UDP_ZERO_CSUM6_RX, 422 IFLA_VXLAN_REMCSUM_TX, 423 IFLA_VXLAN_REMCSUM_RX, 424 IFLA_VXLAN_GBP, 425 IFLA_VXLAN_REMCSUM_NOPARTIAL, 426 IFLA_VXLAN_COLLECT_METADATA, 427 IFLA_VXLAN_LABEL, 428 IFLA_VXLAN_GPE, 429 IFLA_VXLAN_TTL_INHERIT, 430 IFLA_VXLAN_DF, 431 __IFLA_VXLAN_MAX 432 }; 433 #define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1) 434 struct ifla_vxlan_port_range { 435 __be16 low; 436 __be16 high; 437 }; 438 enum ifla_vxlan_df { 439 VXLAN_DF_UNSET = 0, 440 VXLAN_DF_SET, 441 VXLAN_DF_INHERIT, 442 __VXLAN_DF_END, 443 VXLAN_DF_MAX = __VXLAN_DF_END - 1, 444 }; 445 enum { 446 IFLA_GENEVE_UNSPEC, 447 IFLA_GENEVE_ID, 448 IFLA_GENEVE_REMOTE, 449 IFLA_GENEVE_TTL, 450 IFLA_GENEVE_TOS, 451 IFLA_GENEVE_PORT, 452 IFLA_GENEVE_COLLECT_METADATA, 453 IFLA_GENEVE_REMOTE6, 454 IFLA_GENEVE_UDP_CSUM, 455 IFLA_GENEVE_UDP_ZERO_CSUM6_TX, 456 IFLA_GENEVE_UDP_ZERO_CSUM6_RX, 457 IFLA_GENEVE_LABEL, 458 IFLA_GENEVE_TTL_INHERIT, 459 IFLA_GENEVE_DF, 460 __IFLA_GENEVE_MAX 461 }; 462 #define IFLA_GENEVE_MAX (__IFLA_GENEVE_MAX - 1) 463 enum ifla_geneve_df { 464 GENEVE_DF_UNSET = 0, 465 GENEVE_DF_SET, 466 GENEVE_DF_INHERIT, 467 __GENEVE_DF_END, 468 GENEVE_DF_MAX = __GENEVE_DF_END - 1, 469 }; 470 enum { 471 IFLA_PPP_UNSPEC, 472 IFLA_PPP_DEV_FD, 473 __IFLA_PPP_MAX 474 }; 475 #define IFLA_PPP_MAX (__IFLA_PPP_MAX - 1) 476 enum ifla_gtp_role { 477 GTP_ROLE_GGSN = 0, 478 GTP_ROLE_SGSN, 479 }; 480 enum { 481 IFLA_GTP_UNSPEC, 482 IFLA_GTP_FD0, 483 IFLA_GTP_FD1, 484 IFLA_GTP_PDP_HASHSIZE, 485 IFLA_GTP_ROLE, 486 __IFLA_GTP_MAX, 487 }; 488 #define IFLA_GTP_MAX (__IFLA_GTP_MAX - 1) 489 enum { 490 IFLA_BOND_UNSPEC, 491 IFLA_BOND_MODE, 492 IFLA_BOND_ACTIVE_SLAVE, 493 IFLA_BOND_MIIMON, 494 IFLA_BOND_UPDELAY, 495 IFLA_BOND_DOWNDELAY, 496 IFLA_BOND_USE_CARRIER, 497 IFLA_BOND_ARP_INTERVAL, 498 IFLA_BOND_ARP_IP_TARGET, 499 IFLA_BOND_ARP_VALIDATE, 500 IFLA_BOND_ARP_ALL_TARGETS, 501 IFLA_BOND_PRIMARY, 502 IFLA_BOND_PRIMARY_RESELECT, 503 IFLA_BOND_FAIL_OVER_MAC, 504 IFLA_BOND_XMIT_HASH_POLICY, 505 IFLA_BOND_RESEND_IGMP, 506 IFLA_BOND_NUM_PEER_NOTIF, 507 IFLA_BOND_ALL_SLAVES_ACTIVE, 508 IFLA_BOND_MIN_LINKS, 509 IFLA_BOND_LP_INTERVAL, 510 IFLA_BOND_PACKETS_PER_SLAVE, 511 IFLA_BOND_AD_LACP_RATE, 512 IFLA_BOND_AD_SELECT, 513 IFLA_BOND_AD_INFO, 514 IFLA_BOND_AD_ACTOR_SYS_PRIO, 515 IFLA_BOND_AD_USER_PORT_KEY, 516 IFLA_BOND_AD_ACTOR_SYSTEM, 517 IFLA_BOND_TLB_DYNAMIC_LB, 518 __IFLA_BOND_MAX, 519 }; 520 #define IFLA_BOND_MAX (__IFLA_BOND_MAX - 1) 521 enum { 522 IFLA_BOND_AD_INFO_UNSPEC, 523 IFLA_BOND_AD_INFO_AGGREGATOR, 524 IFLA_BOND_AD_INFO_NUM_PORTS, 525 IFLA_BOND_AD_INFO_ACTOR_KEY, 526 IFLA_BOND_AD_INFO_PARTNER_KEY, 527 IFLA_BOND_AD_INFO_PARTNER_MAC, 528 __IFLA_BOND_AD_INFO_MAX, 529 }; 530 #define IFLA_BOND_AD_INFO_MAX (__IFLA_BOND_AD_INFO_MAX - 1) 531 enum { 532 IFLA_BOND_SLAVE_UNSPEC, 533 IFLA_BOND_SLAVE_STATE, 534 IFLA_BOND_SLAVE_MII_STATUS, 535 IFLA_BOND_SLAVE_LINK_FAILURE_COUNT, 536 IFLA_BOND_SLAVE_PERM_HWADDR, 537 IFLA_BOND_SLAVE_QUEUE_ID, 538 IFLA_BOND_SLAVE_AD_AGGREGATOR_ID, 539 IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE, 540 IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE, 541 __IFLA_BOND_SLAVE_MAX, 542 }; 543 #define IFLA_BOND_SLAVE_MAX (__IFLA_BOND_SLAVE_MAX - 1) 544 enum { 545 IFLA_VF_INFO_UNSPEC, 546 IFLA_VF_INFO, 547 __IFLA_VF_INFO_MAX, 548 }; 549 #define IFLA_VF_INFO_MAX (__IFLA_VF_INFO_MAX - 1) 550 enum { 551 IFLA_VF_UNSPEC, 552 IFLA_VF_MAC, 553 IFLA_VF_VLAN, 554 IFLA_VF_TX_RATE, 555 IFLA_VF_SPOOFCHK, 556 IFLA_VF_LINK_STATE, 557 IFLA_VF_RATE, 558 IFLA_VF_RSS_QUERY_EN, 559 IFLA_VF_STATS, 560 IFLA_VF_TRUST, 561 IFLA_VF_IB_NODE_GUID, 562 IFLA_VF_IB_PORT_GUID, 563 IFLA_VF_VLAN_LIST, 564 __IFLA_VF_MAX, 565 }; 566 #define IFLA_VF_MAX (__IFLA_VF_MAX - 1) 567 struct ifla_vf_mac { 568 __u32 vf; 569 __u8 mac[32]; 570 }; 571 struct ifla_vf_vlan { 572 __u32 vf; 573 __u32 vlan; 574 __u32 qos; 575 }; 576 enum { 577 IFLA_VF_VLAN_INFO_UNSPEC, 578 IFLA_VF_VLAN_INFO, 579 __IFLA_VF_VLAN_INFO_MAX, 580 }; 581 #define IFLA_VF_VLAN_INFO_MAX (__IFLA_VF_VLAN_INFO_MAX - 1) 582 #define MAX_VLAN_LIST_LEN 1 583 struct ifla_vf_vlan_info { 584 __u32 vf; 585 __u32 vlan; 586 __u32 qos; 587 __be16 vlan_proto; 588 }; 589 struct ifla_vf_tx_rate { 590 __u32 vf; 591 __u32 rate; 592 }; 593 struct ifla_vf_rate { 594 __u32 vf; 595 __u32 min_tx_rate; 596 __u32 max_tx_rate; 597 }; 598 struct ifla_vf_spoofchk { 599 __u32 vf; 600 __u32 setting; 601 }; 602 struct ifla_vf_guid { 603 __u32 vf; 604 __u64 guid; 605 }; 606 enum { 607 IFLA_VF_LINK_STATE_AUTO, 608 IFLA_VF_LINK_STATE_ENABLE, 609 IFLA_VF_LINK_STATE_DISABLE, 610 __IFLA_VF_LINK_STATE_MAX, 611 }; 612 struct ifla_vf_link_state { 613 __u32 vf; 614 __u32 link_state; 615 }; 616 struct ifla_vf_rss_query_en { 617 __u32 vf; 618 __u32 setting; 619 }; 620 enum { 621 IFLA_VF_STATS_RX_PACKETS, 622 IFLA_VF_STATS_TX_PACKETS, 623 IFLA_VF_STATS_RX_BYTES, 624 IFLA_VF_STATS_TX_BYTES, 625 IFLA_VF_STATS_BROADCAST, 626 IFLA_VF_STATS_MULTICAST, 627 IFLA_VF_STATS_PAD, 628 IFLA_VF_STATS_RX_DROPPED, 629 IFLA_VF_STATS_TX_DROPPED, 630 __IFLA_VF_STATS_MAX, 631 }; 632 #define IFLA_VF_STATS_MAX (__IFLA_VF_STATS_MAX - 1) 633 struct ifla_vf_trust { 634 __u32 vf; 635 __u32 setting; 636 }; 637 enum { 638 IFLA_VF_PORT_UNSPEC, 639 IFLA_VF_PORT, 640 __IFLA_VF_PORT_MAX, 641 }; 642 #define IFLA_VF_PORT_MAX (__IFLA_VF_PORT_MAX - 1) 643 enum { 644 IFLA_PORT_UNSPEC, 645 IFLA_PORT_VF, 646 IFLA_PORT_PROFILE, 647 IFLA_PORT_VSI_TYPE, 648 IFLA_PORT_INSTANCE_UUID, 649 IFLA_PORT_HOST_UUID, 650 IFLA_PORT_REQUEST, 651 IFLA_PORT_RESPONSE, 652 __IFLA_PORT_MAX, 653 }; 654 #define IFLA_PORT_MAX (__IFLA_PORT_MAX - 1) 655 #define PORT_PROFILE_MAX 40 656 #define PORT_UUID_MAX 16 657 #define PORT_SELF_VF - 1 658 enum { 659 PORT_REQUEST_PREASSOCIATE = 0, 660 PORT_REQUEST_PREASSOCIATE_RR, 661 PORT_REQUEST_ASSOCIATE, 662 PORT_REQUEST_DISASSOCIATE, 663 }; 664 enum { 665 PORT_VDP_RESPONSE_SUCCESS = 0, 666 PORT_VDP_RESPONSE_INVALID_FORMAT, 667 PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES, 668 PORT_VDP_RESPONSE_UNUSED_VTID, 669 PORT_VDP_RESPONSE_VTID_VIOLATION, 670 PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION, 671 PORT_VDP_RESPONSE_OUT_OF_SYNC, 672 PORT_PROFILE_RESPONSE_SUCCESS = 0x100, 673 PORT_PROFILE_RESPONSE_INPROGRESS, 674 PORT_PROFILE_RESPONSE_INVALID, 675 PORT_PROFILE_RESPONSE_BADSTATE, 676 PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES, 677 PORT_PROFILE_RESPONSE_ERROR, 678 }; 679 struct ifla_port_vsi { 680 __u8 vsi_mgr_id; 681 __u8 vsi_type_id[3]; 682 __u8 vsi_type_version; 683 __u8 pad[3]; 684 }; 685 enum { 686 IFLA_IPOIB_UNSPEC, 687 IFLA_IPOIB_PKEY, 688 IFLA_IPOIB_MODE, 689 IFLA_IPOIB_UMCAST, 690 __IFLA_IPOIB_MAX 691 }; 692 enum { 693 IPOIB_MODE_DATAGRAM = 0, 694 IPOIB_MODE_CONNECTED = 1, 695 }; 696 #define IFLA_IPOIB_MAX (__IFLA_IPOIB_MAX - 1) 697 enum { 698 IFLA_HSR_UNSPEC, 699 IFLA_HSR_SLAVE1, 700 IFLA_HSR_SLAVE2, 701 IFLA_HSR_MULTICAST_SPEC, 702 IFLA_HSR_SUPERVISION_ADDR, 703 IFLA_HSR_SEQ_NR, 704 IFLA_HSR_VERSION, 705 __IFLA_HSR_MAX, 706 }; 707 #define IFLA_HSR_MAX (__IFLA_HSR_MAX - 1) 708 struct if_stats_msg { 709 __u8 family; 710 __u8 pad1; 711 __u16 pad2; 712 __u32 ifindex; 713 __u32 filter_mask; 714 }; 715 enum { 716 IFLA_STATS_UNSPEC, 717 IFLA_STATS_LINK_64, 718 IFLA_STATS_LINK_XSTATS, 719 IFLA_STATS_LINK_XSTATS_SLAVE, 720 IFLA_STATS_LINK_OFFLOAD_XSTATS, 721 IFLA_STATS_AF_SPEC, 722 __IFLA_STATS_MAX, 723 }; 724 #define IFLA_STATS_MAX (__IFLA_STATS_MAX - 1) 725 #define IFLA_STATS_FILTER_BIT(ATTR) (1 << (ATTR - 1)) 726 enum { 727 LINK_XSTATS_TYPE_UNSPEC, 728 LINK_XSTATS_TYPE_BRIDGE, 729 __LINK_XSTATS_TYPE_MAX 730 }; 731 #define LINK_XSTATS_TYPE_MAX (__LINK_XSTATS_TYPE_MAX - 1) 732 enum { 733 IFLA_OFFLOAD_XSTATS_UNSPEC, 734 IFLA_OFFLOAD_XSTATS_CPU_HIT, 735 __IFLA_OFFLOAD_XSTATS_MAX 736 }; 737 #define IFLA_OFFLOAD_XSTATS_MAX (__IFLA_OFFLOAD_XSTATS_MAX - 1) 738 #define XDP_FLAGS_UPDATE_IF_NOEXIST (1U << 0) 739 #define XDP_FLAGS_SKB_MODE (1U << 1) 740 #define XDP_FLAGS_DRV_MODE (1U << 2) 741 #define XDP_FLAGS_HW_MODE (1U << 3) 742 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | XDP_FLAGS_DRV_MODE | XDP_FLAGS_HW_MODE) 743 #define XDP_FLAGS_MASK (XDP_FLAGS_UPDATE_IF_NOEXIST | XDP_FLAGS_MODES) 744 enum { 745 XDP_ATTACHED_NONE = 0, 746 XDP_ATTACHED_DRV, 747 XDP_ATTACHED_SKB, 748 XDP_ATTACHED_HW, 749 XDP_ATTACHED_MULTI, 750 }; 751 enum { 752 IFLA_XDP_UNSPEC, 753 IFLA_XDP_FD, 754 IFLA_XDP_ATTACHED, 755 IFLA_XDP_FLAGS, 756 IFLA_XDP_PROG_ID, 757 IFLA_XDP_DRV_PROG_ID, 758 IFLA_XDP_SKB_PROG_ID, 759 IFLA_XDP_HW_PROG_ID, 760 __IFLA_XDP_MAX, 761 }; 762 #define IFLA_XDP_MAX (__IFLA_XDP_MAX - 1) 763 enum { 764 IFLA_EVENT_NONE, 765 IFLA_EVENT_REBOOT, 766 IFLA_EVENT_FEATURES, 767 IFLA_EVENT_BONDING_FAILOVER, 768 IFLA_EVENT_NOTIFY_PEERS, 769 IFLA_EVENT_IGMP_RESEND, 770 IFLA_EVENT_BONDING_OPTIONS, 771 }; 772 enum { 773 IFLA_TUN_UNSPEC, 774 IFLA_TUN_OWNER, 775 IFLA_TUN_GROUP, 776 IFLA_TUN_TYPE, 777 IFLA_TUN_PI, 778 IFLA_TUN_VNET_HDR, 779 IFLA_TUN_PERSIST, 780 IFLA_TUN_MULTI_QUEUE, 781 IFLA_TUN_NUM_QUEUES, 782 IFLA_TUN_NUM_DISABLED_QUEUES, 783 __IFLA_TUN_MAX, 784 }; 785 #define IFLA_TUN_MAX (__IFLA_TUN_MAX - 1) 786 #define RMNET_FLAGS_INGRESS_DEAGGREGATION (1U << 0) 787 #define RMNET_FLAGS_INGRESS_MAP_COMMANDS (1U << 1) 788 #define RMNET_FLAGS_INGRESS_MAP_CKSUMV4 (1U << 2) 789 #define RMNET_FLAGS_EGRESS_MAP_CKSUMV4 (1U << 3) 790 enum { 791 IFLA_RMNET_UNSPEC, 792 IFLA_RMNET_MUX_ID, 793 IFLA_RMNET_FLAGS, 794 __IFLA_RMNET_MAX, 795 }; 796 #define IFLA_RMNET_MAX (__IFLA_RMNET_MAX - 1) 797 struct ifla_rmnet_flags { 798 __u32 flags; 799 __u32 mask; 800 }; 801 #endif 802