summaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-09-14 12:10:16 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-25 14:33:24 -0400
commit52a42c2a90226dc61c99bbd0cb096deeb52c334b (patch)
tree5ed0c2c0e95fd17f12001d147442b278137be78f /include/linux/hyperv.h
parent800b932969c53c4044ff9f9fd1ee793a87fa8ef0 (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.h2
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 */