From owner-freebsd-net@freebsd.org Sun Feb 14 02:49:19 2016 Return-Path: Delivered-To: freebsd-net@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 CB42FAA0865 for ; Sun, 14 Feb 2016 02:49:19 +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 ADA5C15AE for ; Sun, 14 Feb 2016 02:49:19 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id AA8EB3320415; Sun, 14 Feb 2016 02:49:19 +0000 (UTC) Date: Sun, 14 Feb 2016 02:49:19 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5185+325+ec92cccb639ec0fa@reviews.freebsd.org Subject: [Differential] [Updated, 115 lines] D5185: tcp/lro: Allow network drivers to set the limit for TCP ACK/data segment aggregation limit Message-ID: <320ad061b698a086c36b55e1c87a09fc@localhost.localdomain> 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: D5185: tcp/lro: Allow network drivers to set the limit for TCP ACK/data segment aggregation limit X-Herald-Rules: <64> 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-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: NTU0NmM0Mjk2NjdmNzVhNmM3MzlkMWQyNTdmIFa/6y8= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_320ad061b698a086c36b55e1c87a09fc" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 02:49:20 -0000 --b1_320ad061b698a086c36b55e1c87a09fc Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit sepherosa_gmail.com updated this revision to Diff 13282. sepherosa_gmail.com added a comment. Expand length limitation to 32 bits. Suggested by hselasky. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5185?vs=13028&id=13282 REVISION DETAIL https://reviews.freebsd.org/D5185 AFFECTED FILES sys/dev/hyperv/netvsc/hv_net_vsc.h sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c sys/netinet/tcp_lro.c sys/netinet/tcp_lro.h EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, np, transport, hselasky, network, adrian, gallatin Cc: freebsd-virtualization-list, freebsd-net-list --b1_320ad061b698a086c36b55e1c87a09fc Content-Type: text/x-patch; charset=utf-8; name="D5185.13282.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5185.13282.patch" ZGlmZiAtLWdpdCBhL3N5cy9uZXRpbmV0L3RjcF9scm8uaCBiL3N5cy9uZXRpbmV0L3RjcF9scm8u aAotLS0gYS9zeXMvbmV0aW5ldC90Y3BfbHJvLmgKKysrIGIvc3lzL25ldGluZXQvdGNwX2xyby5o CkBAIC05MSwxMSArOTEsMTYgQEAKIAl1bnNpZ25lZAlscm9fY250OwogCXVuc2lnbmVkCWxyb19t YnVmX2NvdW50OwogCXVuc2lnbmVkCWxyb19tYnVmX21heDsKKwl1bnNpZ25lZCBzaG9ydAlscm9f YWNrY250X2xpbTsJCS8qIG1heCAjIG9mIGFnZ3JlZ2F0ZWQgQUNLcyAqLworCXVuc2lnbmVkIAls cm9fb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AqLwoK --b1_320ad061b698a086c36b55e1c87a09fc-- From owner-freebsd-net@freebsd.org Sun Feb 14 02:54:36 2016 Return-Path: Delivered-To: freebsd-net@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 C93FCAA0D73 for ; Sun, 14 Feb 2016 02:54:36 +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 B388F1B88 for ; Sun, 14 Feb 2016 02:54:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id A70D43320783; Sun, 14 Feb 2016 02:54:36 +0000 (UTC) Date: Sun, 14 Feb 2016 02:54:36 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5272+325+58625a4751947605@reviews.freebsd.org Subject: [Differential] [Request, 42 lines] D5272: hyperv/hn: Add option to allow sharing TX taskq between hn instances 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: D5272: hyperv/hn: Add option to allow sharing TX taskq between hn instances 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: ZDMwMGVlOTEyMjMxYzQ3NmRmOTRjNmZlNjNh MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_870e3205ad69492660fb29ee2522b569" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 02:54:36 -0000 --b1_870e3205ad69492660fb29ee2522b569 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 It is off by default. This eases further experimenting on this driver. REVISION DETAIL https://reviews.freebsd.org/D5272 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 @@ -238,6 +238,11 @@ #endif #endif +static int hn_share_tx_taskq = 0; +TUNABLE_INT("hw.hn.share_tx_taskq", &hn_share_tx_taskq); + +static struct taskqueue *hn_tx_taskq; + /* * Forward declarations */ @@ -353,10 +358,14 @@ if (hn_trust_hostip) sc->hn_trust_hcsum |= HN_TRUST_HCSUM_IP; - sc->hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, - taskqueue_thread_enqueue, &sc->hn_tx_taskq); - taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", - device_get_nameunit(dev)); + if (hn_tx_taskq == NULL) { + sc->hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + taskqueue_thread_enqueue, &sc->hn_tx_taskq); + taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", + device_get_nameunit(dev)); + } else { + sc->hn_tx_taskq = hn_tx_taskq; + } TASK_INIT(&sc->hn_start_task, 0, hn_start_taskfunc, sc); TASK_INIT(&sc->hn_txeof_task, 0, hn_txeof_taskfunc, sc); @@ -602,7 +611,8 @@ taskqueue_drain(sc->hn_tx_taskq, &sc->hn_start_task); taskqueue_drain(sc->hn_tx_taskq, &sc->hn_txeof_task); - taskqueue_free(sc->hn_tx_taskq); + if (sc->hn_tx_taskq != hn_tx_taskq) + taskqueue_free(sc->hn_tx_taskq); ifmedia_removeall(&sc->hn_media); #if defined(INET) || defined(INET6) @@ -2039,6 +2049,28 @@ NV_UNLOCK(sc); } +static void +hn_tx_taskq_create(void *arg __unused) +{ + if (!hn_share_tx_taskq) + return; + + hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + taskqueue_thread_enqueue, &hn_tx_taskq); + taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); +} +SYSINIT(hn_txtq_create, SI_SUB_DRIVERS, SI_ORDER_FIRST, + hn_tx_taskq_create, NULL); + +static void +hn_tx_taskq_destroy(void *arg __unused) +{ + if (hn_tx_taskq != NULL) + taskqueue_free(hn_tx_taskq); +} +SYSUNINIT(hn_txtq_destroy, SI_SUB_DRIVERS, SI_ORDER_FIRST, + hn_tx_taskq_destroy, NULL); + static device_method_t netvsc_methods[] = { /* Device interface */ DEVMETHOD(device_probe, netvsc_probe), 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_870e3205ad69492660fb29ee2522b569 Content-Type: text/x-patch; charset=utf-8; name="D5272.13283.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5272.13283.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNj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0ZSwgU0lfU1VCX0RSSVZFUlMsIFNJX09SREVSX0ZJUlNULAorICAgIGhuX3R4 X3Rhc2txX2NyZWF0ZSwgTlVMTCk7CisKK3N0YXRpYyB2b2lkCitobl90eF90YXNrcV9kZXN0cm95 KHZvaWQgKmFyZyBfX3VudXNlZCkKK3sKKwlpZiAoaG5fdHhfdGFza3EgIT0gTlVMTCkKKwkJdGFz a3F1ZXVlX2ZyZWUoaG5fdHhfdGFza3EpOworfQorU1lTVU5JTklUKGhuX3R4dHFfZGVzdHJveSwg U0lfU1VCX0RSSVZFUlMsIFNJX09SREVSX0ZJUlNULAorICAgIGhuX3R4X3Rhc2txX2Rlc3Ryb3ks IE5VTEwpOworCiBzdGF0aWMgZGV2aWNlX21ldGhvZF90IG5ldHZzY19tZXRob2RzW10gPSB7CiAg ICAgICAgIC8qIERldmljZSBpbnRlcmZhY2UgKi8KICAgICAgICAgREVWTUVUSE9EKGRldmljZV9w cm9iZSwgICAgICAgICBuZXR2c2NfcHJvYmUpLAoK --b1_870e3205ad69492660fb29ee2522b569-- From owner-freebsd-net@freebsd.org Sun Feb 14 02:57:05 2016 Return-Path: Delivered-To: freebsd-net@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 5B773AA0FA4 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 3CDAB1D3C 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 3BA9C33208C4; Sun, 14 Feb 2016 02:57:05 +0000 (UTC) Date: Sun, 14 Feb 2016 02:57:05 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5273+325+60a85a16779663f2@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_96473a7a3ae0a303ea9b4f12273e881c" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 02:57:05 -0000 --b1_96473a7a3ae0a303ea9b4f12273e881c 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_96473a7a3ae0a303ea9b4f12273e881c 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_96473a7a3ae0a303ea9b4f12273e881c-- From owner-freebsd-net@freebsd.org Sun Feb 14 03:26:03 2016 Return-Path: Delivered-To: freebsd-net@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 8CB7DAA606A for ; Sun, 14 Feb 2016 03:26:03 +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 753A51008 for ; Sun, 14 Feb 2016 03:26:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 745C533204BF; Sun, 14 Feb 2016 03:26:03 +0000 (UTC) Date: Sun, 14 Feb 2016 03:26:03 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5274+325+f71ea7c9f2eb58b5@reviews.freebsd.org Subject: [Differential] [Request, 74 lines] D5274: hyperv/hn: Change global tunable prefix to hw.hn 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: D5274: hyperv/hn: Change global tunable prefix to hw.hn 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: MWFhYmZkMDZkODQzOGI1NjgyOWFlNTAzNzIw MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_ca95c5b6983950fe7e17384304dd10f3" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 03:26:03 -0000 --b1_ca95c5b6983950fe7e17384304dd10f3 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 And use SYSCTL+CTLFLAG_RDTUN for them. Suggested by: adrian REVISION DETAIL https://reviews.freebsd.org/D5274 AFFECTED FILES sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c 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_ca95c5b6983950fe7e17384304dd10f3 Content-Type: text/x-patch; charset=utf-8; name="D5274.13285.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5274.13285.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC0yMDUsNDEgKzIwNSw1 NyBAQAogCiBpbnQgaHZfcHJvbWlzY19tb2RlID0gMDsgICAgLyogbm9ybW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GRlZmluZWQoSU5FVDYpCi0jaWYgX19G cmVlQlNEX3ZlcnNpb24gPj0gMTEwMDA5NQotCQlTWVNDVExfQUREX0lOVChkY19jdHgsIGRjX2No aWxkLCBPSURfQVVUTywgImxyb19lbnRyeV9jb3VudCIsCi0JCSAgICBDVExGTEFHX1JELCAmaG5f bHJvX2VudHJ5X2NvdW50LCAwLCAiTFJPIGVudHJ5IGNvdW50Iik7Ci0jZW5kaWYKLSNlbmRpZgot CX0KLQogCXJldHVybiAoMCk7CiBmYWlsZWQ6CiAJaG5fZGVzdHJveV90eF9yaW5nKHNjKTsKCg== --b1_ca95c5b6983950fe7e17384304dd10f3-- From owner-freebsd-net@freebsd.org Sun Feb 14 05:33:35 2016 Return-Path: Delivered-To: freebsd-net@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 EF9D0AA017F for ; Sun, 14 Feb 2016 05:33:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E072E2D5 for ; Sun, 14 Feb 2016 05:33:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1E5XWN1087886 for ; Sun, 14 Feb 2016 05:33:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 203630] [Hyper-V] [nat] [tcp] 10.2 NAT bug in TCP stack or hyperv netsvc driver Date: Sun, 14 Feb 2016 05:33:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: decui@microsoft.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: weh@microsoft.com X-Bugzilla-Flags: maintainer-feedback- mfc-stable9? mfc-stable10+ X-Bugzilla-Changed-Fields: flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 05:33:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203630 Dexuan Cui changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|maintainer-feedback?(weh@mi |maintainer-feedback- |crosoft.com) | --- Comment #30 from Dexuan Cui --- (In reply to Franco Fichtner from comment #28) @Franco, thanks for the reminder! We're trying to contact the FreeBSD relea= sing team and make an errata for 10.2 as you suggested. (In reply to Eddy from comment #29) @Eddy, it turns out the fix is only in the Head and stable/10, but not in t= he releng/10.2. :-( Now we're working with the FreeBSD releasing team on this too. BTW, whu has left our team, but we're always be reachable by the 2 mails on= the page https://wiki.freebsd.org/HyperV. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sun Feb 14 07:07:55 2016 Return-Path: Delivered-To: freebsd-net@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 5CDF0AA71BD for ; Sun, 14 Feb 2016 07:07:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E19818A4 for ; Sun, 14 Feb 2016 07:07:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1E77scr009084 for ; Sun, 14 Feb 2016 07:07:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 203630] [Hyper-V] [nat] [tcp] 10.2 NAT bug in TCP stack or hyperv netsvc driver Date: Sun, 14 Feb 2016 07:07:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: weh@microsoft.com X-Bugzilla-Flags: maintainer-feedback- mfc-stable9? mfc-stable10+ X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 07:07:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203630 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |re@FreeBSD.org --- Comment #31 from Kubilay Kocak --- Pending request/response to merge this to the releng/10.2 branch for 10.3-RELEASE --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sun Feb 14 08:23:17 2016 Return-Path: Delivered-To: freebsd-net@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 7A14AAA141F for ; Sun, 14 Feb 2016 08:23:17 +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 6630C13D8 for ; Sun, 14 Feb 2016 08:23:17 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 639473320F1E; Sun, 14 Feb 2016 08:23:17 +0000 (UTC) Date: Sun, 14 Feb 2016 08:23:17 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5275+325+02420e6166849e0c@reviews.freebsd.org Subject: [Differential] [Request, 374 lines] D5275: hyperv/hn: Split RX ring data structure out of softc 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: D5275: hyperv/hn: Split RX ring data structure out of softc 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: YjcyNDdhYWMyM2I2MDliMDQ0MmIxOWZkYTEz MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_1e3b8a4e66048739e50f18881b85d7a9" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 08:23:17 -0000 --b1_1e3b8a4e66048739e50f18881b85d7a9 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 paves the way for upcoming vRSS stuffs and eases more code cleanup. REVISION DETAIL https://reviews.freebsd.org/D5275 AFFECTED FILES sys/dev/hyperv/netvsc/hv_net_vsc.h sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c 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_1e3b8a4e66048739e50f18881b85d7a9 Content-Type: text/x-patch; charset=utf-8; name="D5275.13287.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5275.13287.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC0yNzUsMTIgKzI3NSwx NiBAQAogc3RhdGljIGludCBobl9scm9fYWNrY250X3N5c2N0bChTWVNDVExfSEFOR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HhkZXNjczsKIAl1X2xvbmcJCWhu X3NlbmRfZmFpbGVkOwogCXVfbG9uZwkJaG5fdHhkbWFfZmFpbGVkOwogCXVfbG9uZwkJaG5fdHhf Y29sbGFwc2VkOwogCXVfbG9uZwkJaG5fdHhfY2hpbW5leTsKIH0gaG5fc29mdGNfdDsKIAotI2Rl ZmluZSBITl9UUlVTVF9IQ1NVTV9JUAkweDAwMDEKLSNkZWZpbmUgSE5fVFJVU1RfSENTVU1fVENQ CTB4MDAwMgotI2RlZmluZSBITl9UUlVTVF9IQ1NVTV9VRFAJMHgwMDA0Ci0KIC8qCiAgKiBFeHRl cm5zCiAgKi8KCg== --b1_1e3b8a4e66048739e50f18881b85d7a9-- From owner-freebsd-net@freebsd.org Sun Feb 14 08:57:25 2016 Return-Path: Delivered-To: freebsd-net@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 585AAAA6539 for ; Sun, 14 Feb 2016 08:57:25 +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 3A2391FBC for ; Sun, 14 Feb 2016 08:57:25 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 38AA33320E69; Sun, 14 Feb 2016 08:57:25 +0000 (UTC) Date: Sun, 14 Feb 2016 08:57:25 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5276+325+13fc08d56765cf32@reviews.freebsd.org Subject: [Differential] [Request, 10 lines] D5276: hyperv/hn: Use taskqueue_enqueue() 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: D5276: hyperv/hn: Use taskqueue_enqueue() 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: MzI0MTg0N2Y0NTM5MGMyZDRiNmVhNmJlNmE2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_9505aa1f633af9e2cfdb55c0bc48d4c3" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 08:57:25 -0000 --b1_9505aa1f633af9e2cfdb55c0bc48d4c3 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 also eases experiment on the non-fast taskqueue. REVISION DETAIL https://reviews.freebsd.org/D5276 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 @@ -1549,7 +1549,7 @@ return; } do_sched: - taskqueue_enqueue_fast(sc->hn_tx_taskq, &sc->hn_start_task); + taskqueue_enqueue(sc->hn_tx_taskq, &sc->hn_start_task); } static void @@ -1566,10 +1566,8 @@ atomic_clear_int(&ifp->if_drv_flags, IFF_DRV_OACTIVE); sched = hn_start_locked(ifp, sc->hn_direct_tx_size); NV_UNLOCK(sc); - if (sched) { - taskqueue_enqueue_fast(sc->hn_tx_taskq, - &sc->hn_start_task); - } + if (sched) + taskqueue_enqueue(sc->hn_tx_taskq, &sc->hn_start_task); } else { do_sched: /* @@ -1579,7 +1577,7 @@ * races. */ atomic_clear_int(&ifp->if_drv_flags, IFF_DRV_OACTIVE); - taskqueue_enqueue_fast(sc->hn_tx_taskq, &sc->hn_txeof_task); + taskqueue_enqueue(sc->hn_tx_taskq, &sc->hn_txeof_task); } } 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_9505aa1f633af9e2cfdb55c0bc48d4c3 Content-Type: text/x-patch; charset=utf-8; name="D5276.13288.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5276.13288.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC0xNTQ5LDcgKzE1NDks NyBAQAogCQkJcmV0dXJuOwogCX0KIGRvX3NjaGVkOgotCXRhc2txdWV1ZV9lbnF1ZXVlX2Zhc3Qo c2MtPmhuX3R4X3Rhc2txLCAmc2MtPmhuX3N0YXJ0X3Rhc2spOworCXRhc2txdWV1ZV9lbnF1ZXVl KHNjLT5obl90eF90YXNrcSwgJnNjLT5obl9zdGFydF90YXNrKTsKIH0KIAogc3RhdGljIHZvaWQK QEAgLTE1NjYsMTAgKzE1NjYsOCBAQAogCQlhdG9taWNfY2xlYXJfaW50KCZpZnAtPmlmX2Rydl9m bGFncywgSUZGX0RSVl9PQUNUSVZFKTsKIAkJc2NoZWQgPSBobl9zdGFydF9sb2NrZWQoaWZwLCBz Yy0+aG5fZGlyZWN0X3R4X3NpemUpOwogCQlOVl9VTkxPQ0soc2MpOwotCQlpZiAoc2NoZWQpIHsK LQkJCXRhc2txdWV1ZV9lbnF1ZXVlX2Zhc3Qoc2MtPmhuX3R4X3Rhc2txLAotCQkJICAgICZzYy0+ aG5fc3RhcnRfdGFzayk7Ci0JCX0KKwkJaWYgKHNjaGVkKQorCQkJdGFza3F1ZXVlX2VucXVldWUo c2MtPmhuX3R4X3Rhc2txLCAmc2MtPmhuX3N0YXJ0X3Rhc2spOwogCX0gZWxzZSB7CiBkb19zY2hl ZDoKIAkJLyoKQEAgLTE1NzksNyArMTU3Nyw3IEBACiAJCSAqIHJhY2VzLgogCQkgKi8KIAkJYXRv bWljX2NsZWFyX2ludCgmaWZwLT5pZl9kcnZfZmxhZ3MsIElGRl9EUlZfT0FDVElWRSk7Ci0JCXRh c2txdWV1ZV9lbnF1ZXVlX2Zhc3Qoc2MtPmhuX3R4X3Rhc2txLCAmc2MtPmhuX3R4ZW9mX3Rhc2sp OworCQl0YXNrcXVldWVfZW5xdWV1ZShzYy0+aG5fdHhfdGFza3EsICZzYy0+aG5fdHhlb2ZfdGFz ayk7CiAJfQogfQogCgo= --b1_9505aa1f633af9e2cfdb55c0bc48d4c3-- From owner-freebsd-net@freebsd.org Sun Feb 14 09:06:08 2016 Return-Path: Delivered-To: freebsd-net@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 DB326AA6BE9 for ; Sun, 14 Feb 2016 09:06:08 +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 C822414B1 for ; Sun, 14 Feb 2016 09:06:08 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id C664D3320530; Sun, 14 Feb 2016 09:06:08 +0000 (UTC) Date: Sun, 14 Feb 2016 09:06:08 +0000 To: freebsd-net@freebsd.org From: "howard0su_gmail.com (Howard Su)" Reply-to: D5276+325+13fc08d56765cf32@reviews.freebsd.org Subject: [Differential] [Updated] D5276: hyperv/hn: Use taskqueue_enqueue() 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: D5276: hyperv/hn: Use taskqueue_enqueue() 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 In-Reply-To: References: Thread-Index: MzI0MTg0N2Y0NTM5MGMyZDRiNmVhNmJlNmE2IFbAQ4A= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 09:06:09 -0000 howard0su_gmail.com added a comment. This change is a noop since two functions are identical. REVISION DETAIL https://reviews.freebsd.org/D5276 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 From owner-freebsd-net@freebsd.org Sun Feb 14 09:07:06 2016 Return-Path: Delivered-To: freebsd-net@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 74A46AA6C94 for ; Sun, 14 Feb 2016 09:07:06 +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 60D9215F4 for ; Sun, 14 Feb 2016 09:07:06 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 5CC953320B92; Sun, 14 Feb 2016 09:07:06 +0000 (UTC) Date: Sun, 14 Feb 2016 09:07:06 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5276+325+13fc08d56765cf32@reviews.freebsd.org Subject: [Differential] [Commented On] D5276: hyperv/hn: Use taskqueue_enqueue() 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: D5276: hyperv/hn: Use taskqueue_enqueue() 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 In-Reply-To: References: Thread-Index: MzI0MTg0N2Y0NTM5MGMyZDRiNmVhNmJlNmE2IFbAQ7o= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 09:07:06 -0000 sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5276#112396, @howard0su_gmail.com wrote: > This change is a noop since two functions are identical. Yeah, that's the purpose of this change! REVISION DETAIL https://reviews.freebsd.org/D5276 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 From owner-freebsd-net@freebsd.org Sun Feb 14 21:00:12 2016 Return-Path: Delivered-To: freebsd-net@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 C92C3AA87C9 for ; Sun, 14 Feb 2016 21:00:12 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C20CC8E4 for ; Sun, 14 Feb 2016 21:00:12 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1EL01bF010836 for ; Sun, 14 Feb 2016 21:00:12 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201602142100.u1EL01bF010836@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-net@FreeBSD.org Subject: Problem reports for freebsd-net@FreeBSD.org that need special attention Date: Sun, 14 Feb 2016 21:00:12 +0000 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 21:00:12 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 193452 | Dell PowerEdge 210 II -- Kernel panic bce (broadc In Progress | 203422 | mpd/ppoe not working with re(4) with revision 285 New | 204438 | setsockopt() handling of kern.ipc.maxsockbuf limi New | 205592 | TCP processing in IPSec causes kernel panic New | 206053 | kqueue support code of netmap causes panic New | 206876 | ifconfig(8): Inconsistent behavior when creating Open | 194515 | Fatal Trap 12 Kernel with vimage Open | 199136 | [if_tap] Added down_on_close sysctl variable to t Open | 201694 | 10.2-BETA2 crashing when killing VIMAGE/VNET jail Open | 206533 | Intel I219-V in 11-CURRENT and 10-STABLE Open | 206544 | sendmsg(2) (sendto(2) too?) can fail with EINVAL; 11 problems total for which you should take action. From owner-freebsd-net@freebsd.org Sun Feb 14 22:58:49 2016 Return-Path: Delivered-To: freebsd-net@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 7EB6EAA8CE7 for ; Sun, 14 Feb 2016 22:58:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71C8B12AB for ; Sun, 14 Feb 2016 22:58:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1EMwnZH070462 for ; Sun, 14 Feb 2016 22:58:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Sun, 14 Feb 2016 22:58:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 22:58:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #22 from g_amanakis@yahoo.com --- Created attachment 167003 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167003&action= =3Dedit ffon.pcapng --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sun Feb 14 23:01:30 2016 Return-Path: Delivered-To: freebsd-net@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 A5314AA8F07 for ; Sun, 14 Feb 2016 23:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E7071724 for ; Sun, 14 Feb 2016 23:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1EN1TQx097500 for ; Sun, 14 Feb 2016 23:01:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Sun, 14 Feb 2016 23:01:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 23:01:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #23 from g_amanakis@yahoo.com --- Created attachment 167004 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167004&action= =3Dedit ffoff.pcapng I did another dump on a client on the local network (directly connected to gateway, no OpenVPN involved). The gateway ran 10.2-STABLE r295264 GENERIC.= The symptoms when fastforwarding was enabled were the same as with r295285. I did 2 dumps on the client:=20 net.inet.fastforwarding=3D0 on the gateway =3D=3D=3D> ffoff.pcapng =3D=3D= =3D> HTTP/GET happens at packet 10 net.inet.fastforwarding=3D1 on the gateway =3D=3D=3D> ffon.pcapng =3D=3D=3D= > HTTP/GET happens at packet 36 The only significant difference I see is that when fastforwarding is turned= off the gateway sends an ICMP Fragmentation needed to the client whereas when fastforwarding is on this doesn't happen, and the client keeps retransmitti= ng the HTTP/GET packet. Could it be that the ip_fastfwd.c doesn't correctly se= nd ICMP when the destination is unreachable and fragmentation is required? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sun Feb 14 23:23:20 2016 Return-Path: Delivered-To: freebsd-net@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 0CA87AA8889 for ; Sun, 14 Feb 2016 23:23:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2F346E0 for ; Sun, 14 Feb 2016 23:23:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1ENNI4D060510 for ; Sun, 14 Feb 2016 23:23:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Sun, 14 Feb 2016 23:23:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 23:23:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #24 from George V. Neville-Neil --- Thanks for the update and the new files. I am trying to reproduce this on = HEAD still. With your latest test were you still using IPFW and NAT or was this just vanilla forwarding? I have setup some test hosts in the lab The setup is: 172.16.0.1 172.16.0.2 172.16.1.2 172.16.1.3 source <-> router <-> sink=20 1500 576 and I'm doing a ping -s 1024 -D 172.16.1.3 and I do see the MTU error retur= ning on the source: 36 bytes from 172.16.0.2: frag needed and DF set (MTU 576) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 041c 0000 0 0000 3f 01 debc 172.16.0.1 172.16.1.3 Your hardware addresses in the pcaps are obfuscated so its hard to tell wha= ts happening at layer 2. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 00:16:21 2016 Return-Path: Delivered-To: freebsd-net@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 D11ECAA9F90 for ; Mon, 15 Feb 2016 00:16:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1CA3C1 for ; Mon, 15 Feb 2016 00:16:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1F0GLmd046450 for ; Mon, 15 Feb 2016 00:16:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 00:16:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 00:16:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #25 from George V. Neville-Neil --- (In reply to g_amanakis from comment #20) Jumping back a bit. I definitely see data to your client on both interfaces= in the tun and em0 traces. Looks like the client is 70.78.231.153? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 01:28:12 2016 Return-Path: Delivered-To: freebsd-net@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 2C461AA8ECF for ; Mon, 15 Feb 2016 01:28:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1B9E01B9A for ; Mon, 15 Feb 2016 01:28:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1F1SBIU018629 for ; Mon, 15 Feb 2016 01:28:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 01:28:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 01:28:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #26 from g_amanakis@yahoo.com --- (In reply to George V. Neville-Neil from comment #25) Yes, correct. 70.78.231.153 is the WAN-IP of the gateway. I used tcprewrite= to spoof the mac addresses. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 01:58:22 2016 Return-Path: Delivered-To: freebsd-net@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 5FEDFAA9A3D for ; Mon, 15 Feb 2016 01:58:22 +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 3EE4B96F for ; Mon, 15 Feb 2016 01:58:22 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 3DA7B6FBE; Mon, 15 Feb 2016 01:58:22 +0000 (UTC) Date: Mon, 15 Feb 2016 01:58:22 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5282+325+ff1faf9a27942119@reviews.freebsd.org Subject: [Differential] [Request, 4 lines] D5282: hyperv/hn: Use non-fast taskqueue for transmission 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: D5282: hyperv/hn: Use non-fast taskqueue for transmission 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: MTA0OWYzZmY5Yjk5MjNmYjE3MzdmZmI1ZDFj MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_dbf02bd8d30638fbe43e32f705f90573" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 01:58:22 -0000 --b1_dbf02bd8d30638fbe43e32f705f90573 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 Performance stays same; so no need to use fast taskqueue here. REVISION DETAIL https://reviews.freebsd.org/D5282 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 @@ -368,7 +368,7 @@ sc->hn_direct_tx_size = hn_direct_tx_size; if (hn_tx_taskq == NULL) { - sc->hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + sc->hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &sc->hn_tx_taskq); taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", device_get_nameunit(dev)); @@ -2178,7 +2178,7 @@ if (!hn_share_tx_taskq) return; - hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &hn_tx_taskq); taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); } 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_dbf02bd8d30638fbe43e32f705f90573 Content-Type: text/x-patch; charset=utf-8; name="D5282.13307.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5282.13307.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC0zNjgsNyArMzY4LDcg QEAKIAlzYy0+aG5fZGlyZWN0X3R4X3NpemUgPSBobl9kaXJlY3RfdHhfc2l6ZTsKIAogCWlmICho bl90eF90YXNrcSA9PSBOVUxMKSB7Ci0JCXNjLT5obl90eF90YXNrcSA9IHRhc2txdWV1ZV9jcmVh dGVfZmFzdCgiaG5fdHgiLCBNX1dBSVRPSywKKwkJc2MtPmhuX3R4X3Rhc2txID0gdGFza3F1ZXVl X2NyZWF0ZSgiaG5fdHgiLCBNX1dBSVRPSywKIAkJICAgIHRhc2txdWV1ZV90aHJlYWRfZW5xdWV1 ZSwgJnNjLT5obl90eF90YXNrcSk7CiAJCXRhc2txdWV1ZV9zdGFydF90aHJlYWRzKCZzYy0+aG5f dHhfdGFza3EsIDEsIFBJX05FVCwgIiVzIHR4IiwKIAkJICAgIGRldmljZV9nZXRfbmFtZXVuaXQo ZGV2KSk7CkBAIC0yMTc4LDcgKzIxNzgsNyBAQAogCWlmICghaG5fc2hhcmVfdHhfdGFza3EpCiAJ CXJldHVybjsKIAotCWhuX3R4X3Rhc2txID0gdGFza3F1ZXVlX2NyZWF0ZV9mYXN0KCJobl90eCIs IE1fV0FJVE9LLAorCWhuX3R4X3Rhc2txID0gdGFza3F1ZXVlX2NyZWF0ZSgiaG5fdHgiLCBNX1dB SVRPSywKIAkgICAgdGFza3F1ZXVlX3RocmVhZF9lbnF1ZXVlLCAmaG5fdHhfdGFza3EpOwogCXRh c2txdWV1ZV9zdGFydF90aHJlYWRzKCZobl90eF90YXNrcSwgMSwgUElfTkVULCAiaG4gdHgiKTsK IH0KCg== --b1_dbf02bd8d30638fbe43e32f705f90573-- From owner-freebsd-net@freebsd.org Mon Feb 15 02:03:30 2016 Return-Path: Delivered-To: freebsd-net@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 7E61CAA9CBA for ; Mon, 15 Feb 2016 02:03:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D6E8CBF for ; Mon, 15 Feb 2016 02:03:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1F23UNg076789 for ; Mon, 15 Feb 2016 02:03:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 02:03:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 02:03:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #27 from George V. Neville-Neil --- You only see this with IPFW + NAT, right? If you just use tryforward or, on older versions, fastforward, things are fine? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 03:27:00 2016 Return-Path: Delivered-To: freebsd-net@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 55176AA9C12 for ; Mon, 15 Feb 2016 03:27:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45EF2EDC for ; Mon, 15 Feb 2016 03:27:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1F3Qxpi009210 for ; Mon, 15 Feb 2016 03:27:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 03:26:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 03:27:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #28 from g_amanakis@yahoo.com --- Correct, up until now the problem occured with IPFW and in-kernel NAT for I= Pv4. I will test using plain fastforwarding (without NAT on IPv4) and report. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 06:25:07 2016 Return-Path: Delivered-To: freebsd-net@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 A035DAA8D21 for ; Mon, 15 Feb 2016 06:25:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 934EA1AD2 for ; Mon, 15 Feb 2016 06:25:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1F6P7uw069070 for ; Mon, 15 Feb 2016 06:25:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206721] FreeBSDs DHCP client(dhclient) does not support the interface-mtu option(option 26). Date: Mon, 15 Feb 2016 06:25:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jlpetz@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 06:25:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206721 --- Comment #2 from Jarrod Petz --- (In reply to Andrey V. Elsukov from comment #1) Perhaps that's part of the reason OpenBSD do this as an ioctl system call f= rom the C dhclient program and not the shell script? Though Linux does it via t= he shell script so somehow they made it work. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 08:59:11 2016 Return-Path: Delivered-To: freebsd-net@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 3A332AA6045 for ; Mon, 15 Feb 2016 08:59:11 +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 25CC11256 for ; Mon, 15 Feb 2016 08:59:11 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 24EDB6E13; Mon, 15 Feb 2016 08:59:11 +0000 (UTC) Date: Mon, 15 Feb 2016 08:59:11 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5283+325+ff964c8d52006f6a@reviews.freebsd.org Subject: [Differential] [Request, 612 lines] D5283: hyperv/hn: Split TX ring data structure out of softc 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: D5283: hyperv/hn: Split TX ring data structure out of softc 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: NzMzOGZkYjcxOGQ0MjYzYmE0NWE0Nzc3NTEx MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_978c101e263eea487e36cfb26c6cb168" X-Mailman-Approved-At: Mon, 15 Feb 2016 12:09:25 +0000 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 08:59:11 -0000 --b1_978c101e263eea487e36cfb26c6cb168 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 paves the way for upcoming vRSS stuffs and eases more code cleanup. REVISION DETAIL https://reviews.freebsd.org/D5283 AFFECTED FILES sys/dev/hyperv/netvsc/hv_net_vsc.h sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c 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_978c101e263eea487e36cfb26c6cb168 Content-Type: text/x-patch; charset=utf-8; name="D5283.13312.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5283.13312.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5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sKKwlzdHJ1Y3QgaG5fdHhfcmluZyAqaG5fdHhfcmluZzsKKwlpbnQJCWhuX3R4 X2NoaW1uZXlfbWF4OworCXN0cnVjdCB0YXNrcXVldWUgKmhuX3R4X3Rhc2txOworCXN0cnVjdCBz eXNjdGxfb2lkICpobl90eF9zeXNjdGxfdHJlZTsKIH0gaG5fc29mdGNfdDsKIAogLyoKCg== --b1_978c101e263eea487e36cfb26c6cb168-- From owner-freebsd-net@freebsd.org Mon Feb 15 13:35:01 2016 Return-Path: Delivered-To: freebsd-net@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 4D9E8AA87C7 for ; Mon, 15 Feb 2016 13:35:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3FAA31AAE for ; Mon, 15 Feb 2016 13:35:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1FDZ1PF092680 for ; Mon, 15 Feb 2016 13:35:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 13:35:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 13:35:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #29 from George V. Neville-Neil --- If you have a natd.conf file that would also be helpful. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 13:57:08 2016 Return-Path: Delivered-To: freebsd-net@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 1D453AA9271 for ; Mon, 15 Feb 2016 13:57:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FC641376 for ; Mon, 15 Feb 2016 13:57:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1FDv7qB036160 for ; Mon, 15 Feb 2016 13:57:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 13:57:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 13:57:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #30 from g_amanakis@yahoo.com --- I am using in-kernel NAT, you can see the configuration in the ipfw.txt attached above. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 17:03:21 2016 Return-Path: Delivered-To: freebsd-net@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 F3AA5AA8ECD for ; Mon, 15 Feb 2016 17:03:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA27D1390 for ; Mon, 15 Feb 2016 17:03:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1FH3L31014619 for ; Mon, 15 Feb 2016 17:03:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206533] Intel I219-V in 11-CURRENT and 10-STABLE Date: Mon, 15 Feb 2016 17:03:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: IntelNetworking, feature, needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: sbruno@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable10? X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 17:03:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206533 Sean Bruno changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |FIXED --- Comment #4 from Sean Bruno --- This is now fixed with the e1000 update from Intel: https://svnweb.freebsd.org/base?view=3Drevision&revision=3D295323 Author: erj Date: Fri Feb 5 17:14:37 2016 UTC (9 days, 23 hours ago) Changed paths: 23 Log Message:=20=20=20=20 Update em(4) to 7.6.1; update igb(4) to 2.5.3. Major changes: - Add i219/i219(2) hardware support. (Found on Skylake generation and newer chipsets.) - Further to the last Skylake support diff, this one also includes support for the Lewisburg chipset (i219(3)). - Add a workaround to an igb hardware errata. All 1G server products need to have IPv6 extension header parsing turned = off. This should be listed in the specification updates for current 1G server products, e.g. for i350 it's errata #37 in this document: =20 http://www.intel.com/content/dam/www/public/us/en/documents/specification-u= pdates/ethernet-controller-i350-spec-update.pdf - Avoton (i354) PHY errata workaround added And a bunch of minor fixes, as well as #defines for things that the current em(4)/igb(4) drivers don't implement. Differential Revision: https://reviews.freebsd.org/D3162 Reviewed by: sbruno, marius, gnn Approved by: gnn MFC after: 2 weeks Sponsored by: Intel Corporation --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 17:04:17 2016 Return-Path: Delivered-To: freebsd-net@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 AC7E6AA8F49 for ; Mon, 15 Feb 2016 17:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A7A8148F for ; Mon, 15 Feb 2016 17:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1FH4GHQ016018 for ; Mon, 15 Feb 2016 17:04:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 201694] 10.2-BETA2 crashing when killing VIMAGE/VNET jails Date: Mon, 15 Feb 2016 17:04:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: crash, needs-qa, vimage X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sbruno@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 17:04:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201694 Sean Bruno changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbruno@FreeBSD.org --- Comment #9 from Sean Bruno --- (In reply to Paul Armstrong from comment #8) You may want to pull in a test for the 10.3 BETA if you have the time. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Mon Feb 15 20:47:54 2016 Return-Path: Delivered-To: freebsd-net@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 8DFEAAA8D23 for ; Mon, 15 Feb 2016 20:47:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F9F6268 for ; Mon, 15 Feb 2016 20:47:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1FKlrL2023694 for ; Mon, 15 Feb 2016 20:47:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Mon, 15 Feb 2016 20:47:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2016 20:47:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #31 from George V. Neville-Neil --- Looking at the pcap files I see that the client is always advertising an MS= S of 1460. In your setup what are the MTUs of each interface involved? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 01:07:07 2016 Return-Path: Delivered-To: freebsd-net@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 EA463AA943E for ; Tue, 16 Feb 2016 01:07:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DB7051D27 for ; Tue, 16 Feb 2016 01:07:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1G177NO035826 for ; Tue, 16 Feb 2016 01:07:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 01:07:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 01:07:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #32 from g_amanakis@yahoo.com --- (In reply to George V. Neville-Neil from comment #31) MTU is 1500 on all interfaces (on WAN and LAN interface on the gateway, as = well as on the client). --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 01:15:32 2016 Return-Path: Delivered-To: freebsd-net@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 D43E2AA9A2D for ; Tue, 16 Feb 2016 01:15:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C541A1217 for ; Tue, 16 Feb 2016 01:15:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1G1FWdm053855 for ; Tue, 16 Feb 2016 01:15:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 01:15:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 01:15:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #33 from George V. Neville-Neil --- Really? Then why is there the "packet too large" ICMP message? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 02:16:19 2016 Return-Path: Delivered-To: freebsd-net@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 C1805AA8A54 for ; Tue, 16 Feb 2016 02:16:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2A461EF3 for ; Tue, 16 Feb 2016 02:16:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1G2GI8K055342 for ; Tue, 16 Feb 2016 02:16:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 02:16:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 02:16:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #34 from g_amanakis@yahoo.com --- The only hypothesis I have is that when fragmentation is needed for an outg= oing packet (I have no idea why) and the client sending this packet is behind NA= T, the gateway cannot see the real IP of the client in order to send him the ICMP-fragmentation-required because the icmp_error() occurs after the outgo= ing packet has gone through the pfil hooks (and ipfw). Can someone watching this report reproduce the symptoms using IPFW+NAT? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 02:20:53 2016 Return-Path: Delivered-To: freebsd-net@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 348FAAA8D62 for ; Tue, 16 Feb 2016 02:20:53 +0000 (UTC) (envelope-from nacho319@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F295610E3 for ; Tue, 16 Feb 2016 02:20:52 +0000 (UTC) (envelope-from nacho319@gmail.com) Received: by mail-ig0-x22e.google.com with SMTP id hb3so63714413igb.0 for ; Mon, 15 Feb 2016 18:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hen4CQp6r8rLaBw7k/jNEf2neWweJYHF6unzBLD7/TY=; b=RT+i0lcBxuw/cXnHh4QbwFfIJV4XI7pGBYgNXfJFsxUOupz9W6qtG9yoPJ2ctWnveE gnkjtL1gH1iZHIdrRcN0ocbSJgW4nw6lOPMSU1y7NE4/UyiLUn1tdCKUXyCtIR2ZYE6l mGQvsPDSU0iRQXywKoskwPv2O3YzG4rOHoDZKcN/AbC4HFiBUZEwwJsRF49rcwx5Z7Zb vD3BoO0d8jRf5lDPs4b4z2sdl34iv9L00Ve0wcIGorVOeeOFm+Nm1IoZjvM0cYncRQUX 5esjBy9UFdVMKe0EsqhQBGlABfeBkkld2mSFzXpKr7LhEvtXIQw6ZolnExHFwzgtOvRt YJGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=hen4CQp6r8rLaBw7k/jNEf2neWweJYHF6unzBLD7/TY=; b=kiIJ9+/tifBSrLypW/9dTs5mpiu7ZEE9EwBZK9A7UV4cNnpNWJXBgNk7qvmSQ6l3GY JIcDDWPswGUxR6PlRX0fhtg7LPByFjXFnLDxKZXj3XFFkctbgyYjbrEK6qsrXQnYc2n1 BtYybFOgHNHGIATmhqv8xNnAJeQsGeOHLnO5fryXwAkjMIc5xjQ/7hr8dUZaqfrJdQga v/O3knOtKV7ezb2mNQ6yumNvh6kgrsAMR8Xf3Hde3ETsPNOodZq3j8MdhsGktKpmyMFW T4xMBzAM6bWH7SfIr6K29E3FWhWxA47B0W42cnTEWC0/9gkoDSxKXxepnvLNBz9eeFgL dU1A== X-Gm-Message-State: AG10YOQjVmliaq7UwbrVB25YPoJIwpg5Bnj9yfy+BW0xuFEz1Xpl7459PfqU8hLtysbuafKCCjQtxqwCqu3+NA== MIME-Version: 1.0 X-Received: by 10.50.20.129 with SMTP id n1mr16320548ige.77.1455589252359; Mon, 15 Feb 2016 18:20:52 -0800 (PST) Received: by 10.36.118.15 with HTTP; Mon, 15 Feb 2016 18:20:52 -0800 (PST) Date: Mon, 15 Feb 2016 21:20:52 -0500 Message-ID: Subject: netmap packet timestamping From: Chris Inacio To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 02:20:53 -0000 Hello all, I'm trying to write some code to work with netmap which previously worked with PCAP API. In the PCAP API it's easy enough to get the timestamp the packet arrived from the API, but I can't find that (easily) from the netmap API. I'm not concerned with Tx, only Rx. Is there an easy place to get the packet timestamp? I saw the timestamp in the flags, but it wasn't clear to me that it would be a received timestamp. Also, since I'm not a regular list reader, please keep my email address on the thread too. Thanks chris inacio From owner-freebsd-net@freebsd.org Tue Feb 16 03:35:18 2016 Return-Path: Delivered-To: freebsd-net@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 4DEBEAAAD2A for ; Tue, 16 Feb 2016 03:35:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F545877 for ; Tue, 16 Feb 2016 03:35:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1G3ZHdg091546 for ; Tue, 16 Feb 2016 03:35:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 03:35:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 03:35:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #35 from g_amanakis@yahoo.com --- I just did a: $ route get 8.8.8.8=20 and got: route to: google-public-dns-a.google.com destination: default mask: default gateway: 69.251.142.1 fib: 0 interface: em0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 576 1 0=20 However: # netstat -i Name Mtu Network Address Ipkts Ierrs Idrop Opkts=20 em0 1500 00:aa:bb:cc:dd:ee 136920 0 0 103864=20 em0 - fe80::225:90f fe80::225:90ff:fe 190 - - 107= =20=20=20=20=20 em0 - 2001:558:6020 2001:558:6020:167 108 - - 96= =20=20=20=20=20 em0 - 69.251.142.0/ c-69-251-143-153. 4555 - - 4982= =20=20=20=20=20 em0 is the WAN-interface. Why is there this discrepancy? 576 versus 1500? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 03:39:23 2016 Return-Path: Delivered-To: freebsd-net@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 E00B5AAAED5 for ; Tue, 16 Feb 2016 03:39:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D19519D3 for ; Tue, 16 Feb 2016 03:39:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1G3dMe5081535 for ; Tue, 16 Feb 2016 03:39:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 03:39:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 03:39:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #36 from g_amanakis@yahoo.com --- I figured it out: the dhcpcd changed the MTU of em0 each time it acquired a lease. Setting "#option interface_mtu" in dhcpcd.conf leaves the MTU at 1500. I think this resolves the whole thing. I am going to test it right now and report back. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 02:27:47 2016 Return-Path: Delivered-To: freebsd-net@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 EFC2DAA9168 for ; Tue, 16 Feb 2016 02:27:47 +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 DD05F1629 for ; Tue, 16 Feb 2016 02:27:47 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id DA49F332060F; Tue, 16 Feb 2016 02:27:47 +0000 (UTC) Date: Tue, 16 Feb 2016 02:27:47 +0000 To: freebsd-net@freebsd.org From: "honzhan_microsoft.com (hongjiangzhang)" Reply-to: D5274+325+f71ea7c9f2eb58b5@reviews.freebsd.org Subject: [Differential] [Accepted] D5274: hyperv/hn: Change global tunable prefix to hw.hn 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: D5274: hyperv/hn: Change global tunable prefix to hw.hn 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 In-Reply-To: References: Thread-Index: MWFhYmZkMDZkODQzOGI1NjgyOWFlNTAzNzIwIFbCiSM= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-Mailman-Approved-At: Tue, 16 Feb 2016 03:47:23 +0000 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 02:27:48 -0000 honzhan_microsoft.com accepted this revision. honzhan_microsoft.com added a comment. This revision has a positive review. LGTM REVISION DETAIL https://reviews.freebsd.org/D5274 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, network, adrian, delphij, royger, decui_microsoft.com, howard0su_gmail.com, honzhan_microsoft.com Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Tue Feb 16 03:59:02 2016 Return-Path: Delivered-To: freebsd-net@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 8DD29AA8B34 for ; Tue, 16 Feb 2016 03:59:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F61B149C for ; Tue, 16 Feb 2016 03:59:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1G3x13U058268 for ; Tue, 16 Feb 2016 03:59:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 03:59:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 03:59:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #37 from g_amanakis@yahoo.com --- Setting dhcpcd to ignore the interface MTU resolves my problem.=20 However if I manually reduce the MTU the problem reappears and the client receives no fragmentation-needed-ICMP. I am leaving this to the discretion = of George. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 05:33:37 2016 Return-Path: Delivered-To: freebsd-net@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 1304CAAAF98 for ; Tue, 16 Feb 2016 05:33:37 +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 F32DC1D50 for ; Tue, 16 Feb 2016 05:33:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id F08DF332081B; Tue, 16 Feb 2016 05:33:36 +0000 (UTC) Date: Tue, 16 Feb 2016 05:33:36 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5290+325+0f29ffe2afeb1a89@reviews.freebsd.org Subject: [Differential] [Request, 76 lines] D5290: hyperv/hn: Use buf_ring for txdesc list 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: D5290: hyperv/hn: Use buf_ring for txdesc list 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: OTExNDkzMzlmNjhmMjIyNzRkZmU3MzcwM2U5 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_ed6dc42d73ba2dd2572a60b5a2c34263" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 05:33:37 -0000 --b1_ed6dc42d73ba2dd2572a60b5a2c34263 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 So one spinlock is avoided, which would be potentially dangerous for virtual machine, if the spinlock holder was scheduled out by the host as noted by royger. Old spinlock based txdesc list is still kept around, so we could have a safe fallback. No performance regression or improvement is observed. REVISION DETAIL https://reviews.freebsd.org/D5290 AFFECTED FILES sys/dev/hyperv/netvsc/hv_net_vsc.h sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c 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_ed6dc42d73ba2dd2572a60b5a2c34263 Content-Type: text/x-patch; charset=utf-8; name="D5290.13340.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5290.13340.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC03MCw2ICs3MCw3IEBA CiAjaW5jbHVkZSA8c3lz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F9I RUFEKGhuX3R4ZGVzY19saXN0LCBobl90eGRlc2MpOworI2Vsc2UKK3N0cnVjdCBidWZfcmluZzsK KyNlbmRpZgogCiBzdHJ1Y3QgaG5fcnhfcmluZyB7CiAJc3RydWN0IGxyb19jdHJsCWhuX2xybzsK QEAgLTEwMTIsOCArMTAxOCwxMiBAQAogI2RlZmluZSBITl9UUlVTVF9IQ1NVTV9VRFAJMHgwMDA0 CiAKIHN0cnVjdCBobl90eF9yaW5nIHsKKyNpZm5kZWYgSE5fVVNFX1RYREVTQ19CVUZSSU5HCiAJ c3RydWN0IG10eAlobl90eGxpc3Rfc3BpbjsKIAlzdHJ1Y3QgaG5fdHhkZXNjX2xpc3QgaG5fdHhs aXN0OworI2Vsc2UKKwlzdHJ1Y3QgYnVmX3JpbmcJKmhuX3R4ZGVzY19icjsKKyNlbmRpZgogCWlu dAkJaG5fdHhkZXNjX2NudDsKIAlpbnQJCWhuX3R4ZGVzY19hdmFpbDsKIAlpbnQJCWhuX3R4ZW9m OwoK --b1_ed6dc42d73ba2dd2572a60b5a2c34263-- From owner-freebsd-net@freebsd.org Tue Feb 16 14:12:23 2016 Return-Path: Delivered-To: freebsd-net@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 D51D4AA90AB for ; Tue, 16 Feb 2016 14:12:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C56751323 for ; Tue, 16 Feb 2016 14:12:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GECNZc011794 for ; Tue, 16 Feb 2016 14:12:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 193620] Problem with igb multiqueue together with pf Date: Tue, 16 Feb 2016 14:12:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: IntelNetworking X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: sbruno@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 14:12:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193620 Sean Bruno changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |Overcome By Events --- Comment #2 from Sean Bruno --- I'm unable to reproduce this and the submitter has timed out. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 14:42:50 2016 Return-Path: Delivered-To: freebsd-net@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 CBF8AAAA147 for ; Tue, 16 Feb 2016 14:42:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD0D11899 for ; Tue, 16 Feb 2016 14:42:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GEgoK6077792 for ; Tue, 16 Feb 2016 14:42:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 14:42:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 14:42:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #38 from g_amanakis@yahoo.com --- I think the problem lies here: =3D=3D=3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D=3D=3D=3D ip_fastfwd.c if (ip_off & IP_DF) {=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 IPSTAT_INC(ips_cantfrag); icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_NEEDFRAG, 0, mtu);=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 goto consumed; } else {=20=20=20=20=20=20 =3D=3D=3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D=3D=3D=3D By the time the icmp_error() happens, m has gone through the firewall (see "Step 5:" in ip_fastfwd.c, meaning that outgoing NAT has already happened a= nd that the source address of has already been changed to reflect the one of t= he gateway. Thus when the icmp_error() takes place the ICMP is not sent to the client. Is this correct? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 14:51:16 2016 Return-Path: Delivered-To: freebsd-net@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 45020AAA56C for ; Tue, 16 Feb 2016 14:51:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3638D1C2F for ; Tue, 16 Feb 2016 14:51:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GEpGkD092015 for ; Tue, 16 Feb 2016 14:51:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 14:51:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 14:51:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #39 from George V. Neville-Neil --- (In reply to g_amanakis from comment #38) That does look suspicious. In the ip_forward() routine we make a copy of t= he mbuf first. I will look at a patch that synchronizes the way these work. I'd like to ask about your various MTUs. Are the mismatched across any of = the links? I ask because I am trying to get the code to misbehave here and I h= ave had a hard time getting that to happen. In a simple, 3 host, test I'm tryi= ng this: source -> router -> sink MTU 1500 576 When you say "em0 is set to 576, where, in your setup, does that exist? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 15:16:56 2016 Return-Path: Delivered-To: freebsd-net@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 429F4AAAFFA for ; Tue, 16 Feb 2016 15:16:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 33FCCE83 for ; Tue, 16 Feb 2016 15:16:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GFGt2w032167 for ; Tue, 16 Feb 2016 15:16:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 15:16:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 15:16:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #40 from g_amanakis@yahoo.com --- client -> LAN-router-WAN -> webserver (eg. gutefrage.net) 1500 1500 576 1500? client MTU: interface: 1500 route: 1500 router MTU: LAN-interface: 1500 LAN-route: 1500 WAN-interface (em0): 1500 WAN-route: 576 (set by dhcpcd when run on WAN-interface) webserver MTU: probably 1500. I don't know this for sure. Does this help? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 15:21:18 2016 Return-Path: Delivered-To: freebsd-net@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 7FD35AAA208 for ; Tue, 16 Feb 2016 15:21:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 716DA12FC for ; Tue, 16 Feb 2016 15:21:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GFLHgZ040690 for ; Tue, 16 Feb 2016 15:21:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 15:21:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 15:21:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #41 from George V. Neville-Neil --- (In reply to g_amanakis from comment #40) Yes, it does. Also, without IPFW and NAT, that is if you can make this a regular routing setup, do you see the problem? My theory is that you will not, and that it requires the packet to go through IPFW to show the issue. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 17:43:50 2016 Return-Path: Delivered-To: freebsd-net@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 16EC6AAAF3B for ; Tue, 16 Feb 2016 17:43:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 087B9162E for ; Tue, 16 Feb 2016 17:43:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GHhnJh022151 for ; Tue, 16 Feb 2016 17:43:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 17:43:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 17:43:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #42 from g_amanakis@yahoo.com --- You are correct, I can confirm this. On this setup without NAT involved (ipfw was set to pass all): client --> LAN-router-LAN --> server 1500 1500 576 1500 I can see the client getting an ICMP-fragmentation-required from the router when it tries to access the server on the other side. Thus, the client can access the server. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Feb 16 18:13:28 2016 Return-Path: Delivered-To: freebsd-net@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 ADC96AA9E2A for ; Tue, 16 Feb 2016 18:13:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F2FBD57 for ; Tue, 16 Feb 2016 18:13:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1GIDRgR069341 for ; Tue, 16 Feb 2016 18:13:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Tue, 16 Feb 2016 18:13:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: madpilot@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2016 18:13:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #43 from Guido Falsi --- (In reply to g_amanakis from comment #34) Hi, My home router is a nanobsd image I just updated to 10.3: 10.3-BETA2 FreeBSD 10.3-BETA2 #0 r295652: Tue Feb 16 10:09:07 CET 2016 It's running openvpn, ipfw and nat, I connected with my laptop (running hea= d) via openvpn and had no problems. I just ran a few basic things: ssh, http, transferred a few files with those protocols and had no problems. I'm not sure about the MTUs, booth connections are residential ADSL, so I g= uess both use 1492 on the WAN level, 1500 in the LAN. One more difference is that the OpenVPN package was compiled in a poudriere 10.2 jail, not on the machine itself and not in 10.3, but this should not m= ake a difference imho. Not sure if this helps in some way, I can't make too many tests, but if something specific is needed I can get to do it. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Wed Feb 17 01:21:19 2016 Return-Path: Delivered-To: freebsd-net@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 0F7CBAAAFB1 for ; Wed, 17 Feb 2016 01:21:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 008DA15EB for ; Wed, 17 Feb 2016 01:21:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1H1LIqb007282 for ; Wed, 17 Feb 2016 01:21:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206368] [PATCH] kevent doesn't notify EV_ENABLE-ed events Date: Wed, 17 Feb 2016 01:21:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ngie@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 01:21:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206368 Ngie Cooper changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org, | |ngie@FreeBSD.org --- Comment #3 from Ngie Cooper --- We believe we're run in to similar issues internally.. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Feb 17 04:31:12 2016 Return-Path: Delivered-To: freebsd-net@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 C5A63AAA84C for ; Wed, 17 Feb 2016 04:31:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B698A15F0 for ; Wed, 17 Feb 2016 04:31:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1H4VCFG031992 for ; Wed, 17 Feb 2016 04:31:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206368] [PATCH] kevent doesn't notify EV_ENABLE-ed events Date: Wed, 17 Feb 2016 04:31:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 04:31:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206368 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-net@FreeBSD.org |markj@FreeBSD.org Status|New |In Progress --- Comment #4 from Mark Johnston --- (In reply to Ngie Cooper from comment #3) Indeed. See: https://reviews.freebsd.org/D5307 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Feb 17 05:57:09 2016 Return-Path: Delivered-To: freebsd-net@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 82BC1AAA8DC for ; Wed, 17 Feb 2016 05:57:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 738261491 for ; Wed, 17 Feb 2016 05:57:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1H5v9v7056050 for ; Wed, 17 Feb 2016 05:57:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207056] Changing the MAC address on the lagg interface doesn't get retained after lagg port delete operation. Date: Wed, 17 Feb 2016 05:57:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: gopu.0206@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: alias Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 05:57:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207056 Gopal changed: What |Removed |Added ---------------------------------------------------------------------------- Alias| |freebsd --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Feb 17 05:57:37 2016 Return-Path: Delivered-To: freebsd-net@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 C76E1AAA95F for ; Wed, 17 Feb 2016 05:57:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B7C491574 for ; Wed, 17 Feb 2016 05:57:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1H5vbWd056963 for ; Wed, 17 Feb 2016 05:57:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207056] Changing the MAC address on the lagg interface doesn't get retained after lagg port delete operation. Date: Wed, 17 Feb 2016 05:57:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: gopu.0206@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: alias Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 05:57:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207056 Gopal changed: What |Removed |Added ---------------------------------------------------------------------------- Alias|freebsd | --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Wed Feb 17 16:42:32 2016 Return-Path: Delivered-To: freebsd-net@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 51F06AAC000 for ; Wed, 17 Feb 2016 16:42:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 431DF1AA5 for ; Wed, 17 Feb 2016 16:42:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1HGgWBV074669 for ; Wed, 17 Feb 2016 16:42:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Wed, 17 Feb 2016 16:42:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 16:42:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #44 from George V. Neville-Neil --- Created attachment 167113 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167113&action= =3Dedit Only use tryfoward() when pfilter hooks are not present This is a patch against HEAD that I'm testing. It ought to also apply agai= nst 10-STABLE though with an offset. It bypasses tryforward() when there are p= fil hooks present which will prevent issues from rewritten packets not having e= rror reports generated. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Wed Feb 17 19:13:18 2016 Return-Path: Delivered-To: freebsd-net@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 39FA5AAB848 for ; Wed, 17 Feb 2016 19:13:18 +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 2848B12D3 for ; Wed, 17 Feb 2016 19:13:18 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 25DFB3321CC2; Wed, 17 Feb 2016 19:13:18 +0000 (UTC) Date: Wed, 17 Feb 2016 19:13:18 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5282+325+ff1faf9a27942119@reviews.freebsd.org Subject: [Differential] [Accepted] D5282: hyperv/hn: Use non-fast taskqueue for transmission Message-ID: <3ab6e5fed3a81e1401fcd044f98091f4@localhost.localdomain> 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: D5282: hyperv/hn: Use non-fast taskqueue for transmission 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 In-Reply-To: References: Thread-Index: MTA0OWYzZmY5Yjk5MjNmYjE3MzdmZmI1ZDFjIFbExk4= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:13:18 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5282 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:13:57 2016 Return-Path: Delivered-To: freebsd-net@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 321C4AAB8FD for ; Wed, 17 Feb 2016 19:13:57 +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 207F3143C for ; Wed, 17 Feb 2016 19:13:57 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 1B5403321D2C; Wed, 17 Feb 2016 19:13:57 +0000 (UTC) Date: Wed, 17 Feb 2016 19:13:57 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5283+325+ff964c8d52006f6a@reviews.freebsd.org Subject: [Differential] [Accepted] D5283: hyperv/hn: Split TX ring data structure out of softc 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: D5283: hyperv/hn: Split TX ring data structure out of softc 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 In-Reply-To: References: Thread-Index: NzMzOGZkYjcxOGQ0MjYzYmE0NWE0Nzc3NTExIFbExnU= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:13:57 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5283 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:15:03 2016 Return-Path: Delivered-To: freebsd-net@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 55E88AABA61 for ; Wed, 17 Feb 2016 19:15:03 +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 41D0015E0 for ; Wed, 17 Feb 2016 19:15:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 346E03321E2B; Wed, 17 Feb 2016 19:15:03 +0000 (UTC) Date: Wed, 17 Feb 2016 19:15:03 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5185+325+ec92cccb639ec0fa@reviews.freebsd.org Subject: [Differential] [Accepted] D5185: tcp/lro: Allow network drivers to set the limit for TCP ACK/data segment aggregation limit Message-ID: <5b09fc0ba008e9b0b6af7244c449f0aa@localhost.localdomain> 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: D5185: tcp/lro: Allow network drivers to set the limit for TCP ACK/data segment aggregation limit X-Herald-Rules: <64> 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-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: NTU0NmM0Mjk2NjdmNzVhNmM3MzlkMWQyNTdmIFbExrc= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:15:03 -0000 adrian accepted this revision. REVISION DETAIL https://reviews.freebsd.org/D5185 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, np, transport, hselasky, gallatin, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:15:18 2016 Return-Path: Delivered-To: freebsd-net@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 35325AABB01 for ; Wed, 17 Feb 2016 19:15:18 +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 22A5717B3 for ; Wed, 17 Feb 2016 19:15:18 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 1F45C3321EED; Wed, 17 Feb 2016 19:15:18 +0000 (UTC) Date: Wed, 17 Feb 2016 19:15:18 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5272+325+58625a4751947605@reviews.freebsd.org Subject: [Differential] [Accepted] D5272: hyperv/hn: Add option to allow sharing TX taskq between hn instances Message-ID: <96472c30a56d1d9f9846e685d1b37a07@localhost.localdomain> 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: D5272: hyperv/hn: Add option to allow sharing TX taskq between hn instances 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 In-Reply-To: References: Thread-Index: ZDMwMGVlOTEyMjMxYzQ3NmRmOTRjNmZlNjNhIFbExsY= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:15:18 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5272 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:15:27 2016 Return-Path: Delivered-To: freebsd-net@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 E4190AABB51 for ; Wed, 17 Feb 2016 19:15:27 +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 D1820193A for ; Wed, 17 Feb 2016 19:15:27 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id C9F913321F25; Wed, 17 Feb 2016 19:15:27 +0000 (UTC) Date: Wed, 17 Feb 2016 19:15:27 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5273+325+60a85a16779663f2@reviews.freebsd.org Subject: [Differential] [Accepted] D5273: hyperv/hn: Always do transmission scheduling. Message-ID: <9fd515fe0f3e35b3915113ad9f03d57c@localhost.localdomain> 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 In-Reply-To: References: Thread-Index: NjBlMTZiZTJjNDkyNWRhNTA0YmJkYWZhYmIxIFbExs8= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:15:28 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5273 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:15:39 2016 Return-Path: Delivered-To: freebsd-net@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 71E85AABBF9 for ; Wed, 17 Feb 2016 19:15:39 +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 5FA5E1A49 for ; Wed, 17 Feb 2016 19:15:39 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 5C6223321F5F; Wed, 17 Feb 2016 19:15:39 +0000 (UTC) Date: Wed, 17 Feb 2016 19:15:39 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5274+325+f71ea7c9f2eb58b5@reviews.freebsd.org Subject: [Differential] [Accepted] D5274: hyperv/hn: Change global tunable prefix to hw.hn 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: D5274: hyperv/hn: Change global tunable prefix to hw.hn 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 In-Reply-To: References: Thread-Index: MWFhYmZkMDZkODQzOGI1NjgyOWFlNTAzNzIwIFbExts= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:15:39 -0000 adrian accepted this revision. REVISION DETAIL https://reviews.freebsd.org/D5274 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, howard0su_gmail.com, honzhan_microsoft.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:16:01 2016 Return-Path: Delivered-To: freebsd-net@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 688F1AABCB5 for ; Wed, 17 Feb 2016 19:16:01 +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 55FEA1CD4 for ; Wed, 17 Feb 2016 19:16:01 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 526AB3321FAC; Wed, 17 Feb 2016 19:16:01 +0000 (UTC) Date: Wed, 17 Feb 2016 19:16:01 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5275+325+02420e6166849e0c@reviews.freebsd.org Subject: [Differential] [Accepted] D5275: hyperv/hn: Split RX ring data structure out of softc Message-ID: <6e3995ebf47048971e9898305f5166d1@localhost.localdomain> 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: D5275: hyperv/hn: Split RX ring data structure out of softc 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 In-Reply-To: References: Thread-Index: YjcyNDdhYWMyM2I2MDliMDQ0MmIxOWZkYTEzIFbExvE= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:16:01 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5275 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:16:09 2016 Return-Path: Delivered-To: freebsd-net@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 8D4B4AABD1B for ; Wed, 17 Feb 2016 19:16:09 +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 6B9561E4A for ; Wed, 17 Feb 2016 19:16:09 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 692703321FE6; Wed, 17 Feb 2016 19:16:09 +0000 (UTC) Date: Wed, 17 Feb 2016 19:16:09 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5276+325+13fc08d56765cf32@reviews.freebsd.org Subject: [Differential] [Accepted] D5276: hyperv/hn: Use taskqueue_enqueue() 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: D5276: hyperv/hn: Use taskqueue_enqueue() 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 In-Reply-To: References: Thread-Index: MzI0MTg0N2Y0NTM5MGMyZDRiNmVhNmJlNmE2IFbExvk= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:16:09 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5276 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 19:16:34 2016 Return-Path: Delivered-To: freebsd-net@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 BA138AABDD7 for ; Wed, 17 Feb 2016 19:16:34 +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 A7A181FCD for ; Wed, 17 Feb 2016 19:16:34 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id A4497332103A; Wed, 17 Feb 2016 19:16:34 +0000 (UTC) Date: Wed, 17 Feb 2016 19:16:34 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5290+325+0f29ffe2afeb1a89@reviews.freebsd.org Subject: [Differential] [Accepted] D5290: hyperv/hn: Use buf_ring for txdesc list Message-ID: <76aaeb6c21b245909062273c75f76b7b@localhost.localdomain> 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: D5290: hyperv/hn: Use buf_ring for txdesc list 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 In-Reply-To: References: Thread-Index: OTExNDkzMzlmNjhmMjIyNzRkZmU3MzcwM2U5IFbExxI= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 19:16:34 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5290 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Wed Feb 17 23:11:02 2016 Return-Path: Delivered-To: freebsd-net@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 F0504AAB4B8 for ; Wed, 17 Feb 2016 23:11:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E16C1132E for ; Wed, 17 Feb 2016 23:11:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1HNB241094899 for ; Wed, 17 Feb 2016 23:11:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Wed, 17 Feb 2016 23:11:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2016 23:11:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #45 from g_amanakis@yahoo.com --- The patch resolves the OpenVPN bug. (tested with the above ipfw.txt ruleset= and OpenVPN config files). I will report in a couple of hours if it also resolves the bug in a direct = LAN connection. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 01:12:20 2016 Return-Path: Delivered-To: freebsd-net@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 70472AAC99D for ; Thu, 18 Feb 2016 01:12:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6127195D for ; Thu, 18 Feb 2016 01:12:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1I1CKV7055030 for ; Thu, 18 Feb 2016 01:12:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 01:12:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: g_amanakis@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 01:12:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #46 from g_amanakis@yahoo.com --- This also resolves the bug in a direct LAN connection. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 04:48:17 2016 Return-Path: Delivered-To: freebsd-net@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 CABA4AAC3DB for ; Thu, 18 Feb 2016 04:48:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB64CCE5 for ; Thu, 18 Feb 2016 04:48:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1I4mGsX038238 for ; Thu, 18 Feb 2016 04:48:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 04:48:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ae@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 04:48:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #47 from Andrey V. Elsukov --- (In reply to George V. Neville-Neil from comment #44) > Created attachment 167113 [details] > Only use tryfoward() when pfilter hooks are not present >=20 > This is a patch against HEAD that I'm testing. It ought to also apply > against 10-STABLE though with an offset. It bypasses tryforward() when > there are pfil hooks present which will prevent issues from rewritten > packets not having error reports generated. With this patch we will lost the tryforward's goal (fastforwarding by defau= lt) for routers where firewall is present. I guess the most of routers has firewall. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 04:59:00 2016 Return-Path: Delivered-To: freebsd-net@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 CBC9AAAC884 for ; Thu, 18 Feb 2016 04:59:00 +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 B43A613CA for ; Thu, 18 Feb 2016 04:59:00 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id ABEB73321FFA; Thu, 18 Feb 2016 04:59:00 +0000 (UTC) Date: Thu, 18 Feb 2016 04:59:00 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5185+325+ec92cccb639ec0fa@reviews.freebsd.org Subject: [Differential] [Closed] D5185: tcp/lro: Allow network drivers to set the limit for TCP ACK/data segment aggregation limit Message-ID: <72048c45c69ee6f25f66535b059a2bc4@localhost.localdomain> 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: D5185: tcp/lro: Allow network drivers to set the limit for TCP ACK/data segment aggregation limit X-Herald-Rules: <64> 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-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: NTU0NmM0Mjk2NjdmNzVhNmM3MzlkMWQyNTdmIFbFT5Q= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_72048c45c69ee6f25f66535b059a2bc4" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 04:59:00 -0000 --b1_72048c45c69ee6f25f66535b059a2bc4 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295739: tcp/lro: Allow drivers to set the TCP ACK/data segment aggregation limit (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5185?vs=13282&id=13397#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5185?vs=13282&id=13397 REVISION DETAIL https://reviews.freebsd.org/D5185 AFFECTED FILES head/sys/netinet/tcp_lro.c head/sys/netinet/tcp_lro.h head/sys/sys/param.h CHANGE DETAILS diff --git a/head/sys/sys/param.h b/head/sys/sys/param.h --- a/head/sys/sys/param.h +++ b/head/sys/sys/param.h @@ -58,7 +58,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 1100098 /* Master, propagated to newvers */ +#define __FreeBSD_version 1100099 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, diff --git a/head/sys/netinet/tcp_lro.h b/head/sys/netinet/tcp_lro.h --- a/head/sys/netinet/tcp_lro.h +++ b/head/sys/netinet/tcp_lro.h @@ -91,11 +91,16 @@ unsigned lro_cnt; unsigned lro_mbuf_count; unsigned lro_mbuf_max; + unsigned short lro_ackcnt_lim; /* max # of aggregated ACKs */ + unsigned lro_length_lim; /* max len of aggregated data */ struct lro_head lro_active; struct lro_head lro_free; }; +#define TCP_LRO_LENGTH_MAX 65535 +#define TCP_LRO_ACKCNT_MAX 65535 /* unlimited */ + int tcp_lro_init(struct lro_ctrl *); int tcp_lro_init_args(struct lro_ctrl *, struct ifnet *, unsigned, unsigned); void tcp_lro_free(struct lro_ctrl *); diff --git a/head/sys/netinet/tcp_lro.c b/head/sys/netinet/tcp_lro.c --- a/head/sys/netinet/tcp_lro.c +++ b/head/sys/netinet/tcp_lro.c @@ -88,6 +88,8 @@ lc->lro_mbuf_count = 0; lc->lro_mbuf_max = lro_mbufs; lc->lro_cnt = lro_entries; + lc->lro_ackcnt_lim = TCP_LRO_ACKCNT_MAX; + lc->lro_length_lim = TCP_LRO_LENGTH_MAX; lc->ifp = ifp; SLIST_INIT(&lc->lro_free); SLIST_INIT(&lc->lro_active); @@ -610,7 +612,7 @@ } /* Flush now if appending will result in overflow. */ - if (le->p_len > (65535 - tcp_data_len)) { + if (le->p_len > (lc->lro_length_lim - tcp_data_len)) { SLIST_REMOVE(&lc->lro_active, le, lro_entry, next); tcp_lro_flush(lc, le); break; @@ -648,6 +650,15 @@ if (tcp_data_len == 0) { m_freem(m); + /* + * Flush this LRO entry, if this ACK should not + * be further delayed. + */ + if (le->append_cnt >= lc->lro_ackcnt_lim) { + SLIST_REMOVE(&lc->lro_active, le, lro_entry, + next); + tcp_lro_flush(lc, le); + } return (0); } @@ -668,7 +679,7 @@ * If a possible next full length packet would cause an * overflow, pro-actively flush now. */ - if (le->p_len > (65535 - lc->ifp->if_mtu)) { + if (le->p_len > (lc->lro_length_lim - lc->ifp->if_mtu)) { SLIST_REMOVE(&lc->lro_active, le, lro_entry, next); tcp_lro_flush(lc, le); } else EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, np, transport, hselasky, gallatin, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_72048c45c69ee6f25f66535b059a2bc4 Content-Type: text/x-patch; charset=utf-8; name="D5185.13397.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5185.13397.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL3N5cy9wYXJhbS5oIGIvaGVhZC9zeXMvc3lzL3BhcmFtLmgK LS0tIGEvaGVhZC9zeXMvc3lzL3BhcmFtLmgKKysrIGIvaGVhZC9zeXMvc3lzL3BhcmFtLmgKQEAg LTU4LDcgKzU4LDcgQEAKICAqCQlpbiB0aGUgcmFuZ2UgNSB0byA5LgogICovCiAjdW5kZWYgX19G cmVlQlNEX3ZlcnNpb24KLSNkZWZpbmUgX19GcmVlQlNEX3ZlcnNpb24gMTEwMDA5OAkvKiBNYXN0 ZXIsIHByb3BhZ2F0ZWQgdG8gbmV3dmVycyAqLworI2RlZmluZSBfX0ZyZWVCU0RfdmVyc2lvbiAx MTAwMDk5CS8qIE1hc3RlciwgcHJvcGFnYXRlZCB0byBuZXd2ZXJzICovCiAKIC8qCiAgKiBfX0Zy ZWVCU0Rfa2VybmVsX18gaW5kaWNhdGVzIHRoYXQgdGhpcyBzeXN0ZW0gdXNlcyB0aGUga2VybmVs IG9mIEZyZWVCU0QsCmRpZmYgLS1naXQgYS9oZWFkL3N5cy9uZXRpbmV0L3RjcF9scm8uaCBiL2hl YWQvc3lzL25ldGluZXQvdGNwX2xyby5oCi0tLSBhL2hlYWQvc3lzL25ldGluZXQvdGNwX2xyby5o CisrKyBiL2hlYWQvc3lzL25ldGluZXQvdGNwX2xyby5oCkBAIC05MSwxMSArOTEsMTYgQEAKIAl1 bnNpZ25lZAlscm9fY250OwogCXVuc2lnbmVkCWxyb19tYnVmX2NvdW50OwogCXVuc2lnbmVkCWxy b19tYnVm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zNSAtIGxjLT5pZnAtPmlmX210dSkpIHsKKwkJaWYgKGxlLT5wX2xl biA+IChsYy0+bHJvX2xlbmd0aF9saW0gLSBsYy0+aWZwLT5pZl9tdHUpKSB7CiAJCQlTTElTVF9S RU1PVkUoJmxjLT5scm9fYWN0aXZlLCBsZSwgbHJvX2VudHJ5LCBuZXh0KTsKIAkJCXRjcF9scm9f Zmx1c2gobGMsIGxlKTsKIAkJfSBlbHNlCgo= --b1_72048c45c69ee6f25f66535b059a2bc4-- From owner-freebsd-net@freebsd.org Thu Feb 18 06:55:32 2016 Return-Path: Delivered-To: freebsd-net@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 71672AAB90F for ; Thu, 18 Feb 2016 06:55:32 +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 5C1D09E7 for ; Thu, 18 Feb 2016 06:55:32 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 59A7F3320474; Thu, 18 Feb 2016 06:55:32 +0000 (UTC) Date: Thu, 18 Feb 2016 06:55:32 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5272+325+58625a4751947605@reviews.freebsd.org Subject: [Differential] [Closed] D5272: hyperv/hn: Add option to allow sharing TX taskq between hn instances Message-ID: <1e223473c9e3d04c17512c4ad63bb9f1@localhost.localdomain> 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: D5272: hyperv/hn: Add option to allow sharing TX taskq between hn instances 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 In-Reply-To: References: Thread-Index: ZDMwMGVlOTEyMjMxYzQ3NmRmOTRjNmZlNjNhIFbFauQ= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_1e223473c9e3d04c17512c4ad63bb9f1" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 06:55:32 -0000 --b1_1e223473c9e3d04c17512c4ad63bb9f1 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295741: hyperv/hn: Add option to allow sharing TX taskq between hn instances (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5272?vs=13283&id=13399#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5272?vs=13283&id=13399 REVISION DETAIL https://reviews.freebsd.org/D5272 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -238,6 +238,11 @@ #endif #endif +static int hn_share_tx_taskq = 0; +TUNABLE_INT("hw.hn.share_tx_taskq", &hn_share_tx_taskq); + +static struct taskqueue *hn_tx_taskq; + /* * Forward declarations */ @@ -353,10 +358,14 @@ if (hn_trust_hostip) sc->hn_trust_hcsum |= HN_TRUST_HCSUM_IP; - sc->hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, - taskqueue_thread_enqueue, &sc->hn_tx_taskq); - taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", - device_get_nameunit(dev)); + if (hn_tx_taskq == NULL) { + sc->hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + taskqueue_thread_enqueue, &sc->hn_tx_taskq); + taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", + device_get_nameunit(dev)); + } else { + sc->hn_tx_taskq = hn_tx_taskq; + } TASK_INIT(&sc->hn_start_task, 0, hn_start_taskfunc, sc); TASK_INIT(&sc->hn_txeof_task, 0, hn_txeof_taskfunc, sc); @@ -602,7 +611,8 @@ taskqueue_drain(sc->hn_tx_taskq, &sc->hn_start_task); taskqueue_drain(sc->hn_tx_taskq, &sc->hn_txeof_task); - taskqueue_free(sc->hn_tx_taskq); + if (sc->hn_tx_taskq != hn_tx_taskq) + taskqueue_free(sc->hn_tx_taskq); ifmedia_removeall(&sc->hn_media); #if defined(INET) || defined(INET6) @@ -2039,6 +2049,28 @@ NV_UNLOCK(sc); } +static void +hn_tx_taskq_create(void *arg __unused) +{ + if (!hn_share_tx_taskq) + return; + + hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + taskqueue_thread_enqueue, &hn_tx_taskq); + taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); +} +SYSINIT(hn_txtq_create, SI_SUB_DRIVERS, SI_ORDER_FIRST, + hn_tx_taskq_create, NULL); + +static void +hn_tx_taskq_destroy(void *arg __unused) +{ + if (hn_tx_taskq != NULL) + taskqueue_free(hn_tx_taskq); +} +SYSUNINIT(hn_txtq_destroy, SI_SUB_DRIVERS, SI_ORDER_FIRST, + hn_tx_taskq_destroy, NULL); + static device_method_t netvsc_methods[] = { /* Device interface */ DEVMETHOD(device_probe, netvsc_probe), EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_1e223473c9e3d04c17512c4ad63bb9f1 Content-Type: text/x-patch; charset=utf-8; name="D5272.13399.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5272.13399.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTIzOCw2ICsyMzgsMTEgQEAKICNlbmRpZgogI2VuZGlmCiAKK3N0YXRpYyBpbnQgaG5f c2hhcmVfdHhfdGFza3EgPSAwOworVFVOQUJMRV9JTlQoImh3LmhuLnNoYXJlX3R4X3Rhc2txIiwg JmhuX3NoYXJlX3R4X3Rhc2txKTsKKworc3RhdGljIHN0cnVjdCB0YXNrcXVldWUJKmhuX3R4X3Rh c2txOworCiAvKgogICogRm9yd2FyZCBkZWNsYXJhdGlvbnMKICAqLwpAQCAtMzUzLDEwICszNTgs MTQgQEAKIAlpZiAoaG5fdHJ1c3RfaG9zdGlwKQogCQlzYy0+aG5fdHJ1c3RfaGNzdW0gfD0gSE5f VFJVU1RfSENTVU1fSVA7CiAKLQlzYy0+aG5fdHhfdGFza3EgPSB0YXNrcXVldWVfY3JlYXRlX2Zh c3QoImhuX3R4IiwgTV9XQUlUT0ssCi0JICAgIHRhc2txdWV1ZV90aHJlYWRfZW5xdWV1ZSwgJnNj LT5obl90eF90YXNrcSk7Ci0JdGFza3F1ZXVlX3N0YXJ0X3RocmVhZHMoJnNjLT5obl90eF90YXNr cSwgMSwgUElfTkVULCAiJXMgdHgi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U5MT0NLKHNjKTsKIH0KIAorc3RhdGljIHZvaWQKK2huX3R4X3Rhc2tx X2NyZWF0ZSh2b2lkICphcmcgX191bnVzZWQpCit7CisJaWYgKCFobl9zaGFyZV90eF90YXNrcSkK KwkJcmV0dXJuOworCisJaG5fdHhfdGFza3EgPSB0YXNrcXVldWVfY3JlYXRlX2Zhc3QoImhuX3R4 IiwgTV9XQUlUT0ssCisJICAgIHRhc2txdWV1ZV90aHJlYWRfZW5xdWV1ZSwgJmhuX3R4X3Rhc2tx KTsKKwl0YXNrcXVldWVfc3RhcnRfdGhyZWFkcygmaG5fdHhfdGFza3EsIDEsIFBJX05FVCwgImhu IHR4Iik7Cit9CitTWVNJTklUKGhuX3R4dHFfY3JlYXRlLCBTSV9TVUJfRFJJVkVSUywgU0lfT1JE RVJfRklSU1QsCisgICAgaG5fdHhfdGFza3FfY3JlYXRlLCBOVUxMKTsKKworc3RhdGljIHZvaWQK K2huX3R4X3Rhc2txX2Rlc3Ryb3kodm9pZCAqYXJnIF9fdW51c2VkKQoreworCWlmIChobl90eF90 YXNrcSAhPSBOVUxMKQorCQl0YXNrcXVldWVfZnJlZShobl90eF90YXNrcSk7Cit9CitTWVNVTklO SVQoaG5fdHh0cV9kZXN0cm95LCBTSV9TVUJfRFJJVkVSUywgU0lfT1JERVJfRklSU1QsCisgICAg aG5fdHhfdGFza3FfZGVzdHJveSwgTlVMTCk7CisKIHN0YXRpYyBkZXZpY2VfbWV0aG9kX3QgbmV0 dnNjX21ldGhvZHNbXSA9IHsKICAgICAgICAgLyogRGV2aWNlIGludGVyZmFjZSAqLwogICAgICAg ICBERVZNRVRIT0QoZGV2aWNlX3Byb2JlLCAgICAgICAgIG5ldHZzY19wcm9iZSksCgo= --b1_1e223473c9e3d04c17512c4ad63bb9f1-- From owner-freebsd-net@freebsd.org Thu Feb 18 07:01:05 2016 Return-Path: Delivered-To: freebsd-net@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 348A2AABC22 for ; Thu, 18 Feb 2016 07:01: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 11CF8DA8 for ; Thu, 18 Feb 2016 07:01:05 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 0F3A433206F7; Thu, 18 Feb 2016 07:01:05 +0000 (UTC) Date: Thu, 18 Feb 2016 07:01:05 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5273+325+60a85a16779663f2@reviews.freebsd.org Subject: [Differential] [Closed] D5273: hyperv/hn: Always do transmission scheduling. Message-ID: <42d9b500b4136b0452cb78f5526aa0f3@localhost.localdomain> 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 In-Reply-To: References: Thread-Index: NjBlMTZiZTJjNDkyNWRhNTA0YmJkYWZhYmIxIFbFbDE= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_42d9b500b4136b0452cb78f5526aa0f3" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:01:05 -0000 --b1_42d9b500b4136b0452cb78f5526aa0f3 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295742: hyperv/hn: Always do transmission scheduling. (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5273?vs=13284&id=13400#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5273?vs=13284&id=13400 REVISION DETAIL https://reviews.freebsd.org/D5273 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/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, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_42d9b500b4136b0452cb78f5526aa0f3 Content-Type: text/x-patch; charset=utf-8; name="D5273.13400.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5273.13400.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTQ2NSw2ICs0NjUsMTMgQEAKIAkgICAgaG5fdHhfY2hpbW5leV9zaXplIDwgc2MtPmhu X3R4X2NoaW1uZXlfbWF4KQogCQlzYy0+aG5fdHhfY2hpbW5leV9zaXplID0gaG5fdHhfY2hpbW5l eV9zaXplOwogCisJLyoKKwkgKiBBbHdheXMgc2NoZWR1bGUgdHJhbnNtaXNzaW9uIGluc3RlYWQg b2YgdHJ5aW5nCisJICogdG8gZG8gZGlyZWN0IHRyYW5zbWlzc2lvbi4gIFRoaXMgb25lIGdpdmVz IHRoZQorCSAqIGJlc3QgcGVyZm9ybWFuY2Ugc28gZmFyLgorCSAqLworCXNjLT5obl9zY2hlZF90 eCA9IDE7CisKIAljdHggPSBkZXZpY2VfZ2V0X3N5c2N0bF9jdHgoZGV2KTsKIAljaGlsZCA9IFNZ U0NUTF9DSElMRFJFTihkZXZpY2VfZ2V0X3N5c2N0bF90cmVlKGRldikpOwogCgo= --b1_42d9b500b4136b0452cb78f5526aa0f3-- From owner-freebsd-net@freebsd.org Thu Feb 18 07:07:07 2016 Return-Path: Delivered-To: freebsd-net@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 6C763AAC001 for ; Thu, 18 Feb 2016 07:07:07 +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 58331122E for ; Thu, 18 Feb 2016 07:07:07 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 562FD3320A64; Thu, 18 Feb 2016 07:07:07 +0000 (UTC) Date: Thu, 18 Feb 2016 07:07:07 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5274+325+f71ea7c9f2eb58b5@reviews.freebsd.org Subject: [Differential] [Closed] D5274: hyperv/hn: Change global tunable prefix to hw.hn 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: D5274: hyperv/hn: Change global tunable prefix to hw.hn 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 In-Reply-To: References: Thread-Index: MWFhYmZkMDZkODQzOGI1NjgyOWFlNTAzNzIwIFbFbZs= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_fc4d0116263aaaf9bcd2adf01556b9e2" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:07:07 -0000 --b1_fc4d0116263aaaf9bcd2adf01556b9e2 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295743: hyperv/hn: Change global tunable prefix to hw.hn (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5274?vs=13285&id=13401#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5274?vs=13285&id=13401 REVISION DETAIL https://reviews.freebsd.org/D5274 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, howard0su_gmail.com, honzhan_microsoft.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_fc4d0116263aaaf9bcd2adf01556b9e2 Content-Type: text/x-patch; charset=utf-8; name="D5274.13401.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5274.13401.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTIwNSw0MSArMjA1LDU3IEBACiAKIGludCBodl9wcm9taXNjX21vZGUgPSAwOyAgICAv KiBub3JtYWwgbW9kZSBieSBkZWZhdWx0ICovCiAKK1NZU0NUTF9OT0RFKF9odywgT0lEX0FVVE8s IGhuLCBDVExGTEFHX1JELCBOVUxMLCAiSHlwZXItViBuZXR3b3JrIGludGVyZmFjZSIpOworCiAv KiBUcnVzdCB0Y3Agc2VnZW1lbnRzIHZlcmlmaWNhdGlvbiBvbiBob3N0IHNpZGUuICovCiBzdGF0 aWMgaW50IGhuX3RydXN0X2hvc3R0Y3AgPSAxOwotVFVOQUJMRV9JTlQoImRldi5obi50cnVzdF9o b3N0dGNwIiwgJmhuX3RydXN0X2hvc3R0Y3ApOworU1lTQ1RMX0lOVChfaHdfaG4sIE9JRF9BVVRP LCB0cnVzdF9ob3N0dGNwLCBDVExGTEFHX1JEVFVOLAorICAgICZobl90cnVzdF9ob3N0dGNwLCAw LAorICAgICJUcnVzdCB0Y3Agc2VnZW1lbnQgdmVyaWZpY2F0aW9uIG9uIGhvc3Qgc2lkZSwgIgor ICAgICJ3aGVuIGNzdW0gaW5mbyBpcyBtaXNzaW5nICh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SwgMCwKLQkJICAgICJDaGltbmV5IHNlbmQgcGFja2V0IHNpemUgbGltaXQiKTsKLSNp ZiBfX0ZyZWVCU0RfdmVyc2lvbiA+PSAxMTAwMDQ1Ci0JCVNZU0NUTF9BRERfSU5UKGRjX2N0eCwg ZGNfY2hpbGQsIE9JRF9BVVRPLCAidHNvX21heGxlbiIsCi0JCSAgICBDVExGTEFHX1JELCAmaG5f dHNvX21heGxlbiwgMCwgIlRTTyBidXJzdCBsaW1pdCIpOwotI2VuZGlmCi0JCVNZU0NUTF9BRERf SU5UKGRjX2N0eCwgZGNfY2hpbGQsIE9JRF9BVVRPLCAiZGlyZWN0X3R4X3NpemUiLAotCQkgICAg Q1RMRkxBR19SRCwgJmhuX2RpcmVjdF90eF9zaXplLCAwLAotCQkgICAgIlNpemUgb2YgdGhlIHBh Y2tldCBmb3IgZGlyZWN0IHRyYW5zbWlzc2lvbiIpOwotI2lmIGRlZmluZWQoSU5FVCkgfHwgZGVm aW5lZChJTkVUNikKLSNpZiBfX0ZyZWVCU0RfdmVyc2lvbiA+PSAxMTAwMDk1Ci0JCVNZU0NUTF9B RERfSU5UKGRjX2N0eCwgZGNfY2hpbGQsIE9JRF9BVVRPLCAibHJvX2VudHJ5X2NvdW50IiwKLQkJ ICAgIENUTEZMQUdfUkQsICZobl9scm9fZW50cnlfY291bnQsIDAsICJMUk8gZW50cnkgY291bnQi KTsKLSNlbmRpZgotI2VuZGlmCi0JfQotCiAJcmV0dXJuICgwKTsKIGZhaWxlZDoKIAlobl9kZXN0 cm95X3R4X3Jpbmcoc2MpOwoK --b1_fc4d0116263aaaf9bcd2adf01556b9e2-- From owner-freebsd-net@freebsd.org Thu Feb 18 07:16:57 2016 Return-Path: Delivered-To: freebsd-net@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 107F3AAC417 for ; Thu, 18 Feb 2016 07:16:57 +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 EE46F19A0 for ; Thu, 18 Feb 2016 07:16:56 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id EC11D332103A; Thu, 18 Feb 2016 07:16:56 +0000 (UTC) Date: Thu, 18 Feb 2016 07:16:56 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5275+325+02420e6166849e0c@reviews.freebsd.org Subject: [Differential] [Closed] D5275: hyperv/hn: Split RX ring data structure out of softc Message-ID: <6aecfb79e7a58796cf1bef2ba7e43f55@localhost.localdomain> 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: D5275: hyperv/hn: Split RX ring data structure out of softc 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 In-Reply-To: References: Thread-Index: YjcyNDdhYWMyM2I2MDliMDQ0MmIxOWZkYTEzIFbFb+g= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_6aecfb79e7a58796cf1bef2ba7e43f55" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:16:57 -0000 --b1_6aecfb79e7a58796cf1bef2ba7e43f55 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295744: hyperv/hn: Split RX ring data structure out of softc (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5275?vs=13287&id=13402#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5275?vs=13287&id=13402 REVISION DETAIL https://reviews.freebsd.org/D5275 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_net_vsc.h head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_6aecfb79e7a58796cf1bef2ba7e43f55 Content-Type: text/x-patch; charset=utf-8; name="D5275.13402.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5275.13402.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTI3NSwxMiArMjc1LDE2IEBACiBzdGF0aWMgaW50IGhuX2xyb19hY2tjbnRfc3lzY3Rs KFNZU0NUTF9IQU5ETEVSX0FSR1MpOwogc3RhdGljIGludCBobl90cnVzdF9oY3N1bV9zeXNjdGwo U1lTQ1RMX0hBTkRMRVJfQVJHUyk7CiBzdGF0aWMgaW50IGhuX3R4X2NoaW1uZXlfc2l6ZV9zeXNj dGwoU1lTQ1RMX0hBTkRMRVJfQVJHUyk7CitzdGF0aWMgaW50IGhuX3J4X3N0YXRfdWxvbmdfc3lz Y3RsKFNZU0NUTF9IQ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xhcHNlZDsKIAl1X2xv bmcJCWhuX3R4X2NoaW1uZXk7CiB9IGhuX3NvZnRjX3Q7CiAKLSNkZWZpbmUgSE5fVFJVU1RfSENT VU1fSVAJMHgwMDAxCi0jZGVmaW5lIEhOX1RSVVNUX0hDU1VNX1RDUAkweDAwMDIKLSNkZWZpbmUg SE5fVFJVU1RfSENTVU1fVURQCTB4MDAwNAotCiAvKgogICogRXh0ZXJucwogICovCgo= --b1_6aecfb79e7a58796cf1bef2ba7e43f55-- From owner-freebsd-net@freebsd.org Thu Feb 18 07:23:36 2016 Return-Path: Delivered-To: freebsd-net@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 B8E57AAC7E3 for ; Thu, 18 Feb 2016 07:23:36 +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 9AC9A1F5D for ; Thu, 18 Feb 2016 07:23:36 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 9702E3321D82; Thu, 18 Feb 2016 07:23:36 +0000 (UTC) Date: Thu, 18 Feb 2016 07:23:36 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5276+325+13fc08d56765cf32@reviews.freebsd.org Subject: [Differential] [Closed] D5276: hyperv/hn: Use taskqueue_enqueue() 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: D5276: hyperv/hn: Use taskqueue_enqueue() 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 In-Reply-To: References: Thread-Index: MzI0MTg0N2Y0NTM5MGMyZDRiNmVhNmJlNmE2IFbFcXg= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_b6ff473257aa7adeb44bde26db845835" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:23:36 -0000 --b1_b6ff473257aa7adeb44bde26db845835 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295745: hyperv/hn: Use taskqueue_enqueue() (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5276?vs=13288&id=13403#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5276?vs=13288&id=13403 REVISION DETAIL https://reviews.freebsd.org/D5276 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -1549,7 +1549,7 @@ return; } do_sched: - taskqueue_enqueue_fast(sc->hn_tx_taskq, &sc->hn_start_task); + taskqueue_enqueue(sc->hn_tx_taskq, &sc->hn_start_task); } static void @@ -1566,10 +1566,8 @@ atomic_clear_int(&ifp->if_drv_flags, IFF_DRV_OACTIVE); sched = hn_start_locked(ifp, sc->hn_direct_tx_size); NV_UNLOCK(sc); - if (sched) { - taskqueue_enqueue_fast(sc->hn_tx_taskq, - &sc->hn_start_task); - } + if (sched) + taskqueue_enqueue(sc->hn_tx_taskq, &sc->hn_start_task); } else { do_sched: /* @@ -1579,7 +1577,7 @@ * races. */ atomic_clear_int(&ifp->if_drv_flags, IFF_DRV_OACTIVE); - taskqueue_enqueue_fast(sc->hn_tx_taskq, &sc->hn_txeof_task); + taskqueue_enqueue(sc->hn_tx_taskq, &sc->hn_txeof_task); } } EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_b6ff473257aa7adeb44bde26db845835 Content-Type: text/x-patch; charset=utf-8; name="D5276.13403.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5276.13403.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTE1NDksNyArMTU0OSw3IEBACiAJCQlyZXR1cm47CiAJfQogZG9fc2NoZWQ6Ci0JdGFz a3F1ZXVlX2VucXVldWVfZmFzdChzYy0+aG5fdHhfdGFza3EsICZzYy0+aG5fc3RhcnRfdGFzayk7 CisJdGFza3F1ZXVlX2VucXVldWUoc2MtPmhuX3R4X3Rhc2txLCAmc2MtPmhuX3N0YXJ0X3Rhc2sp OwogfQogCiBzdGF0aWMgdm9pZApAQCAtMTU2NiwxMCArMTU2Niw4IEBACiAJCWF0b21pY19jbGVh cl9pbnQoJmlmcC0+aWZfZHJ2X2ZsYWdzLCBJRkZfRFJWX09BQ1RJVkUpOwogCQlzY2hlZCA9IGhu X3N0YXJ0X2xvY2tlZChpZnAsIHNjLT5obl9kaXJlY3RfdHhfc2l6ZSk7CiAJCU5WX1VOTE9DSyhz Yyk7Ci0JCWlmIChzY2hlZCkgewotCQkJdGFza3F1ZXVlX2VucXVldWVfZmFzdChzYy0+aG5fdHhf dGFza3EsCi0JCQkgICAgJnNjLT5obl9zdGFydF90YXNrKTsKLQkJfQorCQlpZiAoc2NoZWQpCisJ CQl0YXNrcXVldWVfZW5xdWV1ZShzYy0+aG5fdHhfdGFza3EsICZzYy0+aG5fc3RhcnRfdGFzayk7 CiAJfSBlbHNlIHsKIGRvX3NjaGVkOgogCQkvKgpAQCAtMTU3OSw3ICsxNTc3LDcgQEAKIAkJICog cmFjZXMuCiAJCSAqLwogCQlhdG9taWNfY2xlYXJfaW50KCZpZnAtPmlmX2Rydl9mbGFncywgSUZG X0RSVl9PQUNUSVZFKTsKLQkJdGFza3F1ZXVlX2VucXVldWVfZmFzdChzYy0+aG5fdHhfdGFza3Es ICZzYy0+aG5fdHhlb2ZfdGFzayk7CisJCXRhc2txdWV1ZV9lbnF1ZXVlKHNjLT5obl90eF90YXNr cSwgJnNjLT5obl90eGVvZl90YXNrKTsKIAl9CiB9CiAKCg== --b1_b6ff473257aa7adeb44bde26db845835-- From owner-freebsd-net@freebsd.org Thu Feb 18 07:29:13 2016 Return-Path: Delivered-To: freebsd-net@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 D5032AAC9D5 for ; Thu, 18 Feb 2016 07:29:13 +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 B6085375 for ; Thu, 18 Feb 2016 07:29:13 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id B4AEE3321038; Thu, 18 Feb 2016 07:29:13 +0000 (UTC) Date: Thu, 18 Feb 2016 07:29:13 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5282+325+ff1faf9a27942119@reviews.freebsd.org Subject: [Differential] [Closed] D5282: hyperv/hn: Use non-fast taskqueue for transmission Message-ID: <66f8f407a749bb2b7a73d2a62c8e9f68@localhost.localdomain> 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: D5282: hyperv/hn: Use non-fast taskqueue for transmission 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 In-Reply-To: References: Thread-Index: MTA0OWYzZmY5Yjk5MjNmYjE3MzdmZmI1ZDFjIFbFcsk= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_66f8f407a749bb2b7a73d2a62c8e9f68" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:29:14 -0000 --b1_66f8f407a749bb2b7a73d2a62c8e9f68 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295746: hyperv/hn: Use non-fast taskqueue for transmission (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5282?vs=13307&id=13404#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5282?vs=13307&id=13404 REVISION DETAIL https://reviews.freebsd.org/D5282 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -368,7 +368,7 @@ sc->hn_direct_tx_size = hn_direct_tx_size; if (hn_tx_taskq == NULL) { - sc->hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + sc->hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &sc->hn_tx_taskq); taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", device_get_nameunit(dev)); @@ -2178,7 +2178,7 @@ if (!hn_share_tx_taskq) return; - hn_tx_taskq = taskqueue_create_fast("hn_tx", M_WAITOK, + hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &hn_tx_taskq); taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); } EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_66f8f407a749bb2b7a73d2a62c8e9f68 Content-Type: text/x-patch; charset=utf-8; name="D5282.13404.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5282.13404.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTM2OCw3ICszNjgsNyBAQAogCXNjLT5obl9kaXJlY3RfdHhfc2l6ZSA9IGhuX2RpcmVj dF90eF9zaXplOwogCiAJaWYgKGhuX3R4X3Rhc2txID09IE5VTEwpIHsKLQkJc2MtPmhuX3R4X3Rh c2txID0gdGFza3F1ZXVlX2NyZWF0ZV9mYXN0KCJobl90eCIsIE1fV0FJVE9LLAorCQlzYy0+aG5f dHhfdGFza3EgPSB0YXNrcXVldWVfY3JlYXRlKCJobl90eCIsIE1fV0FJVE9LLAogCQkgICAgdGFz a3F1ZXVlX3RocmVhZF9lbnF1ZXVlLCAmc2MtPmhuX3R4X3Rhc2txKTsKIAkJdGFza3F1ZXVlX3N0 YXJ0X3RocmVhZHMoJnNjLT5obl90eF90YXNrcSwgMSwgUElfTkVULCAiJXMgdHgiLAogCQkgICAg ZGV2aWNlX2dldF9uYW1ldW5pdChkZXYpKTsKQEAgLTIxNzgsNyArMjE3OCw3IEBACiAJaWYgKCFo bl9zaGFyZV90eF90YXNrcSkKIAkJcmV0dXJuOwogCi0JaG5fdHhfdGFza3EgPSB0YXNrcXVldWVf Y3JlYXRlX2Zhc3QoImhuX3R4IiwgTV9XQUlUT0ssCisJaG5fdHhfdGFza3EgPSB0YXNrcXVldWVf Y3JlYXRlKCJobl90eCIsIE1fV0FJVE9LLAogCSAgICB0YXNrcXVldWVfdGhyZWFkX2VucXVldWUs ICZobl90eF90YXNrcSk7CiAJdGFza3F1ZXVlX3N0YXJ0X3RocmVhZHMoJmhuX3R4X3Rhc2txLCAx LCBQSV9ORVQsICJobiB0eCIpOwogfQoK --b1_66f8f407a749bb2b7a73d2a62c8e9f68-- From owner-freebsd-net@freebsd.org Thu Feb 18 07:44:34 2016 Return-Path: Delivered-To: freebsd-net@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 62B86AAB23F for ; Thu, 18 Feb 2016 07:44:34 +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 4A6DFEEB for ; Thu, 18 Feb 2016 07:44:34 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 477EE33215A0; Thu, 18 Feb 2016 07:44:34 +0000 (UTC) Date: Thu, 18 Feb 2016 07:44:34 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5290+325+0f29ffe2afeb1a89@reviews.freebsd.org Subject: [Differential] [Closed] D5290: hyperv/hn: Use buf_ring for txdesc list 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: D5290: hyperv/hn: Use buf_ring for txdesc list 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 In-Reply-To: References: Thread-Index: OTExNDkzMzlmNjhmMjIyNzRkZmU3MzcwM2U5IFbFdmI= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_d765cb042c6d646a74f0af1a1d3cea62" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:44:34 -0000 --b1_d765cb042c6d646a74f0af1a1d3cea62 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295748: hyperv/hn: Use buf_ring for txdesc list (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5290?vs=13340&id=13406#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5290?vs=13340&id=13406 REVISION DETAIL https://reviews.freebsd.org/D5290 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_net_vsc.h head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_d765cb042c6d646a74f0af1a1d3cea62 Content-Type: text/x-patch; charset=utf-8; name="D5290.13406.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5290.13406.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTcwLDYgKzcwLDcgQEAKICNpbmNsdWRlIDxzeXMvbG9jay5oPgogI2luY2x1ZGUgPHN5 cy9zeC5oPgogI2luY2x1ZGUgPHN5cy9zeXNjdGwuaD4KKyNpbmNsdWRlIDxzeXMvYnVmX3Jpbmcu aD4KIAogI2luY2x1ZGUgPG5ldC9pZi5oPgogI2luY2x1ZGUgPG5ldC9pZl9hcnAuaD4KQEAgLTE1 MSw3ICsxNTIsOSBAQAogI2RlZmluZSBITl9ESVJFQ1RfVFhfU0laRV9ERUYJCTEyOAogCiBzdHJ1 Y3Qga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1Y3QgaG5fdHhf cmluZyB7CisjaWZuZGVmIEhOX1VTRV9UWERFU0NfQlVGUklORwogCXN0cnVjdCBtdHgJaG5fdHhs aXN0X3NwaW47CiAJc3RydWN0IGhuX3R4ZGVzY19saXN0IGhuX3R4bGlzdDsKKyNlbHNlCisJc3Ry dWN0IGJ1Zl9yaW5nCSpobl90eGRlc2NfYnI7CisjZW5kaWYKIAlpbnQJCWhuX3R4ZGVzY19jbnQ7 CiAJaW50CQlobl90eGRlc2NfYXZhaWw7CiAJaW50CQlobl90eGVvZjsKCg== --b1_d765cb042c6d646a74f0af1a1d3cea62-- From owner-freebsd-net@freebsd.org Thu Feb 18 08:08:13 2016 Return-Path: Delivered-To: freebsd-net@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 DB61AAABFDD for ; Thu, 18 Feb 2016 08:08:12 +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 C734E1AA7 for ; Thu, 18 Feb 2016 08:08:12 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id C481F3321044; Thu, 18 Feb 2016 08:08:12 +0000 (UTC) Date: Thu, 18 Feb 2016 08:08:12 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5316+325+0f7d5028d71a5ee9@reviews.freebsd.org Subject: [Differential] [Request, 33 lines] D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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: D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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: OTQ1NDdkYWNjNjEyZTViMjU4NDE4NzRjMDA2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_c0dbfdfdbd7cd3f51fdeaf46d1b46b46" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 08:08:13 -0000 --b1_c0dbfdfdbd7cd3f51fdeaf46d1b46b46 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 DETAIL https://reviews.freebsd.org/D5316 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 @@ -269,6 +269,10 @@ SYSCTL_INT(_hw_hn, OID_AUTO, use_txdesc_bufring, CTLFLAG_RD, &hn_use_txdesc_bufring, 0, "Use buf_ring for TX descriptors"); +static int hn_bind_tx_taskq = -1; +SYSCTL_INT(_hw_hn, OID_AUTO, bind_tx_taskq, CTLFLAG_RDTUN, + &hn_bind_tx_taskq, 0, "Bind TX taskqueue to the specified cpu"); + /* * Forward declarations */ @@ -383,8 +387,20 @@ if (hn_tx_taskq == NULL) { sc->hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &sc->hn_tx_taskq); - taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", - device_get_nameunit(dev)); + if (hn_bind_tx_taskq >= 0) { + int cpu = hn_bind_tx_taskq; + cpuset_t cpu_set; + + if (cpu > mp_ncpus - 1) + cpu = mp_ncpus - 1; + CPU_SETOF(cpu, &cpu_set); + taskqueue_start_threads_cpuset(&sc->hn_tx_taskq, 1, + PI_NET, &cpu_set, "%s tx", + device_get_nameunit(dev)); + } else { + taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, + "%s tx", device_get_nameunit(dev)); + } } else { sc->hn_tx_taskq = hn_tx_taskq; } @@ -2409,7 +2425,18 @@ hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &hn_tx_taskq); - taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); + if (hn_bind_tx_taskq >= 0) { + int cpu = hn_bind_tx_taskq; + cpuset_t cpu_set; + + if (cpu > mp_ncpus - 1) + cpu = mp_ncpus - 1; + CPU_SETOF(cpu, &cpu_set); + taskqueue_start_threads_cpuset(&hn_tx_taskq, 1, PI_NET, + &cpu_set, "hn tx"); + } else { + taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); + } } SYSINIT(hn_txtq_create, SI_SUB_DRIVERS, SI_ORDER_FIRST, hn_tx_taskq_create, NULL); 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_c0dbfdfdbd7cd3f51fdeaf46d1b46b46 Content-Type: text/x-patch; charset=utf-8; name="D5316.13407.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5316.13407.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZz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dGhyZWFkc19jcHVzZXQoJmhuX3R4X3Rhc2txLCAxLCBQSV9ORVQsCisJCSAgICAmY3B1X3Nl dCwgImhuIHR4Iik7CisJfSBlbHNlIHsKKwkJdGFza3F1ZXVlX3N0YXJ0X3RocmVhZHMoJmhuX3R4 X3Rhc2txLCAxLCBQSV9ORVQsICJobiB0eCIpOworCX0KIH0KIFNZU0lOSVQoaG5fdHh0cV9jcmVh dGUsIFNJX1NVQl9EUklWRVJTLCBTSV9PUkRFUl9GSVJTVCwKICAgICBobl90eF90YXNrcV9jcmVh dGUsIE5VTEwpOwoK --b1_c0dbfdfdbd7cd3f51fdeaf46d1b46b46-- From owner-freebsd-net@freebsd.org Thu Feb 18 08:15:34 2016 Return-Path: Delivered-To: freebsd-net@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 D25D0AAC2CC for ; Thu, 18 Feb 2016 08:15:34 +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 BB6DE1EA1 for ; Thu, 18 Feb 2016 08:15:34 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id B9AE133215A4; Thu, 18 Feb 2016 08:15:34 +0000 (UTC) Date: Thu, 18 Feb 2016 08:15:34 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5317+325+ef6a50613327bd89@reviews.freebsd.org Subject: [Differential] [Request, 2 lines] D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) 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: D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) 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: YzJmMDY1MGU4OTBiM2Y1YjNhNTNmODY2MWVj MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_ad9a06fb57de8f1bf64c5ab8898d4e68" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 08:15:35 -0000 --b1_ad9a06fb57de8f1bf64c5ab8898d4e68 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 Tested on Windows Server 2012. REVISION DETAIL https://reviews.freebsd.org/D5317 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 @@ -176,7 +176,7 @@ * later. UDP checksum offloading doesn't work on earlier * Windows releases. */ -#define HN_CSUM_ASSIST_WIN8 (CSUM_TCP) +#define HN_CSUM_ASSIST_WIN8 (CSUM_IP | CSUM_TCP) #define HN_CSUM_ASSIST (CSUM_IP | CSUM_UDP | CSUM_TCP) #define HN_LRO_LENLIM_DEF (25 * ETHERMTU) 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_ad9a06fb57de8f1bf64c5ab8898d4e68 Content-Type: text/x-patch; charset=utf-8; name="D5317.13408.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5317.13408.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC0xNzYsNyArMTc2LDcg QEAKICAqIGxhdGVyLiAgVURQIGNoZWNrc3VtIG9mZmxvYWRpbmcgZG9lc24ndCB3b3JrIG9uIGVh cmxpZXIKICAqIFdpbmRvd3MgcmVsZWFzZXMuCiAgKi8KLSNkZWZpbmUgSE5fQ1NVTV9BU1NJU1Rf V0lOOAkoQ1NVTV9UQ1ApCisjZGVmaW5lIEhOX0NTVU1fQVNTSVNUX1dJTjgJKENTVU1fSVAgfCBD U1VNX1RDUCkKICNkZWZpbmUgSE5fQ1NVTV9BU1NJU1QJCShDU1VNX0lQIHwgQ1NVTV9VRFAgfCBD U1VNX1RDUCkKIAogI2RlZmluZSBITl9MUk9fTEVOTElNX0RFRgkJKDI1ICogRVRIRVJNVFUpCgo= --b1_ad9a06fb57de8f1bf64c5ab8898d4e68-- From owner-freebsd-net@freebsd.org Thu Feb 18 08:30:27 2016 Return-Path: Delivered-To: freebsd-net@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 41597AAC8F4 for ; Thu, 18 Feb 2016 08:30:27 +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 2D59176D for ; Thu, 18 Feb 2016 08:30:27 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 29ECF3321D7E; Thu, 18 Feb 2016 08:30:27 +0000 (UTC) Date: Thu, 18 Feb 2016 08:30:27 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5318+325+0a68287b206dc9cb@reviews.freebsd.org Subject: [Differential] [Request, 5 lines] D5318: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed 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: D5318: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed 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: YTIzNmI4MjNlNGRmYjFlZDMyOTIyMTE1NThi MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_22735ec136f4255d18d21958ee8df6a8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 08:30:27 -0000 --b1_22735ec136f4255d18d21958ee8df6a8 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 DETAIL https://reviews.freebsd.org/D5318 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 @@ -2276,6 +2276,11 @@ bus_dma_tag_destroy(txr->hn_tx_data_dtag); if (txr->hn_tx_rndis_dtag != NULL) bus_dma_tag_destroy(txr->hn_tx_rndis_dtag); + +#ifdef HN_USE_TXDESC_BUFRING + buf_ring_free(txr->hn_txdesc_br, M_NETVSC); +#endif + free(txr->hn_txdesc, M_NETVSC); txr->hn_txdesc = NULL; 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_22735ec136f4255d18d21958ee8df6a8 Content-Type: text/x-patch; charset=utf-8; name="D5318.13409.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5318.13409.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl di9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJlZWJzZC5jCkBAIC0yMjc2LDYgKzIyNzYs MTEgQEAKIAkJYnVzX2RtYV90YWdfZGVzdHJveSh0eHItPmhuX3R4X2RhdGFfZHRhZyk7CiAJaWYg KHR4ci0+aG5fdHhfcm5kaXNfZHRhZyAhPSBOVUxMKQogCQlidXNfZG1hX3RhZ19kZXN0cm95KHR4 ci0+aG5fdHhfcm5kaXNfZHRhZyk7CisKKyNpZmRlZiBITl9VU0VfVFhERVNDX0JVRlJJTkcKKwli dWZfcmluZ19mcmVlKHR4ci0+aG5fdHhkZXNjX2JyLCBNX05FVFZTQyk7CisjZW5kaWYKKwogCWZy ZWUodHhyLT5obl90eGRlc2MsIE1fTkVUVlNDKTsKIAl0eHItPmhuX3R4ZGVzYyA9IE5VTEw7CiAK Cg== --b1_22735ec136f4255d18d21958ee8df6a8-- From owner-freebsd-net@freebsd.org Thu Feb 18 11:48:48 2016 Return-Path: Delivered-To: freebsd-net@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 B2B3DAAB453 for ; Thu, 18 Feb 2016 11:48:48 +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 A08B1A05 for ; Thu, 18 Feb 2016 11:48:48 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 9E9D73321928; Thu, 18 Feb 2016 11:48:48 +0000 (UTC) Date: Thu, 18 Feb 2016 11:48:48 +0000 To: freebsd-net@freebsd.org From: "howard0su_gmail.com (Howard Su)" Reply-to: D5316+325+0f7d5028d71a5ee9@reviews.freebsd.org Subject: [Differential] [Updated] D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU Message-ID: <6e3887803e9bae0b69867427bf57878c@localhost.localdomain> 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: D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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 In-Reply-To: References: Thread-Index: OTQ1NDdkYWNjNjEyZTViMjU4NDE4NzRjMDA2IFbFr6A= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 11:48:48 -0000 howard0su_gmail.com added a comment. I worried so many options just brings headache to the end user without the clearly instruction on how to tune it. Please introduce new option when it is really needed. Maybe it is good time now to write a man page for hn. REVISION DETAIL https://reviews.freebsd.org/D5316 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 From owner-freebsd-net@freebsd.org Thu Feb 18 12:14:23 2016 Return-Path: Delivered-To: freebsd-net@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 4F02FAAC838 for ; Thu, 18 Feb 2016 12:14:23 +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 3C3D71CF7 for ; Thu, 18 Feb 2016 12:14:23 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 398473321223; Thu, 18 Feb 2016 12:14:23 +0000 (UTC) Date: Thu, 18 Feb 2016 12:14:23 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5316+325+0f7d5028d71a5ee9@reviews.freebsd.org Subject: [Differential] [Commented On] D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU Message-ID: <0284e35776d9703aede9a3e0f7c148fc@localhost.localdomain> 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: D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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 In-Reply-To: References: Thread-Index: OTQ1NDdkYWNjNjEyZTViMjU4NDE4NzRjMDA2IFbFtZ8= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 12:14:23 -0000 sepherosa_gmail.com added a comment. In https://reviews.freebsd.org/D5316#113452, @howard0su_gmail.com wrote: > I worried so many options just brings headache to the end user without the clearly instruction on how to tune it. Please introduce new option when it is really needed. Maybe it is good time now to write a man page for hn. Well, I will complete the description: I _do_ need this to tracking the _host_ side transmission ring selection issue; and chances are high that I will set it by default in the end. If it's not necessary, I will not even bother to publish it. As for the man page, yeah, we should have one; I probably will do it after the if_transmit work. REVISION DETAIL https://reviews.freebsd.org/D5316 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 From owner-freebsd-net@freebsd.org Thu Feb 18 12:15:57 2016 Return-Path: Delivered-To: freebsd-net@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 C7FBBAAC8FA for ; Thu, 18 Feb 2016 12:15:57 +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 B52901E40 for ; Thu, 18 Feb 2016 12:15:57 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id B167F3321347; Thu, 18 Feb 2016 12:15:57 +0000 (UTC) Date: Thu, 18 Feb 2016 12:15:57 +0000 To: freebsd-net@freebsd.org From: "sepherosa_gmail.com (Sepherosa Ziehau)" Reply-to: D5316+325+0f7d5028d71a5ee9@reviews.freebsd.org Subject: [Differential] [Updated] D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU Message-ID: <50e246d3115b1e7a1417246cce57b04e@localhost.localdomain> 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: D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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 In-Reply-To: References: Thread-Index: OTQ1NDdkYWNjNjEyZTViMjU4NDE4NzRjMDA2IFbFtf0= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 12:15:57 -0000 sepherosa_gmail.com updated the summary for this revision. REVISION DETAIL https://reviews.freebsd.org/D5316 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 From owner-freebsd-net@freebsd.org Thu Feb 18 07:38:28 2016 Return-Path: Delivered-To: freebsd-net@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 04D57AACE14 for ; Thu, 18 Feb 2016 07:38:28 +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 E4415B1D for ; Thu, 18 Feb 2016 07:38:27 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id E1537332153D; Thu, 18 Feb 2016 07:38:27 +0000 (UTC) Date: Thu, 18 Feb 2016 07:38:27 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5283+325+ff964c8d52006f6a@reviews.freebsd.org Subject: [Differential] [Closed] D5283: hyperv/hn: Split TX ring data structure out of softc Message-ID: <233704f5d5e34226b64c8adb5ede3ef6@localhost.localdomain> 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: D5283: hyperv/hn: Split TX ring data structure out of softc 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 In-Reply-To: References: Thread-Index: NzMzOGZkYjcxOGQ0MjYzYmE0NWE0Nzc3NTExIFbFdPM= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_233704f5d5e34226b64c8adb5ede3ef6" X-Mailman-Approved-At: Thu, 18 Feb 2016 12:18:19 +0000 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 07:38:28 -0000 --b1_233704f5d5e34226b64c8adb5ede3ef6 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295747: hyperv/hn: Split TX ring data structure out of softc (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5283?vs=13312&id=13405#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5283?vs=13312&id=13405 REVISION DETAIL https://reviews.freebsd.org/D5283 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_net_vsc.h head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_233704f5d5e34226b64c8adb5ede3ef6 Content-Type: text/x-patch; charset=utf-8; name="D5283.13405.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5283.13405.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jI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Q7Ci0JdV9sb25nCQlobl90eGRtYV9mYWlsZWQ7Ci0JdV9sb25nCQlobl90eF9jb2xsYXBz ZWQ7Ci0JdV9sb25nCQlobl90eF9jaGltbmV5OworCWludAkJaG5fdHhfcmluZ19jbnQ7CisJc3Ry dWN0IGhuX3R4X3JpbmcgKmhuX3R4X3Jpbmc7CisJaW50CQlobl90eF9jaGltbmV5X21heDsKKwlz dHJ1Y3QgdGFza3F1ZXVlICpobl90eF90YXNrcTsKKwlzdHJ1Y3Qgc3lzY3RsX29pZCAqaG5fdHhf c3lzY3RsX3RyZWU7CiB9IGhuX3NvZnRjX3Q7CiAKIC8qCgo= --b1_233704f5d5e34226b64c8adb5ede3ef6-- From owner-freebsd-net@freebsd.org Thu Feb 18 12:47:31 2016 Return-Path: Delivered-To: freebsd-net@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 613D6AAC179 for ; Thu, 18 Feb 2016 12:47:31 +0000 (UTC) (envelope-from amerystrong061@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 41A631567 for ; Thu, 18 Feb 2016 12:47:31 +0000 (UTC) (envelope-from amerystrong061@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3EFB4AAC178; Thu, 18 Feb 2016 12:47:31 +0000 (UTC) Delivered-To: net@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 26501AAC177 for ; Thu, 18 Feb 2016 12:47:31 +0000 (UTC) (envelope-from amerystrong061@gmail.com) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F24A91566 for ; Thu, 18 Feb 2016 12:47:30 +0000 (UTC) (envelope-from amerystrong061@gmail.com) Received: by mail-pa0-x229.google.com with SMTP id ho8so31251727pac.2 for ; Thu, 18 Feb 2016 04:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-language:thread-index; bh=+hg7e4eegxDqhMtnAAxADcTtVcSmnqg/g8BWW2CRWXE=; b=VBO3PfPtF1k3uw2EzbdVpLRVyCCxWrAlvHIqgiKJ9ITQt5SQ/EJLvGXMQFQMgYAKHd HEoglXdIQzuCK8/fDTAYUj5DLhxoiV5I9Flp5WapM1qzkj/wd6D0GseDUyU57FJlDeLG pza+/lUQw1IMP7F6pMKH4itp7rWoTwa/qAgzKgGKUnsL14dPWSMQkBn3zfqTilIDo3ja 4OZLt3EiZNj0NUz+LYMGa5SmuwR4HECISwGv+kkyBRBw7srdKCEdaQGlZPMzUvWmmls4 Mrk4rn19TBPfw7xac1PwCmLXNn4MpQsI/rkJXEVa6IwYVj9sIznMOJ4YP5SSWJWaX1Lv 1Oaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type:content-language:thread-index; bh=+hg7e4eegxDqhMtnAAxADcTtVcSmnqg/g8BWW2CRWXE=; b=cYvn1xY6omULQos504bX+g0QlU1jP1JahnI/HdbxwIHPYiLy9OnwCIn7jTZx1doZN9 S1VKpdPb3V9ZPL27x4Vwbr+NCE3NOvGlFM3r0XxnAKv9XVviJ47WMI5jZIp0GZphHDy9 EIpnUz3nG4+6iVMPeUwTcCnESBt2IWyUCYK7ohTeKQc7zNe8WnCwi7RqZelfhE63itpf T3oCY7UQjQq1j3JpzrpQmvnd+VEetNAEhhGqoIui1h0kzIUxAT2RZdke9/86fl2B00s6 lBxw2ZHL6J+7OzENyj2+Rk8P0ubeNtHGi3DXmCmudbwLqQ5y5DZ18JjZu38A4GWn1RBW Lxpg== X-Gm-Message-State: AG10YOTQgshoZi9pr+3Ia2ImLwSho3ZYS1t4Z+wHxKn9V70Vcid9SAbfawiNy1b1gx3c6A== X-Received: by 10.66.139.166 with SMTP id qz6mr9680043pab.3.1455799650464; Thu, 18 Feb 2016 04:47:30 -0800 (PST) Received: from Sambhu ([123.136.233.27]) by smtp.gmail.com with ESMTPSA id r62sm10218408pfr.26.2016.02.18.04.47.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Feb 2016 04:47:29 -0800 (PST) From: "Amery Strong" To: Subject: Web Proposal Date: Thu, 18 Feb 2016 18:17:15 +0530 Message-ID: <220001d16a4a$868544a0$938fcde0$@com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Thread-Index: AdFqSYxv+TztNryhRPij2QPALjo1iA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 12:47:31 -0000 Hello Greetings! I have visited your website and wanted to shoot you a quick note. If you want I can make a few changes (aesthetically and/or SEO-wise) to make your site convert more visitors into leads and to get it placed higher in the organic search for a few of the select terms. This is NOT like one of those foreign emails you probably get in your inbox every day. Just to be upfront we have experienced and skilled SEO & Web Designing team, they are committed to perform white hat SEO activities to bring organic traffic providing business oriented creative design to our client's website. I would just need to know which (if not both) services you're open to checking out information about, either SEO or Web Design. Would you be open to seeing more brief info / quote for what I would like to accomplish? Please let me know your interest. If you are interested, kindly revert back with your contact (Phone, Skype) details and requirement. Warm Regards Amery Strong Online Marketing Representative P.S:- This is our marketing strategy that we use Gmail id, when you revert us back we will contact you through our company name. Note:- If you are not interested then you can reply with a simple "NO", we will never contact you again.(Web Media) From owner-freebsd-net@freebsd.org Thu Feb 18 13:57:12 2016 Return-Path: Delivered-To: freebsd-net@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 53BC8AACEC5 for ; Thu, 18 Feb 2016 13:57:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 446161CB5 for ; Thu, 18 Feb 2016 13:57:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1IDvBkb025612 for ; Thu, 18 Feb 2016 13:57:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 13:57:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 13:57:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #48 from George V. Neville-Neil --- (In reply to Andrey V. Elsukov from comment #47) It turns out that for this bug fastforward (the predecessor to tryforward) would never have worked either. I am working up an alternate fix and testi= ng it now, but the issue is now time. This bug is holding up the 10.3 release. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 14:06:33 2016 Return-Path: Delivered-To: freebsd-net@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 DA361AAC311 for ; Thu, 18 Feb 2016 14:06:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CAB4E288 for ; Thu, 18 Feb 2016 14:06:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1IE6WYo079612 for ; Thu, 18 Feb 2016 14:06:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 14:06:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ae@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 14:06:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #49 from Andrey V. Elsukov --- (In reply to George V. Neville-Neil from comment #48) > It turns out that for this bug fastforward (the predecessor to tryforward) > would never have worked either. I am working up an alternate fix and > testing it now, but the issue is now time. This bug is holding up the 10= .3 > release. But for those for whom fastforwarding worked (i.e. IPSEC is disabled and ip= fw is enabled), now it will never work. I think it is easiest and better to re= vert this MFC for 10.3 and properly fix it in the head/. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 14:24:45 2016 Return-Path: Delivered-To: freebsd-net@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 4BFBFAACE45 for ; Thu, 18 Feb 2016 14:24:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C7871081 for ; Thu, 18 Feb 2016 14:24:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1IEOiGn018445 for ; Thu, 18 Feb 2016 14:24:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 14:24:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 14:24:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #50 from George V. Neville-Neil --- Created attachment 167150 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167150&action= =3Dedit Copy the mbuf for use in icmp error messages. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 15:18:40 2016 Return-Path: Delivered-To: freebsd-net@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 80322AAC88B for ; Thu, 18 Feb 2016 15:18:40 +0000 (UTC) (envelope-from tino.engel@hotmail.com) Received: from DUB004-OMC2S21.hotmail.com (dub004-omc2s21.hotmail.com [157.55.1.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04DEB1D81 for ; Thu, 18 Feb 2016 15:18:39 +0000 (UTC) (envelope-from tino.engel@hotmail.com) Received: from DUB109-W140 ([157.55.1.137]) by DUB004-OMC2S21.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 18 Feb 2016 07:17:30 -0800 X-TMN: [iBV4Su6c4ULZy8682D7y8PMBGlBA7+8k] X-Originating-Email: [tino.engel@hotmail.com] Message-ID: From: Tino Engel To: "freebsd-net@freebsd.org" Subject: Support for Killer E2400 Ethernet Date: Thu, 18 Feb 2016 16:17:30 +0100 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 18 Feb 2016 15:17:30.0860 (UTC) FILETIME=[7C32DAC0:01D16A5F] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 15:18:40 -0000 =0A= =0A= =0A= Hello all=2C I am trying to establish support for the Killer E2400 ethernet adapter. I am following the approach that works for the linux driver=2C which is bas= ically:- Add the E2400 device ID- Copy all device related stuff from the E2= 200 What works:- DHCP- Ping any host in the internet What does not work:- Downloading stuff using "fetch"- Setup pkg- Therefore = cannot browse since I even cannot install pkg in order to obtain a browser The error message I continously receive is "alc0: DMA write error". I have so far played with all the loader tunables and sysctls supported by = the alc driver=2C but no improvement of the situation. Any ideas how to proceed? Gr33z=2C Tino=0A= = From owner-freebsd-net@freebsd.org Thu Feb 18 16:57:13 2016 Return-Path: Delivered-To: freebsd-net@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 90CADAAC1B7 for ; Thu, 18 Feb 2016 16:57:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82531829 for ; Thu, 18 Feb 2016 16:57:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1IGvB9f049261 for ; Thu, 18 Feb 2016 16:57:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 16:57:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vangyzen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 16:57:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 Eric van Gyzen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vangyzen@freebsd.org --- Comment #51 from Eric van Gyzen --- Comment on attachment 167150 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167150 Copy the mbuf for use in icmp error messages. In the "Copy the mbuf" patch, some paths seem to either double-free or leak= an mbuf. I can comment on specific lines, if you'd like. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 18:16:31 2016 Return-Path: Delivered-To: freebsd-net@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 AA616AAC971 for ; Thu, 18 Feb 2016 18:16:31 +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 98592930 for ; Thu, 18 Feb 2016 18:16:31 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 94C4F3321A08; Thu, 18 Feb 2016 18:16:31 +0000 (UTC) Date: Thu, 18 Feb 2016 18:16:31 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5316+325+0f7d5028d71a5ee9@reviews.freebsd.org Subject: [Differential] [Accepted] D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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: D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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 In-Reply-To: References: Thread-Index: OTQ1NDdkYWNjNjEyZTViMjU4NDE4NzRjMDA2IFbGCn8= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 18:16:31 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5316 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Thu Feb 18 18:16:44 2016 Return-Path: Delivered-To: freebsd-net@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 CCBD7AAC9A6 for ; Thu, 18 Feb 2016 18:16:44 +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 BAB66A2F for ; Thu, 18 Feb 2016 18:16:44 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id B736E3321AD5; Thu, 18 Feb 2016 18:16:44 +0000 (UTC) Date: Thu, 18 Feb 2016 18:16:44 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5317+325+ef6a50613327bd89@reviews.freebsd.org Subject: [Differential] [Accepted] D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) Message-ID: <1e471935c1f51f307b06a053cf205ea0@localhost.localdomain> 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: D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) 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 In-Reply-To: References: Thread-Index: YzJmMDY1MGU4OTBiM2Y1YjNhNTNmODY2MWVjIFbGCow= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 18:16:44 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5317 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Thu Feb 18 18:16:56 2016 Return-Path: Delivered-To: freebsd-net@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 D0A55AACA0C for ; Thu, 18 Feb 2016 18:16:56 +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 BF2FFB22 for ; Thu, 18 Feb 2016 18:16:56 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id BCA8E3321BB0; Thu, 18 Feb 2016 18:16:56 +0000 (UTC) Date: Thu, 18 Feb 2016 18:16:56 +0000 To: freebsd-net@freebsd.org From: "adrian (Adrian Chadd)" Reply-to: D5318+325+0a68287b206dc9cb@reviews.freebsd.org Subject: [Differential] [Accepted] D5318: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed Message-ID: <662bcec548a33d011eeed8c764f50621@localhost.localdomain> 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: D5318: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed 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 In-Reply-To: References: Thread-Index: YTIzNmI4MjNlNGRmYjFlZDMyOTIyMTE1NThiIFbGCpg= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 18:16:56 -0000 adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5318 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list From owner-freebsd-net@freebsd.org Thu Feb 18 18:58:51 2016 Return-Path: Delivered-To: freebsd-net@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 62076AADBED for ; Thu, 18 Feb 2016 18:58:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53A999AF for ; Thu, 18 Feb 2016 18:58:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1IIwnpw013809 for ; Thu, 18 Feb 2016 18:58:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207087] kernel: r295285 in 10.2-STABLE breaks OpenVPN functionality Date: Thu, 18 Feb 2016 18:58:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gnn@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnn@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 18:58:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207087 --- Comment #52 from George V. Neville-Neil --- I am now tracking an updated patch in Phabricator: https://reviews.freebsd.org/D5330 That's where the rest of this will be carried out. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 20:22:08 2016 Return-Path: Delivered-To: freebsd-net@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 C6B74AAC245 for ; Thu, 18 Feb 2016 20:22:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB887170 for ; Thu, 18 Feb 2016 20:22:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1IKM8jF057678 for ; Thu, 18 Feb 2016 20:22:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 196944] [bge] [ipmi] regression IPMI access disabled when bge driver is loaded Date: Thu, 18 Feb 2016 20:22:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: andrew.daugherity@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 20:22:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196944 Andrew Daugherity changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.daugherity@gmail.com --- Comment #1 from Andrew Daugherity --- I can confirm this regression on a Dell PowerEdge SC1435 with the same BCM5= 721 NICs: % pciconf -lvb bge0 bge0@pci0:1:0:0: class=3D0x020000 card=3D0x01eb1028 chip=3D0x165914e= 4 rev=3D0x21 hdr=3D0x00 vendor =3D 'Broadcom Corporation' device =3D 'NetXtreme BCM5721 Gigabit Ethernet PCI Express' class =3D network subclass =3D ethernet bar [10] =3D type Memory, range 64, base 0xefcf0000, size 65536, enab= led bge0: = mem 0xefcf0000-0xefcfffff irq 33 at device 0.0 on pci1 bge0: CHIP ID 0x00004201; ASIC REV 0x04; CHIP REV 0x42; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow I am running 10.2 and IPMI ceases to work after the kernel loads. I previo= usly ran Linux on this hardware and IPMI worked fine. IPMI shares a physical po= rt with bge0 but has its own MAC address and IP. I have tested other versions of FreeBSD install images, and for my hardware= at least, the regression seems to be between 9.1 and 9.2: 9.1: works 9.2: does not work 9.3: does not work 10.2: does not work Interestingly, I have some PE850 (not 860) running 9.3 that also have a BCM= 5721 bge0, and IPMI *does* work on 3/4 of them, but only when connecting from the local subnet, despite the gateway being set in IPMI config. Not sure what's broken with the last one, or when the others started working at all; I know= the last time I tried IPMI on those a couple years ago it failed the same way (worked at boot, stopped working once kernel initialized bge0), but that wa= s in the 7.x or 8.x days. My SC1435 has IPMI 2.0, unlike the 850 & 860, which only have IPMI 1.5, if = that matters. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Feb 18 21:12:34 2016 Return-Path: Delivered-To: freebsd-net@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 CF01DAADC78 for ; Thu, 18 Feb 2016 21:12:34 +0000 (UTC) (envelope-from mary.richardson@technocontinental.com) Received: from IND01-MA1-obe.outbound.protection.outlook.com (mail-ma1ind01on0106.outbound.protection.outlook.com [104.47.100.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3326E1E09 for ; Thu, 18 Feb 2016 21:12:33 +0000 (UTC) (envelope-from mary.richardson@technocontinental.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORGFT1295427.onmicrosoft.com; s=selector1-technocontinental-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=18//jRaJM8w5J1mDrQ9Fe9H7DdPoIFU6rRJGUAA0oWw=; b=RIZSCJ6CZv1GYZU513rFOgtosAAW4Nu2PZmVvOxe9pgHx94ib72wGurhtU1DUAzsKHWm7bMMd0JE2/gVBZXzz4jQnF8oOZ8aZ8XO3sOeC+wTxfJ1fw95BuCdTeGJyqrwSmfFSKtyk5jW2yMX1QzSqyNBtlDKKABnKkl5qFi1v4k= Received: from BM1PR01MB0228.INDPRD01.PROD.OUTLOOK.COM (10.164.130.7) by BM1PR01MB0225.INDPRD01.PROD.OUTLOOK.COM (10.164.129.151) with Microsoft SMTP Server (TLS) id 15.1.409.15; Thu, 18 Feb 2016 18:40:43 +0000 Received: from BM1PR01MB0228.INDPRD01.PROD.OUTLOOK.COM ([10.164.130.7]) by BM1PR01MB0228.INDPRD01.PROD.OUTLOOK.COM ([10.164.130.7]) with mapi id 15.01.0409.017; Thu, 18 Feb 2016 18:40:43 +0000 From: Mary Richardson To: "freebsd-net@freebsd.org" Subject: Kaspersky Firewall Users Thread-Topic: Kaspersky Firewall Users Thread-Index: AdFqe5To1JdB0sahSGigMcgN72YyDA== Date: Thu, 18 Feb 2016 18:38:41 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=technocontinental.com; x-originating-ip: [115.99.138.94] x-microsoft-exchange-diagnostics: 1; BM1PR01MB0225; 5:0nEzNPg4jvEHCPCK5gV+enZ7vMxIv/x5B8ZBm6PQ80Qb3K72i995aXzmVP3P8HYJKaDwwt54sYSCry6LPXXKrj0IB18xb+T+aIwiCZnttPfebaa0L7liucsivp9E8RFu3YgzYULDLkuRyg8pkl+7ZA==; 24:J8IAqCYwJHHGEjBbkiHrpiPZ/7vaNLYgR7kpefRjqJkf2eBUbnD9pT1Wg5loYESamymoUVKsmi8By8+FvL+4EtRyWL1dHctQYvqoY0bqW4k= x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(42143001); SRVR:BM1PR01MB0225; x-ms-office365-filtering-correlation-id: eceec378-cf5f-4334-a7f9-08d33893022e x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BM1PR01MB0225; BCL:0; PCL:0; RULEID:; SRVR:BM1PR01MB0225; x-forefront-prvs: 085634EFF4 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(5004730100002)(5003600100002)(54356999)(19580395003)(50986999)(33656002)(229853001)(189998001)(16236675004)(19625215002)(86362001)(5002640100001)(107886002)(110136002)(2351001)(5001960100002)(40100003)(2900100001)(92566002)(790700001)(122556002)(450100001)(102836003)(10400500002)(6116002)(3660700001)(2501003)(11100500001)(3480700003)(1096002)(1220700001)(19300405004)(77096005)(15975445007)(87936001)(66066001)(2906002)(3846002)(586003)(5008740100001)(3280700002)(26730200004)(19860200003); DIR:OUT; SFP:1102; SCL:1; SRVR:BM1PR01MB0225; H:BM1PR01MB0228.INDPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: technocontinental.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2016 18:38:41.9329 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 24564114-3927-4556-979c-9ca882ae1b51 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BM1PR01MB0225 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 21:12:35 -0000 Hi, I am just writing to check if you would be interested in Kaspersky Firewall= Users contacts list? We also have Other Technology Users Like: McAfee, Trend Micro, Webroot, Sym= antec, ESET, F-Secure, Avira, AVG Technologies, Dell, AOL, SonicWall, Forti= net, Cisco Firewall, Palo Alto Networks, HP Firewall, Barracuda Firewall, S= ophos UTM, WatchGuard, OpenSSH and many more... Information Fields: Name, Title, Email, Phone, Company Name, Physical Addre= ss, City, State, Zip Code, Country, Web Address, Employee Size, Revenue Siz= e, Industry and Technology they use. Note: If Kaspersky Firewall Users is not relevant to you please reply back = with your Target Market, we have all types of target market available. Regards, Mary Richardson Business Development officer To opt out please response REMOVE From owner-freebsd-net@freebsd.org Thu Feb 18 22:41:32 2016 Return-Path: Delivered-To: freebsd-net@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 A0AE7AAC32D for ; Thu, 18 Feb 2016 22:41:32 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29B5713B0 for ; Thu, 18 Feb 2016 22:41:32 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lb0-x22f.google.com with SMTP id of3so37257686lbc.1 for ; Thu, 18 Feb 2016 14:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=w//SiT9inyaQu+M8JIrbfQt7Twmyn2URL2DoOmehoR4=; b=bhyehQOKoTg8WVdyGFS1XMQShukYV967XjZgJp60pAijYgEWqCZds15T0FnrODWRv9 fYtIqlC/hVjjoh+JEX41JRmiBUCM0SNps/eCGYAuzJxAIHvAGO46I/Pl8wWvNsa3AfAd HWl8Ah1Dcvuql12VykdFs97ZWM9OtuWxiotchlueibzS6sBDgo2WsWkNoZXqsAxUbFAi vUkKPKA5yUUaefc3JIyCKjYz4jsWlJVo5cVqj91uoviUHs9PHRbdL878yOggiDjASufq UXKfE42+ob0xqeanqBe06u0ljjCy2EWyU5qEhMebGvVPEzG8vpVEc2UqU/83r7Ht4VAp YV/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=w//SiT9inyaQu+M8JIrbfQt7Twmyn2URL2DoOmehoR4=; b=DaQAYb+rrpMqMroaz11qefWNs1ARIARpYRjI48ZKYqHCdv+im9lNd8JwTS5HNTshNh f+TCFH2tV0A2qydZXLoD1Et7MfS6V0kUNQ2vbHmvSZeEiYUc3/BEutnXBJhzNzn8LWcp C+LDwb5emEeGATvuwBapjuQ03M+T8WEMBtZ5pfipgxRce5vPurMlZTHuZZz0K/rOB3N+ 8ZtX2MIk8CW8TZKS6FL6toloFcJD6GfXDmn0xvH3R4+SpqLWyQXIGzJ/5RRIT8eLCOA/ GiSnSKksfTxohJ3v8K/MiEj48vchg9PGMThj7gFVtB3RUJTKfqzcFZ7mKjZFsnJ/ycTO eyIA== X-Gm-Message-State: AG10YOQV21IKZDBKTbJJeu/CslgCl7AmtgM8BPvDx28bHEQsDZ3jDOGmIwAkkjF4FyWEgOTpnSl1fjQAIUwQww== MIME-Version: 1.0 X-Received: by 10.112.170.73 with SMTP id ak9mr4151697lbc.92.1455835290318; Thu, 18 Feb 2016 14:41:30 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.184.146 with HTTP; Thu, 18 Feb 2016 14:41:30 -0800 (PST) In-Reply-To: References: Date: Thu, 18 Feb 2016 14:41:30 -0800 X-Google-Sender-Auth: 2_sLt97vgKBJ8eCEiSqlZ1k0HJg Message-ID: Subject: Re: netmap packet timestamping From: Luigi Rizzo To: Chris Inacio Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 22:41:32 -0000 Hi, when you call poll() or one of the ioctl, the timestamp is saved in the netmap_ring and you can access it from there. This is roughly as good (or as bad) as the timestamp supplied by the OS kernel in the regular network stack. Differences: - the kernel network stack typically produces a timestamp when the interrupt/NAPI thread runs, which is not when packet was received. Packets processed in the same run of the interrupt handler may have slightly different timestamps but the interval between packets has no relation to the actual interarrival times. - the timestamp provided by netmap in the netmap ring only indicates the last time the *_rxsync() has been called. This happens during the execution of a system call, so when the calling process is about to be woken up. Again it does not correspond to the actual packet arrival time, though the process may run slightly later than the interrupt thread in the previous case, depending on priorities. We could in principle have the interrupt thread update the timestamp in the ring but that would be racy. There is only a single timestamp for the entire ring, which helps reminding you that you cannot compute interarrival times for packets that arrive in the same interrupt. cheers luigi On Mon, Feb 15, 2016 at 6:20 PM, Chris Inacio wrote: > Hello all, > > I'm trying to write some code to work with netmap which previously worked > with PCAP API. In the PCAP API it's easy enough to get the timestamp the > packet arrived from the API, but I can't find that (easily) from the netmap > API. I'm not concerned with Tx, only Rx. > > Is there an easy place to get the packet timestamp? I saw the timestamp in > the flags, but it wasn't clear to me that it would be a received timestamp. > > Also, since I'm not a regular list reader, please keep my email address on > the thread too. > > Thanks > chris inacio > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+------------------------------- From owner-freebsd-net@freebsd.org Fri Feb 19 00:50:55 2016 Return-Path: Delivered-To: freebsd-net@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 6B847AAC533 for ; Fri, 19 Feb 2016 00:50:55 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E65DE389 for ; Fri, 19 Feb 2016 00:50:54 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lb0-x233.google.com with SMTP id x1so38489528lbj.3 for ; Thu, 18 Feb 2016 16:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=BfG3a+hlTFl2sHb+pUNq5P8nwUv2NNa2wlfrtmctsp8=; b=zMxm424zNDxTiFPoOeTjpGumQLhbBKv6eQUgzXr9MZqU/pWx7k/mDsRNjre7NOLTQp Sx8qBbV2ciSxU6o9tZBzO6Yf/KjqxNB2BqgsxkySA7A4scVgMpEvJvFRj7dr3Q4sKRkp lIWFET7VOb9bpEnYV8zs0Rr3A6Xs4LyuKsuZ7YC1EK5a891cTYYUeKj6+CNYWAAa4xR5 W4emYnKbsz8mw3LuyAs0wmt8UAhuow23O83U4N9n4CRvGis+EsrQxt2AGHxXRVGJiODb Y/0e3W6j/2SHjN8LxK3Mruw9X1+tKU0/7R2QWC2aL2Ur1JOzZPszyLy1DHmMh77463N3 o5JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=BfG3a+hlTFl2sHb+pUNq5P8nwUv2NNa2wlfrtmctsp8=; b=Eg7tN27NKFKP53xfeAMFMcXUKyHb/pq9SOfzz9PjgYP/N9bPez6jXJ8fxE+QPzlwNc PxpKaG/rUVZ325QPdJqMhR9kIux8JOgodFLd2QZ3We5lCmkx1tzEMjNfdXSga9i6xL5P 1DTIAgn1otnW8RRuWHsEORhsfhQYa0xEeywcvH/CVgnHOIjmrdvQjyFnkBpXdVhhTqf2 997ycb4+CZVBlmjV0UyDeXqlgLHCkanN07VSg4jdpMJOYGzLk1aISKwa8ybtZpRN0fwU eaiBvE2pcRhoxZ8hA4AEsohoN3n+9xGZWW86GKzVXqhG1DunhKVonIT2xLOpwlZI/2yW AWFQ== X-Gm-Message-State: AG10YOS0dqkGJocjRHLOsEE+RtDKI+T/sxXyksU9nQRnrWLrIsggSKFeHwPXgm4fklLNca5LHN4G7wqJWpzWlw== MIME-Version: 1.0 X-Received: by 10.112.126.72 with SMTP id mw8mr4361698lbb.14.1455843051948; Thu, 18 Feb 2016 16:50:51 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.184.146 with HTTP; Thu, 18 Feb 2016 16:50:51 -0800 (PST) Date: Thu, 18 Feb 2016 16:50:51 -0800 X-Google-Sender-Auth: C4pt68gq960bL_SL3Kgf0NeXXH0 Message-ID: Subject: announcing TLEM, high speed netmap based link emulator From: Luigi Rizzo To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 00:50:55 -0000 Hi, we just added a few applications to the netmap distribution on github. In particular one of them is TLEM, a high speed link emulator based on netmap, that can reach 20 Mpps and 40 Gbit/s per direction. For the time being you can find it on github https://github.com/luigirizzo/netmap/tree/master/apps/tlem (the source code is actually a single file). The work will be presented at the upcoming AsiaBSDCon in March, you can fetch the paper at http://info.iet.unipi.it/~luigi/research.html Enjoy Luigi -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+------------------------------- From owner-freebsd-net@freebsd.org Fri Feb 19 01:17:27 2016 Return-Path: Delivered-To: freebsd-net@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 41071AAD3BA for ; Fri, 19 Feb 2016 01:17:27 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C12E1172C for ; Fri, 19 Feb 2016 01:17:26 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lb0-x231.google.com with SMTP id x1so38736960lbj.3 for ; Thu, 18 Feb 2016 17:17:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=vvbBC9lP9R0E0XwCmqKxpMSBc7bszoZ0j5PLpHu3Ls8=; b=u7X6/9MC0VjzqkMGNP3qWRUHcQ9Z7auEmQ3YDWttk8vpWXaP7Bgz5zuCC/FZcN5KVp sPuoCiwMRBgMNZm/n00y+vYoJdUpjruvznShtLi8aRLlh2qUz7Bg3+KNIE0drxtWC461 K5ELxQcEePuqBlCemFlV9hyO4HlJTiRBQ8evYb++W7zLEvJIwRg1GG0k31wrtRIWOSmA nuIwUr2iG5CtESha5U0NWyTJn3/QSIbjPrnmemI21gp8pRcxJaLKpwfa713LuXLSqo6s KooZaxjblZMQRqVuJyvDrAIwkNoR/kHz3KMPMCksE4b/zyodeya4poiZdxedpuG3bghN bkUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=vvbBC9lP9R0E0XwCmqKxpMSBc7bszoZ0j5PLpHu3Ls8=; b=WWMdu9waJi7wKNex9cMxtAinFyfSarkuHVk76yMFJuBRR3D62N2AdWIdbLdczOUnJZ vwhwiaYG9oMANgDEz197fqM+7bnq2br8hGIF4GgoWwfA71FOllFLX+hXpxRRIxnoPeMB QxTLLlrcYxJUBWOhjfZeMW+5uZ7GA13GIVfd9TvPPLdnLAvyXboZZjf2ZBt5+LOhXUxt m695fkIn9t075OpuV2BVRWHzZH4C7PbOoN4KClDUSnHtV7jyIRU6J6qGgHXP3wNPjpgo Hh2E9WdDasu7/YK8Tss2OFlNAviucbvmgCQUCI/REwZgdqIJMvtqs2KdiMimGt3jdsPs 0Pmg== X-Gm-Message-State: AG10YOS8TKyTbeu7JH/XFVkPc47iRjh/wa+CYWeeRzHuthEk8QXVjaRA1YfHdRHJPnkccQiPB9P9asu69o9Ixw== MIME-Version: 1.0 X-Received: by 10.112.13.165 with SMTP id i5mr3682392lbc.79.1455844644800; Thu, 18 Feb 2016 17:17:24 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.184.146 with HTTP; Thu, 18 Feb 2016 17:17:24 -0800 (PST) Date: Thu, 18 Feb 2016 17:17:24 -0800 X-Google-Sender-Auth: Aup0htWimU75du3hYiI7T4D5k2k Message-ID: Subject: announcing NMREPLAY, a netmap based pcap player From: Luigi Rizzo To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 01:17:27 -0000 Hi, we just added a few applications to the netmap distribution on github. NMREPLAY is a netmap based traffic generator that can read a pcap file and play it back at a programmable rate. The code is partly based on TLEM (previously announced), and same as the latter can reach 20 Mpps and 40-50 Gbit/s per direction. For the time being you can find it on github https://github.com/luigirizzo/netmap/tree/master/apps/nmreplay (the source code is actually a single file). Enjoy Luigi -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+------------------------------- From owner-freebsd-net@freebsd.org Fri Feb 19 01:26:21 2016 Return-Path: Delivered-To: freebsd-net@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 E947AAAD72B for ; Fri, 19 Feb 2016 01:26:20 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5E041B09 for ; Fri, 19 Feb 2016 01:26:20 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by mail-pf0-x233.google.com with SMTP id c10so42615233pfc.2 for ; Thu, 18 Feb 2016 17:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=u2aRUuxeDjOoPjXFI8x+CajzA7d+AYEvdxG3KxS/lds=; b=lLtRny08TU8xaErsiil4IFkNOGUxGSV1L0L7x2nB3sUiDJElsjoxvYboyjpCjOsIcI X3ZcIiqZq5/gwD7c8AJl4uaYmYgHpnhv6JnHlV7H1sSG6aBKXkWbYqoq9+XQ5qfitxic 8X/3quW74uL7NLaBP04C2i5x52Z3K/BYqzZlP8bHvihmx9h5ZjkcdfjUqJMewshfBoSc s1jJyIaw7my3Yr2uyAEFugFGljs2ygO5clzwLrMl/71YgEdpaNTFvshCiWo4D/mi34Fl 5rF/HYEB5uoCtHYJpR25jvC7B1FMZZzqRPNdCKq+TaKnZUHfMva6toCR7hsDJfcdA9W7 0fEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=u2aRUuxeDjOoPjXFI8x+CajzA7d+AYEvdxG3KxS/lds=; b=fdxSV1UkeJEyhbohDXpJcoDgpkfxEspQnFOOI9oMLWLlaq3k19/QFc9ZOhqi2hxZOd S6bx33bCFKvcJPMWisR+qMzRhz5rRoIXohl08IIh76A/sf3OzYnchqx9JURB3m1ux59y CAx2wPc3Roq9uz87JqQvOTvJjhuM2eqL7w1QgvpWiZHikKjyAzCoSgKGbudyZzgKwhpi f1SkY6pFM6Un6Gn631zrF4EPtMXxGqWKNRcB9Ys8Z5QkC16MfqyyexLT/61FrkIbKMOt jGp3lUxRiXQ5VUftgs0ld0W7hB1w3gZhD+cAM4OPiA9w+Uy7G0tFyof60obH7/qDt9Ut +stw== X-Gm-Message-State: AG10YOT5Pn1fTvzl7HVnLLE3PrCwjh9XBGfye0fZmnCnbI5fCDD7dYvRZPUm0BzKkt8wKg== X-Received: by 10.98.74.93 with SMTP id x90mr14500036pfa.80.1455845180315; Thu, 18 Feb 2016 17:26:20 -0800 (PST) Received: from localhost ([106.247.248.2]) by smtp.gmail.com with ESMTPSA id fn3sm13115286pab.20.2016.02.18.17.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Feb 2016 17:26:18 -0800 (PST) From: YongHyeon PYUN X-Google-Original-From: "YongHyeon PYUN" Received: by localhost (sSMTP sendmail emulation); Fri, 19 Feb 2016 10:26:12 +0900 Date: Fri, 19 Feb 2016 10:26:12 +0900 To: Tino Engel Cc: "freebsd-net@freebsd.org" Subject: Re: Support for Killer E2400 Ethernet Message-ID: <20160219012612.GA1267@michelle.fasterthan.co.kr> Reply-To: pyunyh@gmail.com References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 01:26:21 -0000 --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 18, 2016 at 04:17:30PM +0100, Tino Engel wrote: > > > > Hello all, > I am trying to establish support for the Killer E2400 ethernet adapter. > I am following the approach that works for the linux driver, which is basically:- Add the E2400 device ID- Copy all device related stuff from the E2200 > What works:- DHCP- Ping any host in the internet > What does not work:- Downloading stuff using "fetch"- Setup pkg- Therefore cannot browse since I even cannot install pkg in order to obtain a browser > The error message I continously receive is "alc0: DMA write error". > I have so far played with all the loader tunables and sysctls supported by the alc driver, but no improvement of the situation. > Any ideas how to proceed? Due to lack of access to Killer E2200 controller, alc(4) was not fully tested for the controller. One user also reported that alc(4) shows DMA errors as you saw. To narrow down the issue, could you please add the following to /boot/loader.conf file and test it again if your system has more than 4GB memory? hw.physmem="3G" The tunable above will limit system memory to 3GB. Also show me the output of "sysctl dev.alc.0.stats" before and after running "ping -s 1472 remote_ip_addr" command. (Note, the ping command with -s option requires root privilege and you have to reboot to take changes effect). If limiting system memory have no effect, could you try attached patch and let me know whether it makes any difference? The patch will print "alc0: DMA CFG : 0xXXXXXXXX". Let me know the value of XXXXXXXX. Thanks. --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="alc.e2200.diff4" Index: sys/dev/alc/if_alc.c =================================================================== --- sys/dev/alc/if_alc.c (revision 295117) +++ sys/dev/alc/if_alc.c (working copy) @@ -4184,16 +4184,22 @@ alc_init_locked(struct alc_softc *sc) reg = (RXQ_CFG_RD_BURST_DEFAULT << RXQ_CFG_RD_BURST_SHIFT) & RXQ_CFG_RD_BURST_MASK; reg |= RXQ_CFG_RSS_MODE_DIS; - if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) != 0) + if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) != 0) { reg |= (RXQ_CFG_816X_IDT_TBL_SIZE_DEFAULT << RXQ_CFG_816X_IDT_TBL_SIZE_SHIFT) & RXQ_CFG_816X_IDT_TBL_SIZE_MASK; - if ((sc->alc_flags & ALC_FLAG_FASTETHER) == 0 && - sc->alc_ident->deviceid != DEVICEID_ATHEROS_AR8151_V2) - reg |= RXQ_CFG_ASPM_THROUGHPUT_LIMIT_1M; + if ((sc->alc_flags & ALC_FLAG_FASTETHER) == 0) + reg |= RXQ_CFG_ASPM_THROUGHPUT_LIMIT_100M; + } else { + if ((sc->alc_flags & ALC_FLAG_FASTETHER) == 0 && + sc->alc_ident->deviceid != DEVICEID_ATHEROS_AR8151_V2) + reg |= RXQ_CFG_ASPM_THROUGHPUT_LIMIT_100M; + } CSR_WRITE_4(sc, ALC_RXQ_CFG, reg); /* Configure DMA parameters. */ + reg = CSR_READ_4(sc, ALC_DMA_CFG); + device_printf(sc->alc_dev, "DMA CFG : 0x%08x\n", reg); reg = DMA_CFG_OUT_ORDER | DMA_CFG_RD_REQ_PRI; reg |= sc->alc_rcb; if ((sc->alc_flags & ALC_FLAG_CMB_BUG) == 0) @@ -4200,8 +4206,10 @@ alc_init_locked(struct alc_softc *sc) reg |= DMA_CFG_CMB_ENB; if ((sc->alc_flags & ALC_FLAG_SMB_BUG) == 0) reg |= DMA_CFG_SMB_ENB; - else - reg |= DMA_CFG_SMB_DIS; + else { + if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) == 0) + reg |= DMA_CFG_SMB_DIS; + } reg |= (sc->alc_dma_rd_burst & DMA_CFG_RD_BURST_MASK) << DMA_CFG_RD_BURST_SHIFT; reg |= (sc->alc_dma_wr_burst & DMA_CFG_WR_BURST_MASK) << @@ -4293,16 +4301,16 @@ alc_stop(struct alc_softc *sc) /* Disable interrupts. */ CSR_WRITE_4(sc, ALC_INTR_MASK, 0); CSR_WRITE_4(sc, ALC_INTR_STATUS, 0xFFFFFFFF); - /* Disable DMA. */ - reg = CSR_READ_4(sc, ALC_DMA_CFG); - reg &= ~(DMA_CFG_CMB_ENB | DMA_CFG_SMB_ENB); - reg |= DMA_CFG_SMB_DIS; - CSR_WRITE_4(sc, ALC_DMA_CFG, reg); - DELAY(1000); + if ((sc->alc_flags & (ALC_FLAG_CMB_BUG | ALC_FLAG_SMB_BUG)) == 0) { + /* Disable DMA. */ + reg = CSR_READ_4(sc, ALC_DMA_CFG); + reg &= ~(DMA_CFG_CMB_ENB | DMA_CFG_SMB_ENB); + reg |= DMA_CFG_SMB_DIS; + CSR_WRITE_4(sc, ALC_DMA_CFG, reg); + DELAY(1000); + } /* Stop Rx/Tx MACs. */ alc_stop_mac(sc); - /* Disable interrupts which might be touched in taskq handler. */ - CSR_WRITE_4(sc, ALC_INTR_STATUS, 0xFFFFFFFF); /* Disable L0s/L1s */ alc_aspm(sc, 0, IFM_UNKNOWN); /* Reclaim Rx buffers that have been processed. */ --3MwIy2ne0vdjdPXF-- From owner-freebsd-net@freebsd.org Fri Feb 19 01:47:19 2016 Return-Path: Delivered-To: freebsd-net@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 2CBFCAAC05F for ; Fri, 19 Feb 2016 01:47:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D5C997B for ; Fri, 19 Feb 2016 01:47:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1J1lIL7029409 for ; Fri, 19 Feb 2016 01:47:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206876] ifconfig(8): Inconsistent behavior when creating and giving custom name to interface at the same time Date: Fri, 19 Feb 2016 01:47:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: easy, needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marieheleneka@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 01:47:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206876 --- Comment #1 from Marie Helene Kvello-Aune --- I've made a patch to fix this problem. I'll submit it once I find a way of making ifconfig echo the name of the interface AFTER the 'name' command, instead of the name of the interface during 'create' command. Example: "ifconfig tap create name blah" would echo "tap0" but should echo "blah". I found the same bug appeared with the 'description' command as well (ifcon= fig tap create description "some description"). The bug is that setifdescr(...) and setifname(...) doesn't copy the 'global namespace' member 'name' onto the 'ifr.ifr_name' member before doing operations. This made me realize a workaround exist. If you manage to run a command which initializes 'ifr.ifr_name' properly before the 'name' or 'description' commands, these would work as expected. Example: 'ifconfig tap create mtu 9000 name mysupertap' I'll keep digging into the source to figure out how to echo the proper interface name now. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Feb 19 01:56:26 2016 Return-Path: Delivered-To: freebsd-net@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 9C2E3AAC4E3 for ; Fri, 19 Feb 2016 01:56:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D6B3F1C for ; Fri, 19 Feb 2016 01:56:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1J1uQAY069317 for ; Fri, 19 Feb 2016 01:56:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207319] ixv driver retries xmit indefinitely Date: Fri, 19 Feb 2016 01:56:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: IntelNetworking, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 01:56:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207319 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |IntelNetworking, patch Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Feb 19 03:07:34 2016 Return-Path: Delivered-To: freebsd-net@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 B104DAAC3FB for ; Fri, 19 Feb 2016 03:07:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1528173A for ; Fri, 19 Feb 2016 03:07:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1J37YKX008299 for ; Fri, 19 Feb 2016 03:07:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206876] ifconfig(8): Inconsistent behavior when creating and giving custom name to interface at the same time Date: Fri, 19 Feb 2016 03:07:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: easy, needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marieheleneka@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 03:07:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206876 --- Comment #2 from Marie Helene Kvello-Aune --- I've submitted a patch, review D5341 This patch solves the bugs described in this PR. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Feb 19 04:49:15 2016 Return-Path: Delivered-To: freebsd-net@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 6B3BFAACFB4 for ; Fri, 19 Feb 2016 04:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5BBD61006 for ; Fri, 19 Feb 2016 04:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1J4nEXj082792 for ; Fri, 19 Feb 2016 04:49:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207262] NETMAP with kevent don't process incoming packets in different thread Date: Fri, 19 Feb 2016 04:49:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 04:49:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207262 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Feb 19 04:49:31 2016 Return-Path: Delivered-To: freebsd-net@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 564F3AAD02F for ; Fri, 19 Feb 2016 04:49:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4708710FD for ; Fri, 19 Feb 2016 04:49:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1J4nULo083126 for ; Fri, 19 Feb 2016 04:49:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207261] NETMAP don't do TX sync with kqueue Date: Fri, 19 Feb 2016 04:49:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 04:49:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207261 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Feb 19 05:03:46 2016 Return-Path: Delivered-To: freebsd-net@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 4B13DAAD862 for ; Fri, 19 Feb 2016 05:03:46 +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 34D191E47 for ; Fri, 19 Feb 2016 05:03:46 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id 326003321E1E; Fri, 19 Feb 2016 05:03:46 +0000 (UTC) Date: Fri, 19 Feb 2016 05:03:46 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5316+325+0f7d5028d71a5ee9@reviews.freebsd.org Subject: [Differential] [Closed] D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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: D5316: hyperv/hn: Add option to bind TX taskqueues to the specified CPU 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 In-Reply-To: References: Thread-Index: OTQ1NDdkYWNjNjEyZTViMjU4NDE4NzRjMDA2IFbGojI= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_b2abbb7738470d41a9901bac2d9795fc" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 05:03:46 -0000 --b1_b2abbb7738470d41a9901bac2d9795fc Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295792: hyperv/hn: Add option to bind TX taskqueues to the specified CPU (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5316?vs=13407&id=13480#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5316?vs=13407&id=13480 REVISION DETAIL https://reviews.freebsd.org/D5316 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -269,6 +269,10 @@ SYSCTL_INT(_hw_hn, OID_AUTO, use_txdesc_bufring, CTLFLAG_RD, &hn_use_txdesc_bufring, 0, "Use buf_ring for TX descriptors"); +static int hn_bind_tx_taskq = -1; +SYSCTL_INT(_hw_hn, OID_AUTO, bind_tx_taskq, CTLFLAG_RDTUN, + &hn_bind_tx_taskq, 0, "Bind TX taskqueue to the specified cpu"); + /* * Forward declarations */ @@ -383,8 +387,20 @@ if (hn_tx_taskq == NULL) { sc->hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &sc->hn_tx_taskq); - taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, "%s tx", - device_get_nameunit(dev)); + if (hn_bind_tx_taskq >= 0) { + int cpu = hn_bind_tx_taskq; + cpuset_t cpu_set; + + if (cpu > mp_ncpus - 1) + cpu = mp_ncpus - 1; + CPU_SETOF(cpu, &cpu_set); + taskqueue_start_threads_cpuset(&sc->hn_tx_taskq, 1, + PI_NET, &cpu_set, "%s tx", + device_get_nameunit(dev)); + } else { + taskqueue_start_threads(&sc->hn_tx_taskq, 1, PI_NET, + "%s tx", device_get_nameunit(dev)); + } } else { sc->hn_tx_taskq = hn_tx_taskq; } @@ -2409,7 +2425,18 @@ hn_tx_taskq = taskqueue_create("hn_tx", M_WAITOK, taskqueue_thread_enqueue, &hn_tx_taskq); - taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); + if (hn_bind_tx_taskq >= 0) { + int cpu = hn_bind_tx_taskq; + cpuset_t cpu_set; + + if (cpu > mp_ncpus - 1) + cpu = mp_ncpus - 1; + CPU_SETOF(cpu, &cpu_set); + taskqueue_start_threads_cpuset(&hn_tx_taskq, 1, PI_NET, + &cpu_set, "hn tx"); + } else { + taskqueue_start_threads(&hn_tx_taskq, 1, PI_NET, "hn tx"); + } } SYSINIT(hn_txtq_create, SI_SUB_DRIVERS, SI_ORDER_FIRST, hn_tx_taskq_create, NULL); EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_b2abbb7738470d41a9901bac2d9795fc Content-Type: text/x-patch; charset=utf-8; name="D5316.13480.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5316.13480.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTI2OSw2ICsyNjksMTAgQEAKIFNZU0NUTF9JTlQoX2h3X2huLCBPSURfQVVUTywgdXNl X3R4ZGVzY19idWZyaW5nLCBDVExGTEFHX1JELAogICAgICZobl91c2VfdHhkZXNjX2J1ZnJpbmcs IDAsICJVc2UgYnVmX3JpbmcgZm9yIFRYIGRlc2NyaXB0b3JzIik7CiAKK3N0YXRpYyBpbnQgaG5f YmluZF90eF90YXNrcSA9IC0xOworU1lTQ1RMX0lOVChfaHdfaG4sIE9JRF9BVVRPLCBiaW5kX3R4 X3Rhc2txLCBDVExGTEFHX1JEVFVOLAorICAgICZobl9iaW5kX3R4X3Rhc2txLCAwLCAiQmluZCBU WCB0YXNrcXVldWUgdG8gdGhlIHNwZWNpZmllZCBjcHUiKTsKKwogLyoKICAqIEZvcndhcmQgZGVj bGFyYXRpb25zCiAgKi8KQEAgLTM4Myw4ICszODcsMjAgQEAKIAlpZiAoaG5fdHhfdGFza3EgPT0g TlVMTCkgewogCQlzYy0+aG5fdHhfdGFza3EgPSB0YXNrcXVldWVfY3JlYXRlKCJobl90eCIsIE1f V0FJVE9LLAogCQkgICAgdGFza3F1ZXV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EgPj0gMCkgeworCQlpbnQgY3B1ID0gaG5f YmluZF90eF90YXNrcTsKKwkJY3B1c2V0X3QgY3B1X3NldDsKKworCQlpZiAoY3B1ID4gbXBfbmNw dXMgLSAxKQorCQkJY3B1ID0gbXBfbmNwdXMgLSAxOworCQlDUFVfU0VUT0YoY3B1LCAmY3B1X3Nl dCk7CisJCXRhc2txdWV1ZV9zdGFydF90aHJlYWRzX2NwdXNldCgmaG5fdHhfdGFza3EsIDEsIFBJ X05FVCwKKwkJICAgICZjcHVfc2V0LCAiaG4gdHgiKTsKKwl9IGVsc2UgeworCQl0YXNrcXVldWVf c3RhcnRfdGhyZWFkcygmaG5fdHhfdGFza3EsIDEsIFBJX05FVCwgImhuIHR4Iik7CisJfQogfQog U1lTSU5JVChobl90eHRxX2NyZWF0ZSwgU0lfU1VCX0RSSVZFUlMsIFNJX09SREVSX0ZJUlNULAog ICAgIGhuX3R4X3Rhc2txX2NyZWF0ZSwgTlVMTCk7Cgo= --b1_b2abbb7738470d41a9901bac2d9795fc-- From owner-freebsd-net@freebsd.org Fri Feb 19 05:09:04 2016 Return-Path: Delivered-To: freebsd-net@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 0CAE6AADB22 for ; Fri, 19 Feb 2016 05:09:04 +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 E230F1129 for ; Fri, 19 Feb 2016 05:09:03 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id DCF013321029; Fri, 19 Feb 2016 05:09:03 +0000 (UTC) Date: Fri, 19 Feb 2016 05:09:03 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5317+325+ef6a50613327bd89@reviews.freebsd.org Subject: [Differential] [Closed] D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) Message-ID: <70fbca5a4e492db6669e541d5f068055@localhost.localdomain> 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: D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) 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 In-Reply-To: References: Thread-Index: YzJmMDY1MGU4OTBiM2Y1YjNhNTNmODY2MWVjIFbGo28= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_70fbca5a4e492db6669e541d5f068055" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 05:09:04 -0000 --b1_70fbca5a4e492db6669e541d5f068055 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295793: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5317?vs=13408&id=13481#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5317?vs=13408&id=13481 REVISION DETAIL https://reviews.freebsd.org/D5317 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -176,7 +176,7 @@ * later. UDP checksum offloading doesn't work on earlier * Windows releases. */ -#define HN_CSUM_ASSIST_WIN8 (CSUM_TCP) +#define HN_CSUM_ASSIST_WIN8 (CSUM_IP | CSUM_TCP) #define HN_CSUM_ASSIST (CSUM_IP | CSUM_UDP | CSUM_TCP) #define HN_LRO_LENLIM_DEF (25 * ETHERMTU) EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_70fbca5a4e492db6669e541d5f068055 Content-Type: text/x-patch; charset=utf-8; name="D5317.13481.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5317.13481.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTE3Niw3ICsxNzYsNyBAQAogICogbGF0ZXIuICBVRFAgY2hlY2tzdW0gb2ZmbG9hZGlu ZyBkb2Vzbid0IHdvcmsgb24gZWFybGllcgogICogV2luZG93cyByZWxlYXNlcy4KICAqLwotI2Rl ZmluZSBITl9DU1VNX0FTU0lTVF9XSU44CShDU1VNX1RDUCkKKyNkZWZpbmUgSE5fQ1NVTV9BU1NJ U1RfV0lOOAkoQ1NVTV9JUCB8IENTVU1fVENQKQogI2RlZmluZSBITl9DU1VNX0FTU0lTVAkJKENT VU1fSVAgfCBDU1VNX1VEUCB8IENTVU1fVENQKQogCiAjZGVmaW5lIEhOX0xST19MRU5MSU1fREVG CQkoMjUgKiBFVEhFUk1UVSkKCg== --b1_70fbca5a4e492db6669e541d5f068055-- From owner-freebsd-net@freebsd.org Fri Feb 19 05:14:26 2016 Return-Path: Delivered-To: freebsd-net@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 EFA53AADF46 for ; Fri, 19 Feb 2016 05:14:25 +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 A7D58194C for ; Fri, 19 Feb 2016 05:14:25 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id A5E6033212EA; Fri, 19 Feb 2016 05:14:25 +0000 (UTC) Date: Fri, 19 Feb 2016 05:14:25 +0000 To: freebsd-net@freebsd.org From: Phabricator Reply-to: D5318+325+0a68287b206dc9cb@reviews.freebsd.org Subject: [Differential] [Closed] D5318: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed 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: D5318: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed 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 In-Reply-To: References: Thread-Index: YTIzNmI4MjNlNGRmYjFlZDMyOTIyMTE1NThiIFbGpLE= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_b762de7a24204f9fe74d8a5b22242e08" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 05:14:26 -0000 --b1_b762de7a24204f9fe74d8a5b22242e08 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: 8bit This revision was automatically updated to reflect the committed changes. Closed by commit rS295794: hyperv/hn: Free the txdesc buf_ring when the TX ring is destroyed (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5318?vs=13409&id=13482#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D5318?vs=13409&id=13482 REVISION DETAIL https://reviews.freebsd.org/D5318 AFFECTED FILES head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c CHANGE DETAILS diff --git a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c --- a/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c +++ b/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -2276,6 +2276,11 @@ bus_dma_tag_destroy(txr->hn_tx_data_dtag); if (txr->hn_tx_rndis_dtag != NULL) bus_dma_tag_destroy(txr->hn_tx_rndis_dtag); + +#ifdef HN_USE_TXDESC_BUFRING + buf_ring_free(txr->hn_txdesc_br, M_NETVSC); +#endif + free(txr->hn_txdesc, M_NETVSC); txr->hn_txdesc = NULL; EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com, adrian, network Cc: freebsd-virtualization-list, freebsd-net-list --b1_b762de7a24204f9fe74d8a5b22242e08 Content-Type: text/x-patch; charset=utf-8; name="D5318.13482.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D5318.13482.patch" ZGlmZiAtLWdpdCBhL2hlYWQvc3lzL2Rldi9oeXBlcnYvbmV0dnNjL2h2X25ldHZzY19kcnZfZnJl ZWJzZC5jIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKLS0tIGEvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKKysrIGIvaGVhZC9zeXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNk LmMKQEAgLTIyNzYsNiArMjI3NiwxMSBAQAogCQlidXNfZG1hX3RhZ19kZXN0cm95KHR4ci0+aG5f dHhfZGF0YV9kdGFnKTsKIAlpZiAodHhyLT5obl90eF9ybmRpc19kdGFnICE9IE5VTEwpCiAJCWJ1 c19kbWFfdGFnX2Rlc3Ryb3kodHhyLT5obl90eF9ybmRpc19kdGFnKTsKKworI2lmZGVmIEhOX1VT RV9UWERFU0NfQlVGUklORworCWJ1Zl9yaW5nX2ZyZWUodHhyLT5obl90eGRlc2NfYnIsIE1fTkVU VlNDKTsKKyNlbmRpZgorCiAJZnJlZSh0eHItPmhuX3R4ZGVzYywgTV9ORVRWU0MpOwogCXR4ci0+ aG5fdHhkZXNjID0gTlVMTDsKIAoK --b1_b762de7a24204f9fe74d8a5b22242e08-- From owner-freebsd-net@freebsd.org Fri Feb 19 05:35:27 2016 Return-Path: Delivered-To: freebsd-net@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 7EF01AADA7A for ; Fri, 19 Feb 2016 05:35:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6DA5C14C1 for ; Fri, 19 Feb 2016 05:35:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1J5ZRUA018019 for ; Fri, 19 Feb 2016 05:35:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206876] ifconfig(8): Inconsistent behavior when creating and giving custom name to interface at the same time Date: Fri, 19 Feb 2016 05:35:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: easy, needs-qa, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? X-Bugzilla-Changed-Fields: keywords bug_status bug_file_loc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 05:35:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206876 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-patch |patch Status|New |Open URL| |https://reviews.freebsd.org | |/D5341 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Feb 19 18:54:15 2016 Return-Path: Delivered-To: freebsd-net@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 27F09AADA88 for ; Fri, 19 Feb 2016 18:54:15 +0000 (UTC) (envelope-from pcalkins@aimdigitalpros.com) Received: from mail-pf0-x22b.google.com (mail-pf0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F11621497 for ; Fri, 19 Feb 2016 18:54:14 +0000 (UTC) (envelope-from pcalkins@aimdigitalpros.com) Received: by mail-pf0-x22b.google.com with SMTP id c10so57200239pfc.2 for ; Fri, 19 Feb 2016 10:54:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aimdigitalpros-com.20150623.gappssmtp.com; s=20150623; h=to:subject:from:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=FrRTlJYPiQI/e9Col0GqvKprdZkbefPd5h94FbaOY4I=; b=RxzEMwtm29eRwxpjn3efbZ44+QfO2I6TSjpXcEtkdNInH9zAeM7D9vITwZm+ybYyKB 427I2xtSsSqTI3/Me5LNUONFDGKyPzpcQErS3npQeLG2xQEy6mtHHHl4l371aLWvXqRU 9v3LbAhGGDV65jQ5KvJzLOWBR3rPNSmYFExDnJzYN0ALa3fVu7boF2iBICENm96mlTqr i87nJn/cbayNhXjdntrnhFT0xNkIkSWv2QLBWPGTpI6/5AyYJQ2I8t+fzqRrjF5MM/nR AyDo9OSwybz6bA4Uw7KNidgqX6aeCFSpMsTpSLkw/p9LqVyMlU/YU5qZJsIYXldEGY/c Ln9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=FrRTlJYPiQI/e9Col0GqvKprdZkbefPd5h94FbaOY4I=; b=O2V9fj4IkHMlXb+na7l9QlTwZl4rwTV2IkHbZOAc4ZgVRlAUtYGKDfxsQpKXxWkAAb TqylAzLaa9n8uWENNJXU5GchfOON6l7Ud+bwRFcUP7jQ0ToD5MliZdL1jhSBzYlO5D+j 6BnNhavP/1Ij99h3AUwtA0259InN7AIeEJ+TBhAHeUOkj1R8qKzSJxZTC7mCXbWNyMew jCB1OBSiY/pO1EEGyfgOifHvIjj5sxuReb/mPPphyfjpjHje1Vb245SbuPexNTBYoV9N 8v3ALfae6Vy9N8ODEjGv1ilFyjA4gyLlnVc4GjHZqd/aoJ0EttoVkD96d+TZW328k7Gj 1pXw== X-Gm-Message-State: AG10YOS3+ko7o1btJpChIdLXPrFlS61yheVdzO1Ynf5/auxpXN2y11J/tmrkelVCfjxx2w== X-Received: by 10.98.69.155 with SMTP id n27mr20455416pfi.68.1455908054444; Fri, 19 Feb 2016 10:54:14 -0800 (PST) Received: from [127.0.0.1] ([103.6.157.159]) by smtp.gmail.com with ESMTPSA id ss5sm19625836pab.15.2016.02.19.10.54.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 10:54:13 -0800 (PST) To: freebsd-net@freebsd.org Subject: Avaya Users List From: Phoebe Calkins Message-ID: <56C76452.30604@aimdigitalpros.com> Date: Fri, 19 Feb 2016 13:52:02 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 160219-0, 02/19/2016), Outbound message X-Antivirus-Status: Clean X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 18:54:15 -0000 Hi, Would you be interested in reaching out “Avaya Users List” with opt-in verified contact information from USA? We also have Avaya Aura Users, Avaya Network Hardware, Avaya CentreVu Supervisor, Avaya Intuity, Avaya Octel, Avaya PBX, Avaya IP Agent, Avaya Unified Communications, and many more..... We provide 30+ Data fields on each record which contains: Company Name ,Contact First Name, Last Name, Title, HQ Phone, Direct No, Email, Address1, Address2, City, State, Zip, Country, Industry, Revenue, Fiscal Year End, Employees, IT Budget, IT Employees, Website, Technology, Company HQ Address1, Company HQ Address2, Company HQ City, Company HQ State, Company HQ Zip, Company HQ Country and LinkedIn link Please let me know your targeted criteria, so that i can help you out to driver your sales effort in the right direction. Thanks & Regards, Phoebe Calkins --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From owner-freebsd-net@freebsd.org Fri Feb 19 19:24:39 2016 Return-Path: Delivered-To: freebsd-net@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 515D0AAE846 for ; Fri, 19 Feb 2016 19:24:39 +0000 (UTC) (envelope-from tino.engel@hotmail.com) Received: from DUB004-OMC2S30.hotmail.com (dub004-omc2s30.hotmail.com [157.55.1.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D06A71BE1 for ; Fri, 19 Feb 2016 19:24:38 +0000 (UTC) (envelope-from tino.engel@hotmail.com) Received: from DUB109-W99 ([157.55.1.136]) by DUB004-OMC2S30.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 19 Feb 2016 11:23:28 -0800 X-TMN: [etwjzCG+wYAq76vho8bgMCPKkBOo7IfX] X-Originating-Email: [tino.engel@hotmail.com] Message-ID: From: Tino Engel To: "pyunyh@gmail.com" CC: "freebsd-net@freebsd.org" Subject: RE: Support for Killer E2400 Ethernet Date: Fri, 19 Feb 2016 20:23:28 +0100 Importance: Normal In-Reply-To: <20160219012612.GA1267@michelle.fasterthan.co.kr> References: , <20160219012612.GA1267@michelle.fasterthan.co.kr> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Feb 2016 19:23:28.0779 (UTC) FILETIME=[030455B0:01D16B4B] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 19:24:39 -0000 Thanks very much for the quick reply. So let me shed some words on your input: First: Limiting the memory size did not help at all=2C nothing changed. Unfortunetly I cannot post the whole results of the sysctl=2C since I canno= t get this box into the net=2C and it is quite too much to type it by hand. Is there any special value you are interested in? Then I applied your patch. The requested output is: alc0: DMA CFG : 0x0c347c54 The bad thing: The error still persists. :( It always writes "DMA write error" now followed by "DMA CFG : ..." One more thing: The ping -s command results in the same error as trying to fetch something = from the internet. Do you have any further ideas? Thanks! From: pyunyh@gmail.com Date: Fri=2C 19 Feb 2016 10:26:12 +0900 To: tino.engel@hotmail.com Subject: Re: Support for Killer E2400 Ethernet CC: freebsd-net@freebsd.org On Thu=2C Feb 18=2C 2016 at 04:17:30PM +0100=2C Tino Engel wrote: >=20 >=20 >=20 > Hello all=2C > I am trying to establish support for the Killer E2400 ethernet adapter. > I am following the approach that works for the linux driver=2C which is b= asically:- Add the E2400 device ID- Copy all device related stuff from the = E2200 > What works:- DHCP- Ping any host in the internet > What does not work:- Downloading stuff using "fetch"- Setup pkg- Therefor= e cannot browse since I even cannot install pkg in order to obtain a browse= r > The error message I continously receive is "alc0: DMA write error". > I have so far played with all the loader tunables and sysctls supported b= y the alc driver=2C but no improvement of the situation. > Any ideas how to proceed? =20 Due to lack of access to Killer E2200 controller=2C alc(4) was not fully tested for the controller. One user also reported that alc(4) shows DMA errors as you saw. To narrow down the issue=2C could you please add the following to /boot/loader.conf file and test it again if your system has more than 4GB memory? =20 hw.physmem=3D"3G" =20 The tunable above will limit system memory to 3GB. Also show me the output of "sysctl dev.alc.0.stats" before and after running "ping -s 1472 remote_ip_addr" command. (Note=2C the ping command with -s option requires root privilege and you have to reboot to take changes effect). =20 If limiting system memory have no effect=2C could you try attached patch and let me know whether it makes any difference? The patch will print "alc0: DMA CFG : 0xXXXXXXXX". Let me know the value of XXXXXXXX. =20 Thanks. _______________________________________________=0A= freebsd-net@freebsd.org mailing list=0A= https://lists.freebsd.org/mailman/listinfo/freebsd-net=0A= To unsubscribe=2C send any mail to "freebsd-net-unsubscribe@freebsd.org" = = From owner-freebsd-net@freebsd.org Sat Feb 20 00:49:59 2016 Return-Path: Delivered-To: freebsd-net@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 93EAEAAEBB4 for ; Sat, 20 Feb 2016 00:49:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 843C51B00 for ; Sat, 20 Feb 2016 00:49:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1K0nxCR062766 for ; Sat, 20 Feb 2016 00:49:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 128954] ifconfig(8) deletes valid routes Date: Sat, 20 Feb 2016 00:49:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marieheleneka@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 00:49:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D128954 --- Comment #2 from Marie Helene Kvello-Aune --- on 11-current (r295762), steps to reproduce: # ifconfig igb1 inet 10.0.1.1/24 # route add -net 10.0.2.0/24 10.0.1.2 # netstat -rn (...) 10.0.2.0/24 10.0.1.2 UGS igb1 (...) # ifconfig igb1 inet 10.0.1.13/24 # netstat -rn -- the 10.0.2.0/24 route is gone -- Reading about possible causes in the linked thread, I've checked dmesg and = the interface isn't down/up'ed when changing IP. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sat Feb 20 03:42:03 2016 Return-Path: Delivered-To: freebsd-net@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 CB348AAED9D for ; Sat, 20 Feb 2016 03:42:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1F00115F for ; Sat, 20 Feb 2016 03:42:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1K3g22I000380 for ; Sat, 20 Feb 2016 03:42:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 196944] [bge] [ipmi] regression IPMI access disabled when bge driver is loaded Date: Sat, 20 Feb 2016 03:42:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: andrew.daugherity@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 03:42:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196944 --- Comment #2 from Andrew Daugherity --- I've found the commit that breaks it: base r241438 (which was MFC into stab= le/9 as 243546). Reading the commit history between 9.1 and 9.2, I saw that r24= 8226 (MFC onto 9-stable as r248858) claims to fix IPMI on a Sun X2200 that broke with 241838, so my first test was to see if it was working just before that. I built a 9.2 kernel with sys/dev/bge/if_bge.c rolled back to the commit be= fore the "bad" one, 243541 (MFC from 241436), and IPMI works! (I did not touch = any other files.) Also works for a stable/9 kernel (identified as 9.3-STABLE #1 r243541:295788) with if_bge.c at 243541. If I update if_bge.c to the commit in question (241438 aka 243546), IPMI is broken once more. I also tried r248858 (248226) which supposedly fixed IPM= I on those Sun servers but it did not help here. I have not tried any other commits, as it appears that for my hardware, it works on <=3D241436 and is = broken for >=3D241438. I also fixed my 10.2 kernel in the same way by rolling back if_bge.c to r241436. I had to merge r242426 and r242625 to get it to build; after doin= g so IPMI works in 10.2! Obviously rolling all the way back like this isn't the solution for everyon= e, as there have been many other commits since then, but at least I found the breakage point. I don't know the bge driver or kernel well enough to prope= rly fix it, but hopefully this is good information for someone who does. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sat Feb 20 10:44:36 2016 Return-Path: Delivered-To: freebsd-net@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 4DB4CAAF5A5 for ; Sat, 20 Feb 2016 10:44:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3EEB736B for ; Sat, 20 Feb 2016 10:44:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1KAiZsa016508 for ; Sat, 20 Feb 2016 10:44:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 207319] ixv driver retries xmit indefinitely Date: Sat, 20 Feb 2016 10:44:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: IntelNetworking, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cperciva@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 10:44:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207319 Colin Percival changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cperciva@FreeBSD.org --- Comment #1 from Colin Percival --- Do you know what sort of packets are causing this? We shouldn't be running into problems with TCP -- the TSO code is theoretically aware of the device= 's limitations. If it's UDP packets which are getting stuck then yes, the ans= wer is to drop them. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sat Feb 20 11:51:10 2016 Return-Path: Delivered-To: freebsd-net@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 7CB1EAAF132 for ; Sat, 20 Feb 2016 11:51:10 +0000 (UTC) (envelope-from lolo@troll.free.org) Received: from troll.free.org (troll6.free.org [IPv6:2a01:e0d:1:58:58bf:f921:0:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E407811 for ; Sat, 20 Feb 2016 11:51:10 +0000 (UTC) (envelope-from lolo@troll.free.org) Received: by troll.free.org (Postfix, from userid 500) id AC4BC1FD701; Sat, 20 Feb 2016 12:50:58 +0100 (CET) Date: Sat, 20 Feb 2016 12:50:58 +0100 From: Laurent Frigault To: freebsd-net@FreeBSD.org Cc: andrew.daugherity@gmail.com Subject: Re: [Bug 196944] [bge] [ipmi] regression IPMI access disabled when bge driver is loaded Message-ID: <20160220115058.GA46655@troll.free.org> Reply-To: freebsd-net@FreeBSD.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: X-Powered-By: UUCP User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 11:51:10 -0000 On Sat, Feb 20, 2016 at 03:42:02AM +0000, bugzilla-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196944 > > --- Comment #2 from Andrew Daugherity --- > I've found the commit that breaks it: base r241438 (which was MFC into stable/9 > as 243546). Reading the commit history between 9.1 and 9.2, I saw that r248226 > (MFC onto 9-stable as r248858) claims to fix IPMI on a Sun X2200 that broke > with 241838, so my first test was to see if it was working just before that. > > I built a 9.2 kernel with sys/dev/bge/if_bge.c rolled back to the commit before > the "bad" one, 243541 (MFC from 241436), and IPMI works! (I did not touch any > other files.) Also works for a stable/9 kernel (identified as 9.3-STABLE #1 > r243541:295788) with if_bge.c at 243541. > > If I update if_bge.c to the commit in question (241438 aka 243546), IPMI is > broken once more. I also tried r248858 (248226) which supposedly fixed IPMI on > those Sun servers but it did not help here. I have not tried any other > commits, as it appears that for my hardware, it works on <=241436 and is broken > for >=241438. > > I also fixed my 10.2 kernel in the same way by rolling back if_bge.c to > r241436. I had to merge r242426 and r242625 to get it to build; after doing so > IPMI works in 10.2! > > Obviously rolling all the way back like this isn't the solution for everyone, > as there have been many other commits since then, but at least I found the > breakage point. I don't know the bge driver or kernel well enough to properly > fix it, but hopefully this is good information for someone who does. Is there any chance that a patch for this bug will be available before 10.3 ? -- Laurent Frigault | Free.org From owner-freebsd-net@freebsd.org Sat Feb 20 19:56:03 2016 Return-Path: Delivered-To: freebsd-net@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 3B642AAECF1 for ; Sat, 20 Feb 2016 19:56:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2B6351517 for ; Sat, 20 Feb 2016 19:56:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1KJu2No080230 for ; Sat, 20 Feb 2016 19:56:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 206876] ifconfig(8): Inconsistent behavior when creating and giving custom name to interface at the same time Date: Sat, 20 Feb 2016 19:56:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: easy, needs-qa, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marieheleneka@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable10? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 19:56:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206876 --- Comment #3 from Marie Helene Kvello-Aune --- Fixed in base r295836. --=20 You are receiving this mail because: You are the assignee for the bug.=