From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbcESGQF (ORCPT ); Thu, 19 May 2016 02:16:05 -0400 Received: from mail-bn1bon0137.outbound.protection.outlook.com ([157.56.111.137]:33568 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752272AbcESGQE convert rfc822-to-8bit (ORCPT ); Thu, 19 May 2016 02:16:04 -0400 From: Dexuan Cui To: David Miller CC: KY Srinivasan , "olaf@aepfle.de" , "gregkh@linuxfoundation.org" , "jasowang@redhat.com" , "linux-kernel@vger.kernel.org" , "joe@perches.com" , "netdev@vger.kernel.org" , "apw@canonical.com" , "devel@linuxdriverproject.org" , Haiyang Zhang Subject: RE: [PATCH v11 net-next 0/1] introduce Hyper-V VM Sockets(hv_sock) Thread-Topic: [PATCH v11 net-next 0/1] introduce Hyper-V VM Sockets(hv_sock) Thread-Index: AQHRrs19ujvjcLq4HkaGaTsnZlgKbp+8ae9ggAH/iWCAAUJNAIAACHFg Date: Thu, 19 May 2016 05:41:55 +0000 Message-ID: References: <20160515.131606.1794366975297405715.davem@davemloft.net> <20160518.211242.1326033872866679163.davem@davemloft.net> In-Reply-To: <20160518.211242.1326033872866679163.davem@davemloft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: davemloft.net; dkim=none (message not signed) header.d=none;davemloft.net; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2404:f801:9000:19::7ca] x-ms-office365-filtering-correlation-id: e3420534-3ca3-4e5d-0816-08d37fa8497d x-microsoft-exchange-diagnostics: 1;BLUPR03MB1412;5:QCN4mqbPPDF3o7B2Xq4CIlWHLD7lNVrWZAaKY/Wo2tenQh+eGiCRzLNU6mggfdJ20jB/1Qdv40tOaxFbMOF5/CevKgoyjDuV0t6J1ATl5gEajA5Prw6MoQWkyaBDTHYeAjni83LWK8eFKRejlqZm0A==;24:f5VCFY31KO1WHJ7VXp/nE+aPSh0AK2Qp+KF0F5O/1spYgEZrTmVTtGhixgfYPRhAOLeWZtEruUw8HY6L2qycnemIsFg+F43yEnImvabi7rk=;7:/hUyq10CRrpYeLMIZdWyAcaaZz6kWdTzjpPmQriB6kN3NK0tpBXsi5z61O3Qo7IJBnF4UGxHL8fYDZdfDFCTqT5r3XiT8ovvIrD7TYJO7u5yibjRni0arQsLSvizbxpquVLFk1EYz8Z3PjPjv8kmVZOBDRIrmvi6oM/cpUzYq9CIAhqQr0iickH2QXUMSXDe8s+GHY+r/ySx9CQFEQ/7uQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1412; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(61426038)(61427038);SRVR:BLUPR03MB1412;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1412; x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(122556002)(99286002)(54356999)(76176999)(93886004)(2900100001)(77096005)(106116001)(2950100001)(8676002)(86362001)(33656002)(5008740100001)(92566002)(5002640100001)(8936002)(81166006)(87936001)(10400500002)(5004730100002)(5003600100002)(74316001)(10090500001)(5005710100001)(76576001)(3280700002)(19580395003)(586003)(4326007)(4001430100002)(189998001)(110136002)(3660700001)(19580405001)(9686002)(10290500002)(2906002)(107886002)(102836003)(50986999)(6116002)(1220700001)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB1412;H:BLUPR03MB1410.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2016 05:41:55.1035 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1412 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: David Miller [mailto:davem@davemloft.net] > Sent: Thursday, May 19, 2016 12:13 > To: Dexuan Cui > Cc: KY Srinivasan ; olaf@aepfle.de; > gregkh@linuxfoundation.org; jasowang@redhat.com; linux- > kernel@vger.kernel.org; joe@perches.com; netdev@vger.kernel.org; > apw@canonical.com; devel@linuxdriverproject.org; Haiyang Zhang > > Subject: Re: [PATCH v11 net-next 0/1] introduce Hyper-V VM Sockets(hv_sock) > > > I'm travelling and very busy with the merge window. So sorry I won't be able > to think about this for some time. David, Sure, I understand. Please let me recap my last mail: 1) I'll replace my statically-allocated per-connection "send/recv bufs" with dynamically ones, so no buf is used when there is no traffic. 2) Another kind of bufs i.e., the multi-page "VMBus send/recv ringbuffer", is a must IMO due to the host side's design of the feature: every connection needs its own ringbuffer, which takes several pages (2~3 pages at least. And, 5 pages should suffice for good performance). The ringbuffer can be accessed by the host at any time, so IMO the pages can't be swappable. I understand net-next is closed now. I'm going to post the next version after 4.7-rc1 is out in several weeks. If you could give me some suggestions, I would be definitely happy to take. Thanks! -- Dexuan