diff options
author | sephe <sephe@FreeBSD.org> | 2016-02-18 07:00:47 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-02-18 07:00:47 +0000 |
commit | 0bc3ca0f91f8d99899b9215b20ca30dd4f58516d (patch) | |
tree | 969bf3d59d594d0de2a05e3919a1357bd6ce8bd7 | |
parent | 6c751167c1da18ab11e3750e5c124a20f3781453 (diff) | |
download | FreeBSD-src-0bc3ca0f91f8d99899b9215b20ca30dd4f58516d.zip FreeBSD-src-0bc3ca0f91f8d99899b9215b20ca30dd4f58516d.tar.gz |
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
-rw-r--r-- | sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c index 3126955..a855601 100644 --- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -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)); |