diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-12 21:07:07 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-12 21:07:07 -0500 |
| commit | 6be35c700f742e911ecedd07fcc43d4439922334 (patch) | |
| tree | ca9f37214d204465fcc2d79c82efd291e357c53c /include/uapi/linux | |
| parent | e37aa63e87bd581f9be5555ed0ba83f5295c92fc (diff) | |
| parent | 520dfe3a3645257bf83660f672c47f8558f3d4c4 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking changes from David Miller:
1) Allow to dump, monitor, and change the bridge multicast database
using netlink. From Cong Wang.
2) RFC 5961 TCP blind data injection attack mitigation, from Eric
Dumazet.
3) Networking user namespace support from Eric W. Biederman.
4) tuntap/virtio-net multiqueue support by Jason Wang.
5) Support for checksum offload of encapsulated packets (basically,
tunneled traffic can still be checksummed by HW). From Joseph
Gasparakis.
6) Allow BPF filter access to VLAN tags, from Eric Dumazet and
Daniel Borkmann.
7) Bridge port parameters over netlink and BPDU blocking support
from Stephen Hemminger.
8) Improve data access patterns during inet socket demux by rearranging
socket layout, from Eric Dumazet.
9) TIPC protocol updates and cleanups from Ying Xue, Paul Gortmaker, and
Jon Maloy.
10) Update TCP socket hash sizing to be more in line with current day
realities. The existing heurstics were choosen a decade ago.
From Eric Dumazet.
11) Fix races, queue bloat, and excessive wakeups in ATM and
associated drivers, from Krzysztof Mazur and David Woodhouse.
12) Support DOVE (Distributed Overlay Virtual Ethernet) extensions
in VXLAN driver, from David Stevens.
13) Add "oops_only" mode to netconsole, from Amerigo Wang.
14) Support set and query of VEB/VEPA bridge mode via PF_BRIDGE, also
allow DCB netlink to work on namespaces other than the initial
namespace. From John Fastabend.
15) Support PTP in the Tigon3 driver, from Matt Carlson.
16) tun/vhost zero copy fixes and improvements, plus turn it on
by default, from Michael S. Tsirkin.
17) Support per-association statistics in SCTP, from Michele
Baldessari.
And many, many, driver updates, cleanups, and improvements. Too
numerous to mention individually.
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1722 commits)
net/mlx4_en: Add support for destination MAC in steering rules
net/mlx4_en: Use generic etherdevice.h functions.
net: ethtool: Add destination MAC address to flow steering API
bridge: add support of adding and deleting mdb entries
bridge: notify mdb changes via netlink
ndisc: Unexport ndisc_{build,send}_skb().
uapi: add missing netconf.h to export list
pkt_sched: avoid requeues if possible
solos-pci: fix double-free of TX skb in DMA mode
bnx2: Fix accidental reversions.
bna: Driver Version Updated to 3.1.2.1
bna: Firmware update
bna: Add RX State
bna: Rx Page Based Allocation
bna: TX Intr Coalescing Fix
bna: Tx and Rx Optimizations
bna: Code Cleanup and Enhancements
ath9k: check pdata variable before dereferencing it
ath5k: RX timestamp is reported at end of frame
ath9k_htc: RX timestamp is reported at end of frame
...
Diffstat (limited to 'include/uapi/linux')
25 files changed, 529 insertions, 24 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index 19e765fbfef7..4e67194fd2c3 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild | |||
| @@ -258,6 +258,7 @@ header-y += neighbour.h | |||
| 258 | header-y += net.h | 258 | header-y += net.h |
| 259 | header-y += net_dropmon.h | 259 | header-y += net_dropmon.h |
| 260 | header-y += net_tstamp.h | 260 | header-y += net_tstamp.h |
| 261 | header-y += netconf.h | ||
| 261 | header-y += netdevice.h | 262 | header-y += netdevice.h |
| 262 | header-y += netfilter.h | 263 | header-y += netfilter.h |
| 263 | header-y += netfilter_arp.h | 264 | header-y += netfilter_arp.h |
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index d3eaaaf1009e..be8c41e2dc15 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
| @@ -500,13 +500,15 @@ union ethtool_flow_union { | |||
| 500 | struct ethtool_ah_espip4_spec esp_ip4_spec; | 500 | struct ethtool_ah_espip4_spec esp_ip4_spec; |
| 501 | struct ethtool_usrip4_spec usr_ip4_spec; | 501 | struct ethtool_usrip4_spec usr_ip4_spec; |
| 502 | struct ethhdr ether_spec; | 502 | struct ethhdr ether_spec; |
| 503 | __u8 hdata[60]; | 503 | __u8 hdata[52]; |
| 504 | }; | 504 | }; |
| 505 | 505 | ||
| 506 | struct ethtool_flow_ext { | 506 | struct ethtool_flow_ext { |
| 507 | __be16 vlan_etype; | 507 | __u8 padding[2]; |
| 508 | __be16 vlan_tci; | 508 | unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ |
| 509 | __be32 data[2]; | 509 | __be16 vlan_etype; |
| 510 | __be16 vlan_tci; | ||
| 511 | __be32 data[2]; | ||
| 510 | }; | 512 | }; |
| 511 | 513 | ||
| 512 | /** | 514 | /** |
| @@ -1027,6 +1029,7 @@ enum ethtool_sfeatures_retval_bits { | |||
| 1027 | #define ETHER_FLOW 0x12 /* spec only (ether_spec) */ | 1029 | #define ETHER_FLOW 0x12 /* spec only (ether_spec) */ |
| 1028 | /* Flag to enable additional fields in struct ethtool_rx_flow_spec */ | 1030 | /* Flag to enable additional fields in struct ethtool_rx_flow_spec */ |
| 1029 | #define FLOW_EXT 0x80000000 | 1031 | #define FLOW_EXT 0x80000000 |
| 1032 | #define FLOW_MAC_EXT 0x40000000 | ||
| 1030 | 1033 | ||
| 1031 | /* L3-L4 network traffic flow hash options */ | 1034 | /* L3-L4 network traffic flow hash options */ |
| 1032 | #define RXH_L2DA (1 << 1) | 1035 | #define RXH_L2DA (1 << 1) |
diff --git a/include/uapi/linux/filter.h b/include/uapi/linux/filter.h index 3d7922433aba..9cfde6941099 100644 --- a/include/uapi/linux/filter.h +++ b/include/uapi/linux/filter.h | |||
| @@ -127,7 +127,9 @@ struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ | |||
| 127 | #define SKF_AD_RXHASH 32 | 127 | #define SKF_AD_RXHASH 32 |
| 128 | #define SKF_AD_CPU 36 | 128 | #define SKF_AD_CPU 36 |
| 129 | #define SKF_AD_ALU_XOR_X 40 | 129 | #define SKF_AD_ALU_XOR_X 40 |
| 130 | #define SKF_AD_MAX 44 | 130 | #define SKF_AD_VLAN_TAG 44 |
| 131 | #define SKF_AD_VLAN_TAG_PRESENT 48 | ||
| 132 | #define SKF_AD_MAX 52 | ||
| 131 | #define SKF_NET_OFF (-0x100000) | 133 | #define SKF_NET_OFF (-0x100000) |
| 132 | #define SKF_LL_OFF (-0x200000) | 134 | #define SKF_LL_OFF (-0x200000) |
| 133 | 135 | ||
diff --git a/include/uapi/linux/hdlc/Kbuild b/include/uapi/linux/hdlc/Kbuild index aafaa5aa54d4..8c1d2cb75e33 100644 --- a/include/uapi/linux/hdlc/Kbuild +++ b/include/uapi/linux/hdlc/Kbuild | |||
| @@ -1 +1,2 @@ | |||
| 1 | # UAPI Header export list | 1 | # UAPI Header export list |
| 2 | header-y += ioctl.h | ||
diff --git a/include/uapi/linux/hdlc/ioctl.h b/include/uapi/linux/hdlc/ioctl.h new file mode 100644 index 000000000000..04bc0274a189 --- /dev/null +++ b/include/uapi/linux/hdlc/ioctl.h | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | #ifndef __HDLC_IOCTL_H__ | ||
| 2 | #define __HDLC_IOCTL_H__ | ||
| 3 | |||
| 4 | |||
| 5 | #define GENERIC_HDLC_VERSION 4 /* For synchronization with sethdlc utility */ | ||
| 6 | |||
| 7 | #define CLOCK_DEFAULT 0 /* Default setting */ | ||
| 8 | #define CLOCK_EXT 1 /* External TX and RX clock - DTE */ | ||
| 9 | #define CLOCK_INT 2 /* Internal TX and RX clock - DCE */ | ||
| 10 | #define CLOCK_TXINT 3 /* Internal TX and external RX clock */ | ||
| 11 | #define CLOCK_TXFROMRX 4 /* TX clock derived from external RX clock */ | ||
| 12 | |||
| 13 | |||
| 14 | #define ENCODING_DEFAULT 0 /* Default setting */ | ||
| 15 | #define ENCODING_NRZ 1 | ||
| 16 | #define ENCODING_NRZI 2 | ||
| 17 | #define ENCODING_FM_MARK 3 | ||
| 18 | #define ENCODING_FM_SPACE 4 | ||
| 19 | #define ENCODING_MANCHESTER 5 | ||
| 20 | |||
| 21 | |||
| 22 | #define PARITY_DEFAULT 0 /* Default setting */ | ||
| 23 | #define PARITY_NONE 1 /* No parity */ | ||
| 24 | #define PARITY_CRC16_PR0 2 /* CRC16, initial value 0x0000 */ | ||
| 25 | #define PARITY_CRC16_PR1 3 /* CRC16, initial value 0xFFFF */ | ||
| 26 | #define PARITY_CRC16_PR0_CCITT 4 /* CRC16, initial 0x0000, ITU-T version */ | ||
| 27 | #define PARITY_CRC16_PR1_CCITT 5 /* CRC16, initial 0xFFFF, ITU-T version */ | ||
| 28 | #define PARITY_CRC32_PR0_CCITT 6 /* CRC32, initial value 0x00000000 */ | ||
| 29 | #define PARITY_CRC32_PR1_CCITT 7 /* CRC32, initial value 0xFFFFFFFF */ | ||
| 30 | |||
| 31 | #define LMI_DEFAULT 0 /* Default setting */ | ||
| 32 | #define LMI_NONE 1 /* No LMI, all PVCs are static */ | ||
| 33 | #define LMI_ANSI 2 /* ANSI Annex D */ | ||
| 34 | #define LMI_CCITT 3 /* ITU-T Annex A */ | ||
| 35 | #define LMI_CISCO 4 /* The "original" LMI, aka Gang of Four */ | ||
| 36 | |||
| 37 | #ifndef __ASSEMBLY__ | ||
| 38 | |||
| 39 | typedef struct { | ||
| 40 | unsigned int clock_rate; /* bits per second */ | ||
| 41 | unsigned int clock_type; /* internal, external, TX-internal etc. */ | ||
| 42 | unsigned short loopback; | ||
| 43 | } sync_serial_settings; /* V.35, V.24, X.21 */ | ||
| 44 | |||
| 45 | typedef struct { | ||
| 46 | unsigned int clock_rate; /* bits per second */ | ||
| 47 | unsigned int clock_type; /* internal, external, TX-internal etc. */ | ||
| 48 | unsigned short loopback; | ||
| 49 | unsigned int slot_map; | ||
| 50 | } te1_settings; /* T1, E1 */ | ||
| 51 | |||
| 52 | typedef struct { | ||
| 53 | unsigned short encoding; | ||
| 54 | unsigned short parity; | ||
| 55 | } raw_hdlc_proto; | ||
| 56 | |||
| 57 | typedef struct { | ||
| 58 | unsigned int t391; | ||
| 59 | unsigned int t392; | ||
| 60 | unsigned int n391; | ||
| 61 | unsigned int n392; | ||
| 62 | unsigned int n393; | ||
| 63 | unsigned short lmi; | ||
| 64 | unsigned short dce; /* 1 for DCE (network side) operation */ | ||
| 65 | } fr_proto; | ||
| 66 | |||
| 67 | typedef struct { | ||
| 68 | unsigned int dlci; | ||
| 69 | } fr_proto_pvc; /* for creating/deleting FR PVCs */ | ||
| 70 | |||
