]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
Drivers: hv: vmbus: add a helper function to set a channel's pending send size
authorDexuan Cui <decui@microsoft.com>
Thu, 28 Jan 2016 06:29:37 +0000 (22:29 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 05:34:12 +0000 (21:34 -0800)
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>
include/linux/hyperv.h

index 3172521df805f5df46aef831782f8c1dd1de2976..4af51a3f98d975fbc64ac85aa1b751fe6d6b1500 100644 (file)
@@ -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);