Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 02:57:05 +0000
From:      "sepherosa_gmail.com (Sepherosa Ziehau)" <phabric-noreply@FreeBSD.org>
To:        freebsd-virtualization@freebsd.org
Subject:   [Differential] [Request, 7 lines] D5273: hyperv/hn: Always do transmission scheduling.
Message-ID:  <differential-rev-PHID-DREV-z2xerzi3cdu43hju55zk-req@FreeBSD.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
sepherosa_gmail.com created this revision.
sepherosa_gmail.com added reviewers: network, adrian, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com.
sepherosa_gmail.com added subscribers: freebsd-net-list, freebsd-virtualization-list.

REVISION SUMMARY
  This one gives the best performance so far.

REVISION DETAIL
  https://reviews.freebsd.org/D5273

AFFECTED FILES
  sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c

CHANGE DETAILS
  diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
  --- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
  +++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
  @@ -465,6 +465,13 @@
   	    hn_tx_chimney_size < sc->hn_tx_chimney_max)
   		sc->hn_tx_chimney_size = hn_tx_chimney_size;
   
  +	/*
  +	 * Always schedule transmission instead of trying
  +	 * to do direct transmission.  This one gives the
  +	 * best performance so far.
  +	 */
  +	sc->hn_sched_tx = 1;
  +
   	ctx = device_get_sysctl_ctx(dev);
   	child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, network, adrian, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com
Cc: freebsd-virtualization-list, freebsd-net-list

[-- Attachment #2 --]
diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
--- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -465,6 +465,13 @@
 	    hn_tx_chimney_size < sc->hn_tx_chimney_max)
 		sc->hn_tx_chimney_size = hn_tx_chimney_size;
 
+	/*
+	 * Always schedule transmission instead of trying
+	 * to do direct transmission.  This one gives the
+	 * best performance so far.
+	 */
+	sc->hn_sched_tx = 1;
+
 	ctx = device_get_sysctl_ctx(dev);
 	child = SYSCTL_CHILDREN(device_get_sysctl_tree(dev));
 

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-z2xerzi3cdu43hju55zk-req>