diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2018-09-14 12:10:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-25 14:33:24 -0400 |
commit | 52a42c2a90226dc61c99bbd0cb096deeb52c334b (patch) | |
tree | 5ed0c2c0e95fd17f12001d147442b278137be78f /include/linux/hyperv.h | |
parent | 800b932969c53c4044ff9f9fd1ee793a87fa8ef0 (diff) |
vmbus: keep pointer to ring buffer page
Avoid going from struct page to virt address (and back) by just
keeping pointer to the allocated pages instead of virt address.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r-- | include/linux/hyperv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 6c4575c7f46b..a6c32d2d090b 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
@@ -739,7 +739,7 @@ struct vmbus_channel { | |||
739 | u32 ringbuffer_gpadlhandle; | 739 | u32 ringbuffer_gpadlhandle; |
740 | 740 | ||
741 | /* Allocated memory for ring buffer */ | 741 | /* Allocated memory for ring buffer */ |
742 | void *ringbuffer_pages; | 742 | struct page *ringbuffer_page; |
743 | u32 ringbuffer_pagecount; | 743 | u32 ringbuffer_pagecount; |
744 | struct hv_ring_buffer_info outbound; /* send to parent */ | 744 | struct hv_ring_buffer_info outbound; /* send to parent */ |
745 | struct hv_ring_buffer_info inbound; /* receive from parent */ | 745 | struct hv_ring_buffer_info inbound; /* receive from parent */ |