diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/ethtool.h | 4 | ||||
| -rw-r--r-- | include/uapi/linux/gen_stats.h | 11 | ||||
| -rw-r--r-- | include/uapi/linux/if_arp.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/if_link.h | 15 | ||||
| -rw-r--r-- | include/uapi/linux/if_pppox.h | 4 | ||||
| -rw-r--r-- | include/uapi/linux/if_tun.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/ip_vs.h | 6 | ||||
| -rw-r--r-- | include/uapi/linux/netfilter/nfnetlink_queue.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/netfilter/xt_socket.h | 7 | ||||
| -rw-r--r-- | include/uapi/linux/nfc.h | 18 | ||||
| -rw-r--r-- | include/uapi/linux/nl80211.h | 37 | ||||
| -rw-r--r-- | include/uapi/linux/openvswitch.h | 20 | ||||
| -rw-r--r-- | include/uapi/linux/rtnetlink.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/snmp.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/tipc.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/tipc_config.h | 2 |
16 files changed, 127 insertions, 8 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 0c9b44871df0..38dbafaa5341 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
| @@ -993,8 +993,8 @@ enum ethtool_sfeatures_retval_bits { | |||
| 993 | #define PORT_OTHER 0xff | 993 | #define PORT_OTHER 0xff |
| 994 | 994 | ||
| 995 | /* Which transceiver to use. */ | 995 | /* Which transceiver to use. */ |
| 996 | #define XCVR_INTERNAL 0x00 | 996 | #define XCVR_INTERNAL 0x00 /* PHY and MAC are in the same package */ |
| 997 | #define XCVR_EXTERNAL 0x01 | 997 | #define XCVR_EXTERNAL 0x01 /* PHY and MAC are in different packages */ |
| 998 | #define XCVR_DUMMY1 0x02 | 998 | #define XCVR_DUMMY1 0x02 |
| 999 | #define XCVR_DUMMY2 0x03 | 999 | #define XCVR_DUMMY2 0x03 |
| 1000 | #define XCVR_DUMMY3 0x04 | 1000 | #define XCVR_DUMMY3 0x04 |
diff --git a/include/uapi/linux/gen_stats.h b/include/uapi/linux/gen_stats.h index 552c8a0a12d1..6487317ea619 100644 --- a/include/uapi/linux/gen_stats.h +++ b/include/uapi/linux/gen_stats.h | |||
| @@ -9,6 +9,7 @@ enum { | |||
| 9 | TCA_STATS_RATE_EST, | 9 | TCA_STATS_RATE_EST, |
| 10 | TCA_STATS_QUEUE, | 10 | TCA_STATS_QUEUE, |
| 11 | TCA_STATS_APP, | 11 | TCA_STATS_APP, |
| 12 | TCA_STATS_RATE_EST64, | ||
| 12 | __TCA_STATS_MAX, | 13 | __TCA_STATS_MAX, |
| 13 | }; | 14 | }; |
| 14 | #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) | 15 | #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) |
| @@ -38,6 +39,16 @@ struct gnet_stats_rate_est { | |||
| 38 | }; | 39 | }; |
| 39 | 40 | ||
| 40 | /** | 41 | /** |
| 42 | * struct gnet_stats_rate_est64 - rate estimator | ||
| 43 | * @bps: current byte rate | ||
| 44 | * @pps: current packet rate | ||
| 45 | */ | ||
| 46 | struct gnet_stats_rate_est64 { | ||
| 47 | __u64 bps; | ||
| 48 | __u64 pps; | ||
| 49 | }; | ||
| 50 | |||
| 51 | /** | ||
| 41 | * struct gnet_stats_queue - queuing statistics | 52 | * struct gnet_stats_queue - queuing statistics |
| 42 | * @qlen: queue length | 53 | * @qlen: queue length |
| 43 | * @backlog: backlog size of queue | 54 | * @backlog: backlog size of queue |
diff --git a/include/uapi/linux/if_arp.h b/include/uapi/linux/if_arp.h index 82c7d1bdadeb..d7fea3496f32 100644 --- a/include/uapi/linux/if_arp.h +++ b/include/uapi/linux/if_arp.h | |||
| @@ -93,6 +93,7 @@ | |||
| 93 | #define ARPHRD_PHONET_PIPE 821 /* PhoNet pipe header */ | 93 | #define ARPHRD_PHONET_PIPE 821 /* PhoNet pipe header */ |
| 94 | #define ARPHRD_CAIF 822 /* CAIF media type */ | 94 | #define ARPHRD_CAIF 822 /* CAIF media type */ |
| 95 | #define ARPHRD_IP6GRE 823 /* GRE over IPv6 */ | 95 | #define ARPHRD_IP6GRE 823 /* GRE over IPv6 */ |
| 96 | #define ARPHRD_NETLINK 824 /* Netlink header */ | ||
| 96 | 97 | ||
| 97 | #define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */ | 98 | #define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */ |
| 98 | #define ARPHRD_NONE 0xFFFE /* zero header length */ | 99 | #define ARPHRD_NONE 0xFFFE /* zero header length */ |
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index b05823cae784..03f6170ab337 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h | |||
| @@ -221,6 +221,8 @@ enum { | |||
| 221 | IFLA_BRPORT_GUARD, /* bpdu guard */ | 221 | IFLA_BRPORT_GUARD, /* bpdu guard */ |
| 222 | IFLA_BRPORT_PROTECT, /* root port protection */ | 222 | IFLA_BRPORT_PROTECT, /* root port protection */ |
| 223 | IFLA_BRPORT_FAST_LEAVE, /* multicast fast leave */ | 223 | IFLA_BRPORT_FAST_LEAVE, /* multicast fast leave */ |
| 224 | IFLA_BRPORT_LEARNING, /* mac learning */ | ||
| 225 | IFLA_BRPORT_UNICAST_FLOOD, /* flood unicast traffic */ | ||
| 224 | __IFLA_BRPORT_MAX | 226 | __IFLA_BRPORT_MAX |
| 225 | }; | 227 | }; |
| 226 | #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) | 228 | #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) |
| @@ -336,6 +338,7 @@ enum { | |||
| 336 | IFLA_VF_VLAN, | 338 | IFLA_VF_VLAN, |
| 337 | IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ | 339 | IFLA_VF_TX_RATE, /* TX Bandwidth Allocation */ |
| 338 | IFLA_VF_SPOOFCHK, /* Spoof Checking on/off switch */ | 340 | IFLA_VF_SPOOFCHK, /* Spoof Checking on/off switch */ |
| 341 | IFLA_VF_LINK_STATE, /* link state enable/disable/auto switch */ | ||
| 339 | __IFLA_VF_MAX, | 342 | __IFLA_VF_MAX, |
| 340 | }; | 343 | }; |
| 341 | 344 | ||
| @@ -362,6 +365,18 @@ struct ifla_vf_spoofchk { | |||
| 362 | __u32 setting; | 365 | __u32 setting; |
| 363 | }; | 366 | }; |
| 364 | 367 | ||
| 368 | enum { | ||
| 369 | IFLA_VF_LINK_STATE_AUTO, /* link state of the uplink */ | ||
| 370 | IFLA_VF_LINK_STATE_ENABLE, /* link always up */ | ||
| 371 | IFLA_VF_LINK_STATE_DISABLE, /* link always down */ | ||
| 372 | __IFLA_VF_LINK_STATE_MAX, | ||
| 373 | }; | ||
| 374 | |||
| 375 | struct ifla_vf_link_state { | ||
| 376 | __u32 vf; | ||
| 377 | __u32 link_state; | ||
| 378 | }; | ||
| 379 | |||
| 365 | /* VF ports management section | 380 | /* VF ports management section |
| 366 | * | 381 | * |
| 367 | * Nested layout of set/get msg is: | 382 | * Nested layout of set/get msg is: |
diff --git a/include/uapi/linux/if_pppox.h b/include/uapi/linux/if_pppox.h index 0b46fd57c8f6..e36a4aecd311 100644 --- a/include/uapi/linux/if_pppox.h +++ b/include/uapi/linux/if_pppox.h | |||
| @@ -135,11 +135,11 @@ struct pppoe_tag { | |||
| 135 | 135 | ||
| 136 | struct pppoe_hdr { | 136 | struct pppoe_hdr { |
| 137 | #if defined(__LITTLE_ENDIAN_BITFIELD) | 137 | #if defined(__LITTLE_ENDIAN_BITFIELD) |
| 138 | __u8 ver : 4; | ||
| 139 | __u8 type : 4; | 138 | __u8 type : 4; |
| 139 | __u8 ver : 4; | ||
| 140 | #elif defined(__BIG_ENDIAN_BITFIELD) | 140 | #elif defined(__BIG_ENDIAN_BITFIELD) |
| 141 | __u8 type : 4; | ||
| 142 | __u8 ver : 4; | 141 | __u8 ver : 4; |
| 142 | __u8 type : 4; | ||
| 143 | #else | 143 | #else |
| 144 | #error "Please fix <asm/byteorder.h>" | 144 | #error "Please fix <asm/byteorder.h>" |
| 145 | #endif | 145 | #endif |
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 2835b85fd46d..82334f88967e 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h | |||
| @@ -68,6 +68,8 @@ | |||
| 68 | #define IFF_MULTI_QUEUE 0x0100 | 68 | #define IFF_MULTI_QUEUE 0x0100 |
| 69 | #define IFF_ATTACH_QUEUE 0x0200 | 69 | #define IFF_ATTACH_QUEUE 0x0200 |
| 70 | #define IFF_DETACH_QUEUE 0x0400 | 70 | #define IFF_DETACH_QUEUE 0x0400 |
| 71 | /* read-only flag */ | ||
| 72 | #define IFF_PERSIST 0x0800 | ||
| 71 | 73 | ||
| 72 | /* Features for GSO (TUNSETOFFLOAD). */ | 74 | /* Features for GSO (TUNSETOFFLOAD). */ |
| 73 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ | 75 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ |
diff --git a/include/uapi/linux/ip_vs.h b/include/uapi/linux/ip_vs.h index a24537725e80..29458223d044 100644 --- a/include/uapi/linux/ip_vs.h +++ b/include/uapi/linux/ip_vs.h | |||
| @@ -20,6 +20,12 @@ | |||
| 20 | #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ | 20 | #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ |
| 21 | #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ | 21 | #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ |
| 22 | #define IP_VS_SVC_F_ONEPACKET 0x0004 /* one-packet scheduling */ | 22 | #define IP_VS_SVC_F_ONEPACKET 0x0004 /* one-packet scheduling */ |
| 23 | #define IP_VS_SVC_F_SCHED1 0x0008 /* scheduler flag 1 */ | ||
| 24 | #define IP_VS_SVC_F_SCHED2 0x0010 /* scheduler flag 2 */ | ||
| 25 | #define IP_VS_SVC_F_SCHED3 0x0020 /* scheduler flag 3 */ | ||
| 26 | |||
| 27 | #define IP_VS_SVC_F_SCHED_SH_FALLBACK IP_VS_SVC_F_SCHED1 /* SH fallback */ | ||
| 28 | #define IP_VS_SVC_F_SCHED_SH_PORT IP_VS_SVC_F_SCHED2 /* SH use port */ | ||
| 23 | 29 | ||
| 24 | /* | 30 | /* |
| 25 | * Destination Server Flags | 31 | * Destination Server Flags |
diff --git a/include/uapi/linux/netfilter/nfnetlink_queue.h b/include/uapi/linux/netfilter/nfnetlink_queue.h index a2308ae5a73d..3a9b92147339 100644 --- a/include/uapi/linux/netfilter/nfnetlink_queue.h +++ b/include/uapi/linux/netfilter/nfnetlink_queue.h | |||
| @@ -105,5 +105,7 @@ enum nfqnl_attr_config { | |||
| 105 | #define NFQA_SKB_CSUMNOTREADY (1 << 0) | 105 | #define NFQA_SKB_CSUMNOTREADY (1 << 0) |
| 106 | /* packet is GSO (i.e., exceeds device mtu) */ | 106 | /* packet is GSO (i.e., exceeds device mtu) */ |
| 107 | #define NFQA_SKB_GSO (1 << 1) | 107 | #define NFQA_SKB_GSO (1 << 1) |
| 108 | /* csum not validated (incoming device doesn't support hw checksum, etc.) */ | ||
| 109 | #define NFQA_SKB_CSUM_NOTVERIFIED (1 << 2) | ||
| 108 | 110 | ||
| 109 | #endif /* _NFNETLINK_QUEUE_H */ | 111 | #endif /* _NFNETLINK_QUEUE_H */ |
diff --git a/include/uapi/linux/netfilter/xt_socket.h b/include/uapi/linux/netfilter/xt_socket.h index 26d7217bd4f1..6315e2ac3474 100644 --- a/include/uapi/linux/netfilter/xt_socket.h +++ b/include/uapi/linux/netfilter/xt_socket.h | |||
| @@ -5,10 +5,17 @@ | |||
| 5 | |||
