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>

next in thread | raw e-mail | index | archive | help

--b1_9d3c4b2c00e31a2633db8d0444029bdd
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit

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

--b1_9d3c4b2c00e31a2633db8d0444029bdd
Content-Type: text/x-patch; charset=utf-8; name="D5273.13284.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D5273.13284.patch"

ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu
YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z
eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl
di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC00NjUsNiArNDY1LDEz
IEBACiAJICAgIGhuX3R4X2NoaW1uZXlfc2l6ZSA8IHNjLT5obl90eF9jaGltbmV5X21heCkKIAkJ
c2MtPmhuX3R4X2NoaW1uZXlfc2l6ZSA9IGhuX3R4X2NoaW1uZXlfc2l6ZTsKIAorCS8qCisJICog
QWx3YXlzIHNjaGVkdWxlIHRyYW5zbWlzc2lvbiBpbnN0ZWFkIG9mIHRyeWluZworCSAqIHRvIGRv
IGRpcmVjdCB0cmFuc21pc3Npb24uICBUaGlzIG9uZSBnaXZlcyB0aGUKKwkgKiBiZXN0IHBlcmZv
cm1hbmNlIHNvIGZhci4KKwkgKi8KKwlzYy0+aG5fc2NoZWRfdHggPSAxOworCiAJY3R4ID0gZGV2
aWNlX2dldF9zeXNjdGxfY3R4KGRldik7CiAJY2hpbGQgPSBTWVNDVExfQ0hJTERSRU4oZGV2aWNl
X2dldF9zeXNjdGxfdHJlZShkZXYpKTsKIAoK


--b1_9d3c4b2c00e31a2633db8d0444029bdd--



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