aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorSepherosa Ziehau <sephe@FreeBSD.org>2016-03-02 01:33:30 +0000
committerSepherosa Ziehau <sephe@FreeBSD.org>2016-03-02 01:33:30 +0000
commit990aae810be0d97d0aa3a625f5075f53d348a5ef (patch)
treecc5548e34c74589d09044f24c1b87879de201cae /sys/dev
parent87d697796afc7e9d695bbb655e966fe8e6e718c2 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hyperv/vmbus/hv_channel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_channel.c b/sys/dev/hyperv/vmbus/hv_channel.c
index 47fcc13b58f4..03a3457531e1 100644
--- a/sys/dev/hyperv/vmbus/hv_channel.c
+++ b/sys/dev/hyperv/vmbus/hv_channel.c
@@ -93,7 +93,7 @@ vmbus_channel_sysctl_monalloc(SYSCTL_HANDLER_ARGS)
}
static void
-hv_vmbus_channel_stat(hv_vmbus_channel* channel)
+vmbus_channel_sysctl_create(hv_vmbus_channel* channel)
{
device_t dev;
struct sysctl_oid *devch_sysctl;
@@ -164,6 +164,7 @@ hv_vmbus_channel_stat(hv_vmbus_channel* channel)
&(channel->outbound),
"outbound ring buffer stats");
}
+
/**
* @brief Open the specified channel
*/
@@ -227,8 +228,8 @@ hv_vmbus_channel_open(
in,
recv_ring_buffer_size);
- /* setup statistic tracking for this channel */
- hv_vmbus_channel_stat(new_channel);
+ /* Create sysctl tree for this channel */
+ vmbus_channel_sysctl_create(new_channel);
/**
* Establish the gpadl for the ring buffer