diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-02 16:38:27 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-02 16:38:27 -0400 |
| commit | aecdc33e111b2c447b622e287c6003726daa1426 (patch) | |
| tree | 3e7657eae4b785e1a1fb5dfb225dbae0b2f0cfc6 /include/net | |
| parent | a20acf99f75e49271381d65db097c9763060a1e8 (diff) | |
| parent | a3a6cab5ea10cca64d036851fe0d932448f2fe4f (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking changes from David Miller:
1) GRE now works over ipv6, from Dmitry Kozlov.
2) Make SCTP more network namespace aware, from Eric Biederman.
3) TEAM driver now works with non-ethernet devices, from Jiri Pirko.
4) Make openvswitch network namespace aware, from Pravin B Shelar.
5) IPV6 NAT implementation, from Patrick McHardy.
6) Server side support for TCP Fast Open, from Jerry Chu and others.
7) Packet BPF filter supports MOD and XOR, from Eric Dumazet and Daniel
Borkmann.
8) Increate the loopback default MTU to 64K, from Eric Dumazet.
9) Use a per-task rather than per-socket page fragment allocator for
outgoing networking traffic. This benefits processes that have very
many mostly idle sockets, which is quite common.
From Eric Dumazet.
10) Use up to 32K for page fragment allocations, with fallbacks to
smaller sizes when higher order page allocations fail. Benefits are
a) less segments for driver to process b) less calls to page
allocator c) less waste of space.
From Eric Dumazet.
11) Allow GRO to be used on GRE tunnels, from Eric Dumazet.
12) VXLAN device driver, one way to handle VLAN issues such as the
limitation of 4096 VLAN IDs yet still have some level of isolation.
From Stephen Hemminger.
13) As usual there is a large boatload of driver changes, with the scale
perhaps tilted towards the wireless side this time around.
Fix up various fairly trivial conflicts, mostly caused by the user
namespace changes.
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1012 commits)
hyperv: Add buffer for extended info after the RNDIS response message.
hyperv: Report actual status in receive completion packet
hyperv: Remove extra allocated space for recv_pkt_list elements
hyperv: Fix page buffer handling in rndis_filter_send_request()
hyperv: Fix the missing return value in rndis_filter_set_packet_filter()
hyperv: Fix the max_xfer_size in RNDIS initialization
vxlan: put UDP socket in correct namespace
vxlan: Depend on CONFIG_INET
sfc: Fix the reported priorities of different filter types
sfc: Remove EFX_FILTER_FLAG_RX_OVERRIDE_IP
sfc: Fix loopback self-test with separate_tx_channels=1
sfc: Fix MCDI structure field lookup
sfc: Add parentheses around use of bitfield macro arguments
sfc: Fix null function pointer in efx_sriov_channel_type
vxlan: virtual extensible lan
igmp: export symbol ip_mc_leave_group
netlink: add attributes to fdb interface
tg3: unconditionally select HWMON support when tg3 is enabled.
Revert "net: ti cpsw ethernet: allow reading phy interface mode from DT"
gre: fix sparse warning
...
Diffstat (limited to 'include/net')
59 files changed, 1307 insertions, 591 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 089a09d001d1..9e63e76b20e7 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
| @@ -78,7 +78,7 @@ extern struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, | |||
| 78 | int strict); | 78 | int strict); |
| 79 | 79 | ||
| 80 | extern int ipv6_dev_get_saddr(struct net *net, | 80 | extern int ipv6_dev_get_saddr(struct net *net, |
| 81 | struct net_device *dev, | 81 | const struct net_device *dev, |
| 82 | const struct in6_addr *daddr, | 82 | const struct in6_addr *daddr, |
| 83 | unsigned int srcprefs, | 83 | unsigned int srcprefs, |
| 84 | struct in6_addr *saddr); | 84 | struct in6_addr *saddr); |
diff --git a/include/net/arp.h b/include/net/arp.h index 7f7df93f37cd..b630dae03411 100644 --- a/include/net/arp.h +++ b/include/net/arp.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #define _ARP_H | 3 | #define _ARP_H |
| 4 | 4 | ||
| 5 | #include <linux/if_arp.h> | 5 | #include <linux/if_arp.h> |
| 6 | #include <linux/hash.h> | ||
| 6 | #include <net/neighbour.h> | 7 | #include <net/neighbour.h> |
| 7 | 8 | ||
| 8 | 9 | ||
| @@ -10,7 +11,7 @@ extern struct neigh_table arp_tbl; | |||
| 10 | 11 | ||
| 11 | static inline u32 arp_hashfn(u32 key, const struct net_device *dev, u32 hash_rnd) | 12 | static inline u32 arp_hashfn(u32 key, const struct net_device *dev, u32 hash_rnd) |
| 12 | { | 13 | { |
| 13 | u32 val = key ^ dev->ifindex; | 14 | u32 val = key ^ hash32_ptr(dev); |
| 14 | 15 | ||
| 15 | return val * hash_rnd; | 16 | return val * hash_rnd; |
| 16 | } | 17 | } |
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 565d4bee1e49..ede036977ae8 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | #include <linux/poll.h> | 28 | #include <linux/poll.h> |
| 29 | #include <net/sock.h> | 29 | #include <net/sock.h> |
| 30 | #include <linux/seq_file.h> | ||
| 30 | 31 | ||
| 31 | #ifndef AF_BLUETOOTH | 32 | #ifndef AF_BLUETOOTH |
| 32 | #define AF_BLUETOOTH 31 | 33 | #define AF_BLUETOOTH 31 |
| @@ -202,6 +203,10 @@ enum { | |||
| 202 | struct bt_sock_list { | 203 | struct bt_sock_list { |
| 203 | struct hlist_head head; | 204 | struct hlist_head head; |
| 204 | rwlock_t lock; | 205 | rwlock_t lock; |
| 206 | #ifdef CONFIG_PROC_FS | ||
| 207 | struct file_operations fops; | ||
| 208 | int (* custom_seq_show)(struct seq_file *, void *); | ||
| 209 | #endif | ||
| 205 | }; | 210 | }; |
| 206 | 211 | ||
| 207 | int bt_sock_register(int proto, const struct net_proto_family *ops); | 212 | int bt_sock_register(int proto, const struct net_proto_family *ops); |
| @@ -292,6 +297,11 @@ extern void hci_sock_cleanup(void); | |||
| 292 | extern int bt_sysfs_init(void); | 297 | extern int bt_sysfs_init(void); |
| 293 | extern void bt_sysfs_cleanup(void); | 298 | extern void bt_sysfs_cleanup(void); |
| 294 | 299 | ||
| 300 | extern int bt_procfs_init(struct module* module, struct net *net, const char *name, | ||
| 301 | struct bt_sock_list* sk_list, | ||
| 302 | int (* seq_show)(struct seq_file *, void *)); | ||
| 303 | extern void bt_procfs_cleanup(struct net *net, const char *name); | ||
| 304 | |||
| 295 | extern struct dentry *bt_debugfs; | 305 | extern struct dentry *bt_debugfs; |
| 296 | 306 | ||
| 297 | int l2cap_init(void); | 307 | int l2cap_init(void); |
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index ccd723e0f783..76b2b6bdcf36 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
| @@ -62,6 +62,15 @@ | |||
| 62 | /* First BR/EDR Controller shall have ID = 0 */ | 62 | /* First BR/EDR Controller shall have ID = 0 */ |
| 63 | #define HCI_BREDR_ID 0 | 63 | #define HCI_BREDR_ID 0 |
| 64 | 64 | ||
| 65 | /* AMP controller status */ | ||
| 66 | #define AMP_CTRL_POWERED_DOWN 0x00 | ||
| 67 | #define AMP_CTRL_BLUETOOTH_ONLY 0x01 | ||
| 68 | #define AMP_CTRL_NO_CAPACITY 0x02 | ||
| 69 | #define AMP_CTRL_LOW_CAPACITY 0x03 | ||
| 70 | #define AMP_CTRL_MEDIUM_CAPACITY 0x04 | ||
| 71 | #define AMP_CTRL_HIGH_CAPACITY | ||
