summaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-09-21 23:58:49 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 04:47:18 -0400
commitc2e5df616e1ae6c2a074cb241ebb65a318ebaf7c (patch)
tree0cfd997e11d7123eb1fed1bfc95522976b79d6a3 /include/linux/hyperv.h
parent876a1b08d0f9d7df406f702a9aba0e058500efac (diff)
vmbus: add per-channel sysfs info
This extends existing vmbus related sysfs structure to provide per-channel state information. This is useful when diagnosing issues with multiple queues in networking and storage. The existing sysfs only displayed information about the primary channel. The one place it reported multiple channels was the channel_vp_mapping file which violated the sysfs convention of one value per file. Signed-off-by: Stephen Hemminger <sthemmin@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 c458d7b7ad19..ef16ee039850 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -829,6 +829,11 @@ struct vmbus_channel {
829 struct rcu_head rcu; 829 struct rcu_head rcu;
830 830
831 /* 831 /*
832 * For sysfs per-channel properties.
833 */
834 struct kobject kobj;
835
836 /*
832 * For performance critical channels (storage, networking 837 * For performance critical channels (storage, networking
833 * etc,), Hyper-V has a mechanism to enhance the throughput 838 * etc,), Hyper-V has a mechanism to enhance the throughput
834 * at the expense of latency: 839 * at the expense of latency:
@@ -1089,6 +1094,7 @@ struct hv_device {
1089 struct device device; 1094 struct device device;
1090 1095
1091 struct vmbus_channel *channel; 1096 struct vmbus_channel *channel;
1097 struct kset *channels_kset;
1092}; 1098};
1093 1099
1094 1100