summaryrefslogtreecommitdiff
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2016-01-28 09:29:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-08 08:34:12 +0300
commit3c75354d043ad546148d6992e40033ecaefc5ea5 (patch)
treec4c1d226f6b13b54b1fcd7199f1410941956de71 /include/linux/hyperv.h
parent3ccb4fd8f492f99aece21acc1bd6142275f26236 (diff)
downloadlinux-3c75354d043ad546148d6992e40033ecaefc5ea5.tar.xz
Drivers: hv: vmbus: add a helper function to set a channel's pending send size
This will be used by the coming net/hvsock driver. Signed-off-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 3172521df805..4af51a3f98d9 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -816,6 +816,12 @@ static inline void *get_per_channel_state(struct vmbus_channel *c)
return c->per_channel_state;
}
+static inline void set_channel_pending_send_size(struct vmbus_channel *c,
+ u32 size)
+{
+ c->outbound.ring_buffer->pending_send_sz = size;
+}
+
void vmbus_onmessage(void *context);
int vmbus_request_offers(void);