From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752863AbbIQSwe (ORCPT ); Thu, 17 Sep 2015 14:52:34 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:44730 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483AbbIQSwU (ORCPT ); Thu, 17 Sep 2015 14:52:20 -0400 Date: Thu, 17 Sep 2015 11:52:18 -0700 (PDT) Message-Id: <20150917.115218.655587837796826886.davem@davemloft.net> To: kys@microsoft.com Cc: David.Laight@ACULAB.COM, alexander.duyck@gmail.com, haiyangz@microsoft.com, vkuznets@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jasowang@redhat.com Subject: Re: [PATCH net-next RFC] net: increase LL_MAX_HEADER for Hyper-V From: David Miller In-Reply-To: References: <063D6719AE5E284EB5DD2968C1650D6D1CB989E9@AcuExch.aculab.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 17 Sep 2015 11:52:19 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: KY Srinivasan Date: Thu, 17 Sep 2015 15:14:05 +0000 > I think I can achieve my original goal of not having any allocation > in the send path by carefully using the memory available in the skb: Please stop flat-out ignoring David L.'s suggestion. Have a pre-cooked ring of buffers for these descriptors that you can point the chip at. No per-packet allocation is necessary at all. If you play games with SKBs you will get burned.