summaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[mailto:vkuznets@redhat.com]>2015-05-06 20:47:43 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 15:19:00 -0400
commitfea844a2b0edd6540d5cde2cd54a8a3c86e9c53f (patch)
tree364d8e107de38d5f4e18dcb2820d0a3e08d10d3a /include/linux/hyperv.h
parent8dfd332674758135039d0d2d2a7479934ff0b9c5 (diff)
Drivers: hv: vmbus: briefly comment num_sc and next_oc
next_oc and num_sc fields of struct vmbus_channel deserve a description. Move them closer to sc_list as these fields are related to it. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.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.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index ea934864293d..3932a993ff5a 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -727,6 +727,15 @@ struct vmbus_channel {
727 */ 727 */
728 struct list_head sc_list; 728 struct list_head sc_list;
729 /* 729 /*
730 * Current number of sub-channels.
731 */
732 int num_sc;
733 /*
734 * Number of a sub-channel (position within sc_list) which is supposed
735 * to be used as the next outgoing channel.
736 */
737 int next_oc;
738 /*
730 * The primary channel this sub-channel belongs to. 739 * The primary channel this sub-channel belongs to.
731 * This will be NULL for the primary channel. 740 * This will be NULL for the primary channel.
732 */ 741 */
@@ -740,9 +749,6 @@ struct vmbus_channel {
740 * link up channels based on their CPU affinity. 749 * link up channels based on their CPU affinity.
741 */ 750 */
742 struct list_head percpu_list; 751 struct list_head percpu_list;
743
744 int num_sc;
745 int next_oc;
746}; 752};
747 753
748static inline void set_channel_read_state(struct vmbus_channel *c, bool state) 754static inline void set_channel_read_state(struct vmbus_channel *c, bool state)