svn commit: r295742 - head/sys/dev/hyperv/netvsc
Sepherosa Ziehau
sephe at FreeBSD.org
Thu Feb 18 07:00:49 UTC 2016
Author: sephe
Date: Thu Feb 18 07:00:47 2016
New Revision: 295742
URL: https://svnweb.freebsd.org/changeset/base/295742
Log:
hyperv/hn: Always do transmission scheduling.
This one gives the best performance so far.
Reviewed by: adrian
Approved by: adrian (mentor)
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5273
Modified:
head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Modified: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c Thu Feb 18 06:55:05 2016 (r295741)
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c Thu Feb 18 07:00:47 2016 (r295742)
@@ -465,6 +465,13 @@ netvsc_attach(device_t dev)
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));
More information about the svn-src-head
mailing list