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 aD4KIAogI2luY2x1ZG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