From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] hyperv: Increase the buffer length for netvsc_channel_cb() Date: Tue, 05 Aug 2014 13:03:46 -0700 (PDT) Message-ID: <20140805.130346.2080401893280146356.davem@davemloft.net> References: <1406908530-22667-1-git-send-email-haiyangz@microsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: olaf@aepfle.de, netdev@vger.kernel.org, jasowang@redhat.com, driverdev-devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, haiyangz@microsoft.com To: thomas1206@gmail.com Return-path: In-Reply-To: <1406908530-22667-1-git-send-email-haiyangz@microsoft.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: driverdev-devel-bounces@linuxdriverproject.org List-Id: netdev.vger.kernel.org From: Haiyang Zhang Date: Fri, 1 Aug 2014 15:55:30 +0000 > When the buffer is too small for a packet from VMBus, a bigger buffer will be > allocated in netvsc_channel_cb() and retry reading the packet from VMBus. > Increasing this buffer size will reduce the retry overhead. > > Signed-off-by: Haiyang Zhang > Reviewed-by: Dexuan Cui I'm not applying this, sorry. I said that because the structure that contains this buffer is now larger than a page, you should allocate the CB buffer externally via another kmalloc() or via the page allocator.