Skip to content

Commit a42c74e

Browse files
committed
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
2 parents 97990a0 + 9b38367 commit a42c74e

519 files changed

Lines changed: 36452 additions & 8266 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/device-mapper/dm-raid.txt‎

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The target is named "raid" and it accepts the following parameters:
3030
raid10 Various RAID10 inspired algorithms chosen by additional params
3131
- RAID10: Striped Mirrors (aka 'Striping on top of mirrors')
3232
- RAID1E: Integrated Adjacent Stripe Mirroring
33+
- RAID1E: Integrated Offset Stripe Mirroring
3334
- and other similar RAID10 variants
3435

3536
Reference: Chapter 4 of
@@ -64,15 +65,15 @@ The target is named "raid" and it accepts the following parameters:
6465
synchronisation state for each region.
6566

6667
[raid10_copies <# copies>]
67-
[raid10_format near]
68+
[raid10_format <near|far|offset>]
6869
These two options are used to alter the default layout of
6970
a RAID10 configuration. The number of copies is can be
70-
specified, but the default is 2. There are other variations
71-
to how the copies are laid down - the default and only current
72-
option is "near". Near copies are what most people think of
73-
with respect to mirroring. If these options are left
74-
unspecified, or 'raid10_copies 2' and/or 'raid10_format near'
75-
are given, then the layouts for 2, 3 and 4 devices are:
71+
specified, but the default is 2. There are also three
72+
variations to how the copies are laid down - the default
73+
is "near". Near copies are what most people think of with
74+
respect to mirroring. If these options are left unspecified,
75+
or 'raid10_copies 2' and/or 'raid10_format near' are given,
76+
then the layouts for 2, 3 and 4 devices are:
7677
2 drives 3 drives 4 drives
7778
-------- ---------- --------------
7879
A1 A1 A1 A1 A2 A1 A1 A2 A2
@@ -85,6 +86,33 @@ The target is named "raid" and it accepts the following parameters:
8586
3-device layout is what might be called a 'RAID1E - Integrated
8687
Adjacent Stripe Mirroring'.
8788

89+
If 'raid10_copies 2' and 'raid10_format far', then the layouts
90+
for 2, 3 and 4 devices are:
91+
2 drives 3 drives 4 drives
92+
-------- -------------- --------------------
93+
A1 A2 A1 A2 A3 A1 A2 A3 A4
94+
A3 A4 A4 A5 A6 A5 A6 A7 A8
95+
A5 A6 A7 A8 A9 A9 A10 A11 A12
96+
.. .. .. .. .. .. .. .. ..
97+
A2 A1 A3 A1 A2 A2 A1 A4 A3
98+
A4 A3 A6 A4 A5 A6 A5 A8 A7
99+
A6 A5 A9 A7 A8 A10 A9 A12 A11
100+
.. .. .. .. .. .. .. .. ..
101+
102+
If 'raid10_copies 2' and 'raid10_format offset', then the
103+
layouts for 2, 3 and 4 devices are:
104+
2 drives 3 drives 4 drives
105+
-------- ------------ -----------------
106+
A1 A2 A1 A2 A3 A1 A2 A3 A4
107+
A2 A1 A3 A1 A2 A2 A1 A4 A3
108+
A3 A4 A4 A5 A6 A5 A6 A7 A8
109+
A4 A3 A6 A4 A5 A6 A5 A8 A7
110+
A5 A6 A7 A8 A9 A9 A10 A11 A12
111+
A6 A5 A9 A7 A8 A10 A9 A12 A11
112+
.. .. .. .. .. .. .. .. ..
113+
Here we see layouts closely akin to 'RAID1E - Integrated
114+
Offset Stripe Mirroring'.
115+
88116
<#raid_devs>: The number of devices composing the array.
89117
Each device consists of two entries. The first is the device
90118
containing the metadata (if any); the second is the one containing the
@@ -142,3 +170,5 @@ Version History
142170
1.3.0 Added support for RAID 10
143171
1.3.1 Allow device replacement/rebuild for RAID 10
144172
1.3.2 Fix/improve redundancy checking for RAID10
173+
1.4.0 Non-functional change. Removes arg from mapping function.
174+
1.4.1 Add RAID10 "far" and "offset" algorithm support.

‎Documentation/networking/tuntap.txt‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,83 @@ Copyright (C) 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
105105
Proto [2 bytes]
106106
Raw protocol(IP, IPv6, etc) frame.
107107

108+
3.3 Multiqueue tuntap interface:
109+
110+
From version 3.8, Linux supports multiqueue tuntap which can uses multiple
111+
file descriptors (queues) to parallelize packets sending or receiving. The
112+
device allocation is the same as before, and if user wants to create multiple
113+
queues, TUNSETIFF with the same device name must be called many times with
114+
IFF_MULTI_QUEUE flag.
115+
116+
char *dev should be the name of the device, queues is the number of queues to
117+
be created, fds is used to store and return the file descriptors (queues)
118+
created to the caller. Each file descriptor were served as the interface of a
119+
queue which could be accessed by userspace.
120+
121+
#include <linux/if.h>
122+
#include <linux/if_tun.h>
123+
124+
int tun_alloc_mq(char *dev, int queues, int *fds)
125+
{
126+
struct ifreq ifr;
127+
int fd, err, i;
128+
129+
if (!dev)
130+
return -1;
131+
132+
memset(&ifr, 0, sizeof(ifr));
133+
/* Flags: IFF_TUN - TUN device (no Ethernet headers)
134+
* IFF_TAP - TAP device
135+
*
136+
* IFF_NO_PI - Do not provide packet information
137+
* IFF_MULTI_QUEUE - Create a queue of multiqueue device
138+
*/
139+
ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_MULTI_QUEUE;
140+
strcpy(ifr.ifr_name, dev);
141+
142+
for (i = 0; i < queues; i++) {
143+
if ((fd = open("/dev/net/tun", O_RDWR)) < 0)
144+
goto err;
145+
err = ioctl(fd, TUNSETIFF, (void *)&ifr);
146+
if (err) {
147+
close(fd);
148+
goto err;
149+
}
150+
fds[i] = fd;
151+
}
152+
153+
return 0;
154+
err:
155+
for (--i; i >= 0; i--)
156+
close(fds[i]);
157+
return err;
158+
}
159+
160+
A new ioctl(TUNSETQUEUE) were introduced to enable or disable a queue. When
161+
calling it with IFF_DETACH_QUEUE flag, the queue were disabled. And when
162+
calling it with IFF_ATTACH_QUEUE flag, the queue were enabled. The queue were
163+
enabled by default after it was created through TUNSETIFF.
164+
165+
fd is the file descriptor (queue) that we want to enable or disable, when
166+
enable is true we enable it, otherwise we disable it
167+
168+
#include <linux/if.h>
169+
#include <linux/if_tun.h>
170+
171+
int tun_set_queue(int fd, int enable)
172+
{
173+
struct ifreq ifr;
174+
175+
memset(&ifr, 0, sizeof(ifr));
176+
177+
if (enable)
178+
ifr.ifr_flags = IFF_ATTACH_QUEUE;
179+
else
180+
ifr.ifr_flags = IFF_DETACH_QUEUE;
181+
182+
return ioctl(fd, TUNSETQUEUE, (void *)&ifr);
183+
}
184+
108185
Universal TUN/TAP device driver Frequently Asked Question.
109186

110187
1. What platforms are supported by TUN/TAP driver ?

‎MAINTAINERS‎

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ Maintainers List (try to look for most precise areas first)
114114

115115
-----------------------------------
116116

117-
3C505 NETWORK DRIVER
118-
M: Philip Blundell <philb@gnu.org>
119-
L: netdev@vger.kernel.org
120-
S: Maintained
121-
F: drivers/net/ethernet/i825xx/3c505*
122-
123117
3C59X NETWORK DRIVER
124118
M: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
125119
L: netdev@vger.kernel.org
@@ -2361,12 +2355,6 @@ W: http://www.arm.linux.org.uk/
23612355
S: Maintained
23622356
F: drivers/video/cyber2000fb.*
23632357

2364-
CYCLADES 2X SYNC CARD DRIVER
2365-
M: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
2366-
W: http://oops.ghostprotocols.net:81/blog
2367-
S: Maintained
2368-
F: drivers/net/wan/cycx*
2369-
23702358
CYCLADES ASYNC MUX DRIVER
23712359
W: http://www.cyclades.com/
23722360
S: Orphan
@@ -3067,12 +3055,6 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/kristoffer/linux-hpc.git
30673055
F: drivers/video/s1d13xxxfb.c
30683056
F: include/video/s1d13xxxfb.h
30693057

3070-
ETHEREXPRESS-16 NETWORK DRIVER
3071-
M: Philip Blundell <philb@gnu.org>
3072-
L: netdev@vger.kernel.org
3073-
S: Maintained
3074-
F: drivers/net/ethernet/i825xx/eexpress.*
3075-
30763058
ETHERNET BRIDGE
30773059
M: Stephen Hemminger <stephen@networkplumber.org>
30783060
L: bridge@lists.linux-foundation.org
@@ -5061,9 +5043,8 @@ S: Maintained
50615043
F: drivers/net/ethernet/marvell/sk*
50625044

50635045
MARVELL LIBERTAS WIRELESS DRIVER
5064-
M: Dan Williams <dcbw@redhat.com>
50655046
L: libertas-dev@lists.infradead.org
5066-
S: Maintained
5047+
S: Orphan
50675048
F: drivers/net/wireless/libertas/
50685049

50695050
MARVELL MV643XX ETHERNET DRIVER
@@ -8504,7 +8485,7 @@ F: drivers/usb/gadget/*uvc*.c
85048485
F: drivers/usb/gadget/webcam.c
85058486

85068487
USB WIRELESS RNDIS DRIVER (rndis_wlan)
8507-
M: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
8488+
M: Jussi Kivilinna <jussi.kivilinna@iki.fi>
85088489
L: linux-wireless@vger.kernel.org
85098490
S: Maintained
85108491
F: drivers/net/wireless/rndis_wlan.c

‎arch/powerpc/crypto/sha1-powerpc-asm.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
STEPUP4((t)+16, fn)
114114

115115
_GLOBAL(powerpc_sha_transform)
116-
PPC_STLU r1,-STACKFRAMESIZE(r1)
116+
PPC_STLU r1,-INT_FRAME_SIZE(r1)
117117
SAVE_8GPRS(14, r1)
118118
SAVE_10GPRS(22, r1)
119119

@@ -175,5 +175,5 @@ _GLOBAL(powerpc_sha_transform)
175175

176176
REST_8GPRS(14, r1)
177177
REST_10GPRS(22, r1)
178-
addi r1,r1,STACKFRAMESIZE
178+
addi r1,r1,INT_FRAME_SIZE
179179
blr

‎arch/powerpc/include/asm/bitops.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
#define smp_mb__before_clear_bit() smp_mb()
5353
#define smp_mb__after_clear_bit() smp_mb()
5454

55-
#define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
56-
5755
/* Macro for generating the ***_bits() functions */
5856
#define DEFINE_BITOP(fn, op, prefix, postfix) \
5957
static __inline__ void fn(unsigned long mask, \

‎arch/powerpc/include/asm/reg.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@
266266
#define SPRN_HSRR0 0x13A /* Hypervisor Save/Restore 0 */
267267
#define SPRN_HSRR1 0x13B /* Hypervisor Save/Restore 1 */
268268
#define SPRN_FSCR 0x099 /* Facility Status & Control Register */
269-
#define FSCR_TAR (1<<8) /* Enable Target Adress Register */
269+
#define FSCR_TAR (1 << (63-55)) /* Enable Target Address Register */
270+
#define FSCR_DSCR (1 << (63-61)) /* Enable Data Stream Control Register */
270271
#define SPRN_TAR 0x32f /* Target Address Register */
271272
#define SPRN_LPCR 0x13E /* LPAR Control Register */
272273
#define LPCR_VPM0 (1ul << (63-0))

‎arch/powerpc/include/asm/systbl.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,4 @@ SYSCALL_SPU(setns)
358358
COMPAT_SYS(process_vm_readv)
359359
COMPAT_SYS(process_vm_writev)
360360
SYSCALL(finit_module)
361+
SYSCALL(ni_syscall) /* sys_kcmp */

‎arch/powerpc/include/asm/unistd.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <uapi/asm/unistd.h>
1313

1414

15-
#define __NR_syscalls 354
15+
#define __NR_syscalls 355
1616

1717
#define __NR__exit __NR_exit
1818
#define NR_syscalls __NR_syscalls

‎arch/powerpc/include/uapi/asm/unistd.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@
376376
#define __NR_process_vm_readv 351
377377
#define __NR_process_vm_writev 352
378378
#define __NR_finit_module 353
379+
#define __NR_kcmp 354
379380

380381

381382
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */

‎arch/powerpc/kernel/cpu_setup_power.S‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ _GLOBAL(__restore_cpu_power7)
4848

4949
_GLOBAL(__setup_cpu_power8)
5050
mflr r11
51+
bl __init_FSCR
5152
bl __init_hvmode_206
5253
mtlr r11
5354
beqlr
@@ -56,13 +57,13 @@ _GLOBAL(__setup_cpu_power8)
5657
mfspr r3,SPRN_LPCR
5758
oris r3, r3, LPCR_AIL_3@h
5859
bl __init_LPCR
59-
bl __init_FSCR
6060
bl __init_TLB
6161
mtlr r11
6262
blr
6363

6464
_GLOBAL(__restore_cpu_power8)
6565
mflr r11
66+
bl __init_FSCR
6667
mfmsr r3
6768
rldicl. r0,r3,4,63
6869
beqlr
@@ -115,7 +116,7 @@ __init_LPCR:
115116

116117
__init_FSCR:
117118
mfspr r3,SPRN_FSCR
118-
ori r3,r3,FSCR_TAR
119+
ori r3,r3,FSCR_TAR|FSCR_DSCR
119120
mtspr SPRN_FSCR,r3
120121
blr
121122

0 commit comments

Comments
 (0)