Skip to content

Commit 12e5550

Browse files
committed
Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
* 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (466 commits) net/hyperv: Add support for jumbo frame up to 64KB net/hyperv: Add NETVSP protocol version negotiation net/hyperv: Remove unnecessary kmap_atomic in netvsc driver staging/rtl8192e: Register against lib80211 staging/rtl8192e: Convert to lib80211_crypt_info staging/rtl8192e: Convert to lib80211_crypt_data and lib80211_crypt_ops staging/rtl8192e: Add lib80211.h to rtllib.h staging/mei: add watchdog device registration wrappers drm/omap: GEM, deal with cache staging: vt6656: int.c, int.h: Change return of function to void staging: usbip: removed unused definitions from header staging: usbip: removed dead code from receive function staging:iio: Drop {mark,unmark}_in_use callbacks staging:iio: Drop buffer mark_param_change callback staging:iio: Drop the unused buffer enable() and is_enabled() callbacks staging:iio: Drop buffer busy flag staging:iio: Make sure a device is only opened once at a time staging:iio: Disallow modifying buffer size when buffer is enabled staging:iio: Disallow changing scan elements in all buffered modes staging:iio: Use iio_buffer_enabled instead of open coding it ... Fix up conflict in drivers/staging/iio/adc/ad799x_core.c (removal of module_init due to using module_i2c_driver() helper, next to removal of MODULE_ALIAS due to using MODULE_DEVICE_TABLE instead).
2 parents 55b81e6 + 4d447c9 commit 12e5550

462 files changed

Lines changed: 24350 additions & 36047 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.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
NVIDIA compliant embedded controller
2+
3+
Required properties:
4+
- compatible : should be "nvidia,nvec".
5+
- reg : the iomem of the i2c slave controller
6+
- interrupts : the interrupt line of the i2c slave controller
7+
- clock-frequency : the frequency of the i2c bus
8+
- gpios : the gpio used for ec request
9+
- slave-addr: the i2c address of the slave controller

‎MAINTAINERS‎

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ S: Maintained
184184
F: Documentation/filesystems/9p.txt
185185
F: fs/9p/
186186

187-
A2232 SERIAL BOARD DRIVER
188-
L: linux-m68k@lists.linux-m68k.org
189-
S: Orphan
190-
F: drivers/staging/generic_serial/ser_a2232*
191-
192187
AACRAID SCSI RAID DRIVER
193188
M: Adaptec OEM Raid Solutions <aacraid@adaptec.com>
194189
L: linux-scsi@vger.kernel.org
@@ -1587,7 +1582,7 @@ M: Franky (Zhenhui) Lin <frankyl@broadcom.com>
15871582
M: Kan Yan <kanyan@broadcom.com>
15881583
L: linux-wireless@vger.kernel.org
15891584
S: Supported
1590-
F: drivers/staging/brcm80211/
1585+
F: drivers/net/wireless/brcm80211/
15911586

15921587
BROADCOM BNX2FC 10 GIGABIT FCOE DRIVER
15931588
M: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
@@ -1891,12 +1886,6 @@ L: platform-driver-x86@vger.kernel.org
18911886
S: Maintained
18921887
F: drivers/platform/x86/compal-laptop.c
18931888

1894-
COMPUTONE INTELLIPORT MULTIPORT CARD
1895-
W: http://www.wittsend.com/computone.html
1896-
S: Orphan
1897-
F: Documentation/serial/computone.txt
1898-
F: drivers/staging/tty/ip2/
1899-
19001889
CONEXANT ACCESSRUNNER USB DRIVER
19011890
M: Simon Arlott <cxacru@fire.lp0.eu>
19021891
L: accessrunner-general@lists.sourceforge.net
@@ -2200,15 +2189,6 @@ F: drivers/md/dm*
22002189
F: include/linux/device-mapper.h
22012190
F: include/linux/dm-*.h
22022191

2203-
DIGI INTL. EPCA DRIVER
2204-
M: "Digi International, Inc" <Eng.Linux@digi.com>
2205-
L: Eng.Linux@digi.com
2206-
W: http://www.digi.com
2207-
S: Orphan
2208-
F: Documentation/serial/digiepca.txt
2209-
F: drivers/staging/tty/epca*
2210-
F: drivers/staging/tty/digi*
2211-
22122192
DIOLAN U2C-12 I2C DRIVER
22132193
M: Guenter Roeck <guenter.roeck@ericsson.com>
22142194
L: linux-i2c@vger.kernel.org
@@ -5555,11 +5535,6 @@ M: Maxim Levitsky <maximlevitsky@gmail.com>
55555535
S: Maintained
55565536
F: drivers/memstick/host/r592.*
55575537

5558-
RISCOM8 DRIVER
5559-
S: Orphan
5560-
F: Documentation/serial/riscom8.txt
5561-
F: drivers/staging/tty/riscom8*
5562-
55635538
ROCKETPORT DRIVER
55645539
P: Comtrol Corp.
55655540
W: http://www.comtrol.com
@@ -6222,11 +6197,6 @@ F: arch/arm/mach-spear3xx/spear3*0_evb.c
62226197
F: arch/arm/mach-spear6xx/spear600.c
62236198
F: arch/arm/mach-spear6xx/spear600_evb.c
62246199

6225-
SPECIALIX IO8+ MULTIPORT SERIAL CARD DRIVER
6226-
S: Orphan
6227-
F: Documentation/serial/specialix.txt
6228-
F: drivers/staging/tty/specialix*
6229-
62306200
SPI SUBSYSTEM
62316201
M: Grant Likely <grant.likely@secretlab.ca>
62326202
L: spi-devel-general@lists.sourceforge.net
@@ -6304,11 +6274,6 @@ M: Manu Abraham <abraham.manu@gmail.com>
63046274
S: Odd Fixes
63056275
F: drivers/staging/crystalhd/
63066276

6307-
STAGING - CYPRESS WESTBRIDGE SUPPORT
6308-
M: David Cross <david.cross@cypress.com>
6309-
S: Odd Fixes
6310-
F: drivers/staging/westbridge/
6311-
63126277
STAGING - ECHO CANCELLER
63136278
M: Steve Underwood <steveu@coppice.org>
63146279
M: David Rowe <david@rowetel.com>
@@ -6414,7 +6379,7 @@ S: Odd Fixes
64146379
F: drivers/staging/winbond/
64156380

64166381
STAGING - XGI Z7,Z9,Z11 PCI DISPLAY DRIVER
6417-
M: Arnaud Patard <apatard@mandriva.com>
6382+
M: Arnaud Patard <arnaud.patard@rtp-net.org>
64186383
S: Odd Fixes
64196384
F: drivers/staging/xgifb/
64206385

‎drivers/net/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,4 +342,6 @@ config VMXNET3
342342
To compile this driver as a module, choose M here: the
343343
module will be called vmxnet3.
344344

345+
source "drivers/net/hyperv/Kconfig"
346+
345347
endif # NETDEVICES

‎drivers/net/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ obj-$(CONFIG_USB_USBNET) += usb/
6868
obj-$(CONFIG_USB_ZD1201) += usb/
6969
obj-$(CONFIG_USB_IPHETH) += usb/
7070
obj-$(CONFIG_USB_CDC_PHONET) += usb/
71+
72+
obj-$(CONFIG_HYPERV_NET) += hyperv/

‎drivers/net/hyperv/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
config HYPERV_NET
2+
tristate "Microsoft Hyper-V virtual network driver"
3+
depends on HYPERV
4+
help
5+
Select this option to enable the Hyper-V virtual network driver.

‎drivers/net/hyperv/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
obj-$(CONFIG_HYPERV_NET) += hv_netvsc.o
2+
3+
hv_netvsc-y := netvsc_drv.o netvsc.o rndis_filter.o
Lines changed: 123 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ struct xferpage_packet {
3939
u32 count;
4040
};
4141

42-
/* The number of pages which are enough to cover jumbo frame buffer. */
43-
#define NETVSC_PACKET_MAXPAGE 4
44-
4542
/*
4643
* Represent netvsc packet which contains 1 RNDIS and 1 ethernet frame
4744
* within the RNDIS
@@ -77,8 +74,9 @@ struct hv_netvsc_packet {
7774

7875
u32 total_data_buflen;
7976
/* Points to the send/receive buffer where the ethernet frame is */
77+
void *data;
8078
u32 page_buf_cnt;
81-
struct hv_page_buffer page_buf[NETVSC_PACKET_MAXPAGE];
79+
struct hv_page_buffer page_buf[0];
8280
};
8381

8482
struct netvsc_device_info {
@@ -87,6 +85,27 @@ struct netvsc_device_info {
8785
int ring_size;
8886
};
8987

88+
enum rndis_device_state {
89+
RNDIS_DEV_UNINITIALIZED = 0,
90+
RNDIS_DEV_INITIALIZING,
91+
RNDIS_DEV_INITIALIZED,
92+
RNDIS_DEV_DATAINITIALIZED,
93+
};
94+
95+
struct rndis_device {
96+
struct netvsc_device *net_dev;
97+
98+
enum rndis_device_state state;
99+
bool link_state;
100+
atomic_t new_req_id;
101+
102+
spinlock_t request_lock;
103+
struct list_head req_list;
104+
105+
unsigned char hw_mac_adr[ETH_ALEN];
106+
};
107+
108+
90109
/* Interface */
91110
int netvsc_device_add(struct hv_device *device, void *additional_info);
92111
int netvsc_device_remove(struct hv_device *device);
@@ -109,11 +128,13 @@ int rndis_filter_receive(struct hv_device *dev,
109128
int rndis_filter_send(struct hv_device *dev,
110129
struct hv_netvsc_packet *pkt);
111130

131+
int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter);
132+
133+
112134
#define NVSP_INVALID_PROTOCOL_VERSION ((u32)0xFFFFFFFF)
113135

114136
#define NVSP_PROTOCOL_VERSION_1 2
115-
#define NVSP_MIN_PROTOCOL_VERSION NVSP_PROTOCOL_VERSION_1
116-
#define NVSP_MAX_PROTOCOL_VERSION NVSP_PROTOCOL_VERSION_1
137+
#define NVSP_PROTOCOL_VERSION_2 0x30002
117138

118139
enum {
119140
NVSP_MSG_TYPE_NONE = 0,
@@ -138,11 +159,36 @@ enum {
138159
NVSP_MSG1_TYPE_SEND_RNDIS_PKT,
139160
NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE,
140161

141-
/*
142-
* This should be set to the number of messages for the version with
143-
* the maximum number of messages.
144-
*/
145-
NVSP_NUM_MSG_PER_VERSION = 9,
162+
/* Version 2 messages */
163+
NVSP_MSG2_TYPE_SEND_CHIMNEY_DELEGATED_BUF,
164+
NVSP_MSG2_TYPE_SEND_CHIMNEY_DELEGATED_BUF_COMP,
165+
NVSP_MSG2_TYPE_REVOKE_CHIMNEY_DELEGATED_BUF,
166+
167+
NVSP_MSG2_TYPE_RESUME_CHIMNEY_RX_INDICATION,
168+
169+
NVSP_MSG2_TYPE_TERMINATE_CHIMNEY,
170+
NVSP_MSG2_TYPE_TERMINATE_CHIMNEY_COMP,
171+
172+
NVSP_MSG2_TYPE_INDICATE_CHIMNEY_EVENT,
173+
174+
NVSP_MSG2_TYPE_SEND_CHIMNEY_PKT,
175+
NVSP_MSG2_TYPE_SEND_CHIMNEY_PKT_COMP,
176+
177+
NVSP_MSG2_TYPE_POST_CHIMNEY_RECV_REQ,
178+
NVSP_MSG2_TYPE_POST_CHIMNEY_RECV_REQ_COMP,
179+
180+
NVSP_MSG2_TYPE_ALLOC_RXBUF,
181+
NVSP_MSG2_TYPE_ALLOC_RXBUF_COMP,
182+
183+
NVSP_MSG2_TYPE_FREE_RXBUF,
184+
185+
NVSP_MSG2_TYPE_SEND_VMQ_RNDIS_PKT,
186+
NVSP_MSG2_TYPE_SEND_VMQ_RNDIS_PKT_COMP,
187+
188+
NVSP_MSG2_TYPE_SEND_NDIS_CONFIG,
189+
190+
NVSP_MSG2_TYPE_ALLOC_CHIMNEY_HANDLE,
191+
NVSP_MSG2_TYPE_ALLOC_CHIMNEY_HANDLE_COMP,
146192
};
147193

148194
enum {
@@ -153,6 +199,7 @@ enum {
153199
NVSP_STAT_PROTOCOL_TOO_OLD,
154200
NVSP_STAT_INVALID_RNDIS_PKT,
155201
NVSP_STAT_BUSY,
202+
NVSP_STAT_PROTOCOL_UNSUPPORTED,
156203
NVSP_STAT_MAX,
157204
};
158205

@@ -337,9 +384,69 @@ union nvsp_1_message_uber {
337384
send_rndis_pkt_complete;
338385
} __packed;
339386

387+
388+
/*
389+
* Network VSP protocol version 2 messages:
390+
*/
391+
struct nvsp_2_vsc_capability {
392+
union {
393+
u64 data;
394+
struct {
395+
u64 vmq:1;
396+
u64 chimney:1;
397+
u64 sriov:1;
398+
u64 ieee8021q:1;
399+
u64 correlation_id:1;
400+
};
401+
};
402+
} __packed;
403+
404+
struct nvsp_2_send_ndis_config {
405+
u32 mtu;
406+
u32 reserved;
407+
struct nvsp_2_vsc_capability capability;
408+
} __packed;
409+
410+
/* Allocate receive buffer */
411+
struct nvsp_2_alloc_rxbuf {
412+
/* Allocation ID to match the allocation request and response */
413+
u32 alloc_id;
414+
415+
/* Length of the VM shared memory receive buffer that needs to
416+
* be allocated
417+
*/
418+
u32 len;
419+
} __packed;
420+
421+
/* Allocate receive buffer complete */
422+
struct nvsp_2_alloc_rxbuf_comp {
423+
/* The NDIS_STATUS code for buffer allocation */
424+
u32 status;
425+
426+
u32 alloc_id;
427+
428+
/* GPADL handle for the allocated receive buffer */
429+
u32 gpadl_handle;
430+
431+
/* Receive buffer ID */
432+
u64 recv_buf_id;
433+
} __packed;
434+
435+
struct nvsp_2_free_rxbuf {
436+
u64 recv_buf_id;
437+
} __packed;
438+
439+
union nvsp_2_message_uber {
440+
struct nvsp_2_send_ndis_config send_ndis_config;
441+
struct nvsp_2_alloc_rxbuf alloc_rxbuf;
442+
struct nvsp_2_alloc_rxbuf_comp alloc_rxbuf_comp;
443+
struct nvsp_2_free_rxbuf free_rxbuf;
444+
} __packed;
445+
340446
union nvsp_all_messages {
341447
union nvsp_message_init_uber init_msg;
342448
union nvsp_1_message_uber v1_msg;
449+
union nvsp_2_message_uber v2_msg;
343450
} __packed;
344451

345452
/* ALL Messages */
@@ -349,12 +456,9 @@ struct nvsp_message {
349456
} __packed;
350457

351458

459+
#define NETVSC_MTU 65536
352460

353-
354-
/* #define NVSC_MIN_PROTOCOL_VERSION 1 */
355-
/* #define NVSC_MAX_PROTOCOL_VERSION 1 */
356-
357-
#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024) /* 1MB */
461+
#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*2) /* 2MB */
358462

359463
#define NETVSC_RECEIVE_BUFFER_ID 0xcafe
360464

@@ -369,7 +473,10 @@ struct nvsp_message {
369473
struct netvsc_device {
370474
struct hv_device *dev;
371475

476+
u32 nvsp_version;
477+
372478
atomic_t num_outstanding_sends;
479+
bool start_remove;
373480
bool destroy;
374481
/*
375482
* List of free preallocated hv_netvsc_packet to represent receive

0 commit comments

Comments
 (0)