hyperv: Increase the buffer length for netvsc_channel_cb()
[linux-block.git] / drivers / net / hyperv / hyperv_net.h
index 02a3ee282eee2c54f7f9b34948d7e03680d6b022..2f48f790c9b43e983f44107a97f42f2268262099 100644 (file)
@@ -585,13 +585,13 @@ struct nvsp_message {
 
 #define NETVSC_RECEIVE_BUFFER_SIZE             (1024*1024*16)  /* 16MB */
 #define NETVSC_RECEIVE_BUFFER_SIZE_LEGACY      (1024*1024*15)  /* 15MB */
-#define NETVSC_SEND_BUFFER_SIZE                        (1024 * 1024 * 16)   /* 16MB */
+#define NETVSC_SEND_BUFFER_SIZE                        (1024 * 1024 * 15)   /* 15MB */
 #define NETVSC_INVALID_INDEX                   -1
 
 
 #define NETVSC_RECEIVE_BUFFER_ID               0xcafe
 
-#define NETVSC_PACKET_SIZE                      2048
+#define NETVSC_PACKET_SIZE                      4096
 
 #define VRSS_SEND_TAB_SIZE 16
 
@@ -642,7 +642,7 @@ struct netvsc_device {
        int ring_size;
 
        /* The primary channel callback buffer */
-       unsigned char cb_buffer[NETVSC_PACKET_SIZE];
+       unsigned char *cb_buffer;
        /* The sub channel callback buffer */
        unsigned char *sub_cb_buf;
 };