From owner-freebsd-virtualization@freebsd.org Sun Feb 14 02:57:05 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51AE5AA0FA3 for ; Sun, 14 Feb 2016 02:57:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.rbsd.freebsd.org (unknown [IPv6:2607:fc50:2000:101::1bb:73]) by mx1.freebsd.org (Postfix) with ESMTP id 3328F1D3A for ; Sun, 14 Feb 2016 02:57:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 3244033208C2; Sun, 14 Feb 2016 02:57:05 +0000 (UTC) Date: Sun, 14 Feb 2016 02:57:05 +0000 To: freebsd-virtualization@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5273+333+011061944716eb47@reviews.freebsd.org Subject: [Differential] [Request, 7 lines] D5273: hyperv/hn: Always do transmission scheduling. Message-ID: X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , Thread-Topic: D5273: hyperv/hn: Always do transmission scheduling. X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk Thread-Index: NjBlMTZiZTJjNDkyNWRhNTA0YmJkYWZhYmIx MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_9d3c4b2c00e31a2633db8d0444029bdd" X-Mailman-Approved-At: Sun, 14 Feb 2016 03:09:44 +0000 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 02:57:05 -0000 --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--