diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2011-12-15 13:45:17 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-04 16:13:05 -0800 |
commit | 4d447c9a6ebc0142d320f075c5bac6d202a79fd4 (patch) | |
tree | 6eb2a1a17e6de57dba5d350fc2821e2f48a8a484 /drivers/net/hyperv/hyperv_net.h | |
parent | f157e78de5923dfb209355f3005ce1b5d64f7998 (diff) | |
download | kernel_goldelico_gta04-4d447c9a6ebc0142d320f075c5bac6d202a79fd4.zip kernel_goldelico_gta04-4d447c9a6ebc0142d320f075c5bac6d202a79fd4.tar.gz kernel_goldelico_gta04-4d447c9a6ebc0142d320f075c5bac6d202a79fd4.tar.bz2 |
net/hyperv: Add support for jumbo frame up to 64KB
Allow the user set the MTU up to 65536 for Linux guests running on
Hyper-V 2008 R2 or later.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 2877670..dec5836 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -456,12 +456,9 @@ struct nvsp_message { } __packed; +#define NETVSC_MTU 65536 - -/* #define NVSC_MIN_PROTOCOL_VERSION 1 */ -/* #define NVSC_MAX_PROTOCOL_VERSION 1 */ - -#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024) /* 1MB */ +#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*2) /* 2MB */ #define NETVSC_RECEIVE_BUFFER_ID 0xcafe @@ -479,6 +476,7 @@ struct netvsc_device { u32 nvsp_version; atomic_t num_outstanding_sends; + bool start_remove; bool destroy; /* * List of free preallocated hv_netvsc_packet to represent receive |