diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2011-12-15 16:45:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-04 19:13:05 -0500 |
commit | 453263421f88b4a7e508c2e7b639c97e99c5b118 (patch) | |
tree | b38aaaccac96fda0b3b6e25c05b0bbbbe7a84567 /drivers/net/hyperv/hyperv_net.h | |
parent | 3b148be0df8e45a0259d7e84001cf02e897af614 (diff) |
net/hyperv: Remove unnecessary kmap_atomic in netvsc driver
__get_free_pages() doesn't return HI memory, so the memory is always mapped.
kmap_atomic() is not necessary here. This patch removes the kmap_atomic()
calls and related code for locking and page manipulation.
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 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 49b131f71d7a..ff1b5209b45f 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h | |||
@@ -39,9 +39,6 @@ struct xferpage_packet { | |||
39 | u32 count; | 39 | u32 count; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | /* The number of pages which are enough to cover jumbo frame buffer. */ | ||
43 | #define NETVSC_PACKET_MAXPAGE 4 | ||
44 | |||
45 | /* | 42 | /* |
46 | * Represent netvsc packet which contains 1 RNDIS and 1 ethernet frame | 43 | * Represent netvsc packet which contains 1 RNDIS and 1 ethernet frame |
47 | * within the RNDIS | 44 | * within the RNDIS |
@@ -77,8 +74,9 @@ struct hv_netvsc_packet { | |||
77 | 74 | ||
78 | u32 total_data_buflen; | 75 | u32 total_data_buflen; |
79 | /* Points to the send/receive buffer where the ethernet frame is */ | 76 | /* Points to the send/receive buffer where the ethernet frame is */ |
77 | void *data; | ||
80 | u32 page_buf_cnt; | 78 | u32 page_buf_cnt; |
81 | struct hv_page_buffer page_buf[NETVSC_PACKET_MAXPAGE]; | 79 | struct hv_page_buffer page_buf[0]; |
82 | }; | 80 | }; |
83 | 81 | ||
84 | struct netvsc_device_info { | 82 | struct netvsc_device_info { |