Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2016 01:33:30 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296290 - head/sys/dev/hyperv/vmbus
Message-ID:  <201603020133.u221XUga002792@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Wed Mar  2 01:33:30 2016
New Revision: 296290
URL: https://svnweb.freebsd.org/changeset/base/296290

Log:
  hyperv/chan: Function renaming; no functional change
  
  The renamed function create a sysctl tree for channel, and many
  non-statistics nodes exists, so don't claim it only adds sysctl
  nodes for statistics.
  
  MFC after:	1 week
  Sponsored by:	Microsoft OSTC
  Differential Revision:	https://reviews.freebsd.org/D5503

Modified:
  head/sys/dev/hyperv/vmbus/hv_channel.c

Modified: head/sys/dev/hyperv/vmbus/hv_channel.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_channel.c	Wed Mar  2 01:26:05 2016	(r296289)
+++ head/sys/dev/hyperv/vmbus/hv_channel.c	Wed Mar  2 01:33:30 2016	(r296290)
@@ -93,7 +93,7 @@ vmbus_channel_sysctl_monalloc(SYSCTL_HAN
 }
 
 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->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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603020133.u221XUga002792>