search for: netvsc_device

Displaying 20 results from an estimated 79 matches for "netvsc_device".

2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...rs/staging/hv/netvsc.c @@ -31,141 +31,141 @@ /* Globals */ -static const char *gDriverName = "netvsc"; +static const char *driver_name = "netvsc"; /* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */ -static const struct hv_guid gNetVscDeviceType = { +static const struct hv_guid netvsc_device_type = { .data = { 0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46, 0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E } }; -static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo); +static int NetVscOnDeviceAdd(struct hv_device *device, void *additional_info); -stati...
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...rs/staging/hv/netvsc.c @@ -31,141 +31,141 @@ /* Globals */ -static const char *gDriverName = "netvsc"; +static const char *driver_name = "netvsc"; /* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */ -static const struct hv_guid gNetVscDeviceType = { +static const struct hv_guid netvsc_device_type = { .data = { 0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46, 0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E } }; -static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo); +static int NetVscOnDeviceAdd(struct hv_device *device, void *additional_info); -stati...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...struct timer_list poll_timer; /* SA-111 workaround */ struct work_struct work; diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index ff8e5be..7841cae 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -44,40 +44,41 @@ static const struct hv_guid netvsc_device_type = { } }; -static int netvsc_device_add(struct vm_device *device, void *additional_info); +static int netvsc_device_add(struct hyperv_device *device, + void *additional_info); -static int netvsc_device_remove(struct vm_device *device); +static int netvsc_device_remove(struct hyperv_dev...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...struct timer_list poll_timer; /* SA-111 workaround */ struct work_struct work; diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index ff8e5be..7841cae 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -44,40 +44,41 @@ static const struct hv_guid netvsc_device_type = { } }; -static int netvsc_device_add(struct vm_device *device, void *additional_info); +static int netvsc_device_add(struct hyperv_device *device, + void *additional_info); -static int netvsc_device_remove(struct vm_device *device); +static int netvsc_device_remove(struct hyperv_dev...
2011 Sep 08
25
[PATCH 0000/0025] Staging: hv: Driver cleanup
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver specific data functionality. 4) Other general cleanup. Regards, K. Y
2011 Sep 08
25
[PATCH 0000/0025] Staging: hv: Driver cleanup
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver specific data functionality. 4) Other general cleanup. Regards, K. Y
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
.../hv/netvsc.c @@ -26,6 +26,7 @@ #include <linux/io.h> #include <linux/slab.h> #include "hv_api.h" +#include "vmbus.h" #include "logging.h" #include "netvsc.h" #include "rndis_filter.h" @@ -43,40 +44,40 @@ static const struct hv_guid netvsc_device_type = { } }; -static int netvsc_device_add(struct hv_device *device, void *additional_info); +static int netvsc_device_add(struct vm_device *device, void *additional_info); -static int netvsc_device_remove(struct hv_device *device); +static int netvsc_device_remove(struct vm_device *device)...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
.../hv/netvsc.c @@ -26,6 +26,7 @@ #include <linux/io.h> #include <linux/slab.h> #include "hv_api.h" +#include "vmbus.h" #include "logging.h" #include "netvsc.h" #include "rndis_filter.h" @@ -43,40 +44,40 @@ static const struct hv_guid netvsc_device_type = { } }; -static int netvsc_device_add(struct hv_device *device, void *additional_info); +static int netvsc_device_add(struct vm_device *device, void *additional_info); -static int netvsc_device_remove(struct hv_device *device); +static int netvsc_device_remove(struct vm_device *device)...
2011 Apr 21
8
[PATCH 0/8] staging: hv: clean up forward declarations and camel cases in netvsc.c
...an up forward declaration staging: hv: move netvsc_send_recv_completion() to clean up forward declaration staging: hv: move netvsc_destroy_recv_buf() to clean up forward declaration staging: hv: move netvsc_destroy_send_buf() to clean up forward declaration staging: hv: move netvsc_device_add() to clean up forward declaration staging: hv: clean up unused forward declarations staging: hv: convert function name NetVscDisconnectFromVsp to lower case drivers/staging/hv/netvsc.c | 686 +++++++++++++++++++++---------------------- 1 files changed, 328 insertions(+), 358 deletion...
2011 Apr 21
8
[PATCH 0/8] staging: hv: clean up forward declarations and camel cases in netvsc.c
...an up forward declaration staging: hv: move netvsc_send_recv_completion() to clean up forward declaration staging: hv: move netvsc_destroy_recv_buf() to clean up forward declaration staging: hv: move netvsc_destroy_send_buf() to clean up forward declaration staging: hv: move netvsc_device_add() to clean up forward declaration staging: hv: clean up unused forward declarations staging: hv: convert function name NetVscDisconnectFromVsp to lower case drivers/staging/hv/netvsc.c | 686 +++++++++++++++++++++---------------------- 1 files changed, 328 insertions(+), 358 deletion...
2011 Jun 29
38
[PATCH 00/40] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Cleanup the reference counting mess for both stor and net devices. 2) Handle all block devices using the storvsc driver. 3) Accomodate some host side scsi emulation bugs. 4) In case of scsi errors off-line the device. Regads, K. Y
2011 Jun 29
38
[PATCH 00/40] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Cleanup the reference counting mess for both stor and net devices. 2) Handle all block devices using the storvsc driver. 3) Accomodate some host side scsi emulation bugs. 4) In case of scsi errors off-line the device. Regads, K. Y
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
.../hv/netvsc.c @@ -26,6 +26,7 @@ #include <linux/io.h> #include <linux/slab.h> #include "hv_api.h" +#include "vmbus.h" #include "logging.h" #include "netvsc.h" #include "rndis_filter.h" @@ -43,40 +44,41 @@ static const struct hv_guid netvsc_device_type = { } }; -static int netvsc_device_add(struct hv_device *device, void *additional_info); +static int netvsc_device_add(struct hyperv_device *device, + void *additional_info); -static int netvsc_device_remove(struct hv_device *device); +static int netvsc_device_remove(struct hyperv_dev...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
.../hv/netvsc.c @@ -26,6 +26,7 @@ #include <linux/io.h> #include <linux/slab.h> #include "hv_api.h" +#include "vmbus.h" #include "logging.h" #include "netvsc.h" #include "rndis_filter.h" @@ -43,40 +44,41 @@ static const struct hv_guid netvsc_device_type = { } }; -static int netvsc_device_add(struct hv_device *device, void *additional_info); +static int netvsc_device_add(struct hyperv_device *device, + void *additional_info); -static int netvsc_device_remove(struct hv_device *device); +static int netvsc_device_remove(struct hyperv_dev...
2017 Feb 01
0
[PATCH 05/14] netvsc: remove no longer needed receive staging buffers
...is_filter.c | 11 ------ 3 files changed, 11 insertions(+), 88 deletions(-) diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 3958adade7eb..cce70ceba6d5 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -748,11 +748,6 @@ struct netvsc_device { int ring_size; - /* The primary channel callback buffer */ - unsigned char *cb_buffer; - /* The sub channel callback buffer */ - unsigned char *sub_cb_buf; - struct multi_send_data msd[VRSS_CHANNEL_MAX]; u32 max_pkt; /* max number of pkt in one send, e.g. 8 */ u32 pkt_align; /* alignm...
2011 May 25
0
[PATCH 1/1] staging: hv: remove netvsc send buffer and related functions
..._PROTOCOL_VERSION 1 */ /* #define NVSC_MAX_PROTOCOL_VERSION 1 */ -#define NETVSC_SEND_BUFFER_SIZE (64*1024) /* 64K */ -#define NETVSC_SEND_BUFFER_ID 0xface - - #define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024) /* 1MB */ #define NETVSC_RECEIVE_BUFFER_ID 0xcafe @@ -383,12 +379,6 @@ struct netvsc_device { struct list_head recv_pkt_list; spinlock_t recv_pkt_list_lock; - /* Send buffer allocated by us but manages by NetVSP */ - void *send_buf; - u32 send_buf_size; - u32 send_buf_gpadl_handle; - u32 send_section_size; - /* Receive buffer allocated by us but manages by NetVSP */ void *recv_b...
2011 May 25
0
[PATCH 1/1] staging: hv: remove netvsc send buffer and related functions
..._PROTOCOL_VERSION 1 */ /* #define NVSC_MAX_PROTOCOL_VERSION 1 */ -#define NETVSC_SEND_BUFFER_SIZE (64*1024) /* 64K */ -#define NETVSC_SEND_BUFFER_ID 0xface - - #define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024) /* 1MB */ #define NETVSC_RECEIVE_BUFFER_ID 0xcafe @@ -383,12 +379,6 @@ struct netvsc_device { struct list_head recv_pkt_list; spinlock_t recv_pkt_list_lock; - /* Send buffer allocated by us but manages by NetVSP */ - void *send_buf; - u32 send_buf_size; - u32 send_buf_gpadl_handle; - u32 send_section_size; - /* Receive buffer allocated by us but manages by NetVSP */ void *recv_b...
2017 Feb 05
2
[PATCH 05/14] netvsc: remove no longer needed receive staging buffers
...anged, 11 insertions(+), 88 deletions(-) > > diff --git a/drivers/net/hyperv/hyperv_net.h > b/drivers/net/hyperv/hyperv_net.h > index 3958adade7eb..cce70ceba6d5 100644 > --- a/drivers/net/hyperv/hyperv_net.h > +++ b/drivers/net/hyperv/hyperv_net.h > @@ -748,11 +748,6 @@ struct netvsc_device { > > int ring_size; > > - /* The primary channel callback buffer */ > - unsigned char *cb_buffer; > - /* The sub channel callback buffer */ > - unsigned char *sub_cb_buf; > - > struct multi_send_data msd[VRSS_CHANNEL_MAX]; > u32 max_pkt; /* max number of pkt i...
2017 Feb 05
2
[PATCH 05/14] netvsc: remove no longer needed receive staging buffers
...anged, 11 insertions(+), 88 deletions(-) > > diff --git a/drivers/net/hyperv/hyperv_net.h > b/drivers/net/hyperv/hyperv_net.h > index 3958adade7eb..cce70ceba6d5 100644 > --- a/drivers/net/hyperv/hyperv_net.h > +++ b/drivers/net/hyperv/hyperv_net.h > @@ -748,11 +748,6 @@ struct netvsc_device { > > int ring_size; > > - /* The primary channel callback buffer */ > - unsigned char *cb_buffer; > - /* The sub channel callback buffer */ > - unsigned char *sub_cb_buf; > - > struct multi_send_data msd[VRSS_CHANNEL_MAX]; > u32 max_pkt; /* max number of pkt i...
2011 Jun 17
7
[PATCH 1/5] staging: hv: fix some white spaces in netvsc driver
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: Abhishek Kane <v-abkane at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at microsoft.com> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com> --- drivers/staging/hv/netvsc.c | 8 ++++---- drivers/staging/hv/netvsc_drv.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff