Commit b010e5a7 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: clean up NetVsc.h

Cleans up coding style issues with NetVsc.h

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a0086dc5
...@@ -31,16 +31,14 @@ ...@@ -31,16 +31,14 @@
#include "include/NetVscApi.h" #include "include/NetVscApi.h"
/* #defines */
/* #define NVSC_MIN_PROTOCOL_VERSION 1 */ /* #define NVSC_MIN_PROTOCOL_VERSION 1 */
/* #define NVSC_MAX_PROTOCOL_VERSION 1 */ /* #define NVSC_MAX_PROTOCOL_VERSION 1 */
#define NETVSC_SEND_BUFFER_SIZE 64*1024 /* 64K */ #define NETVSC_SEND_BUFFER_SIZE (64*1024) /* 64K */
#define NETVSC_SEND_BUFFER_ID 0xface #define NETVSC_SEND_BUFFER_ID 0xface
#define NETVSC_RECEIVE_BUFFER_SIZE 1024*1024 /* 1MB */ #define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024) /* 1MB */
#define NETVSC_RECEIVE_BUFFER_ID 0xcafe #define NETVSC_RECEIVE_BUFFER_ID 0xcafe
...@@ -50,27 +48,27 @@ ...@@ -50,27 +48,27 @@
#define NETVSC_RECEIVE_PACKETLIST_COUNT 256 #define NETVSC_RECEIVE_PACKETLIST_COUNT 256
/* Data types */
/* Per netvsc channel-specific */ /* Per netvsc channel-specific */
struct NETVSC_DEVICE { struct NETVSC_DEVICE {
struct hv_device *Device; struct hv_device *Device;
atomic_t RefCount; atomic_t RefCount;
atomic_t NumOutstandingSends; atomic_t NumOutstandingSends;
/* List of free preallocated hv_netvsc_packet to represent receive packet */ /*
* List of free preallocated hv_netvsc_packet to represent receive
* packet
*/
LIST_ENTRY ReceivePacketList; LIST_ENTRY ReceivePacketList;
spinlock_t receive_packet_list_lock; spinlock_t receive_packet_list_lock;
/* Send buffer allocated by us but manages by NetVSP */ /* Send buffer allocated by us but manages by NetVSP */
void * SendBuffer; void *SendBuffer;
u32 SendBufferSize; u32 SendBufferSize;
u32 SendBufferGpadlHandle; u32 SendBufferGpadlHandle;
u32 SendSectionSize; u32 SendSectionSize;
/* Receive buffer allocated by us but manages by NetVSP */ /* Receive buffer allocated by us but manages by NetVSP */
void * ReceiveBuffer; void *ReceiveBuffer;
u32 ReceiveBufferSize; u32 ReceiveBufferSize;
u32 ReceiveBufferGpadlHandle; u32 ReceiveBufferGpadlHandle;
u32 ReceiveSectionCount; u32 ReceiveSectionCount;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment