From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbbIQUKl (ORCPT ); Thu, 17 Sep 2015 16:10:41 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:45337 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbbIQUKk (ORCPT ); Thu, 17 Sep 2015 16:10:40 -0400 Date: Thu, 17 Sep 2015 13:10:37 -0700 (PDT) Message-Id: <20150917.131037.2286760949122849895.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: <20150917.115218.655587837796826886.davem@davemloft.net> 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 13:10:39 -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 19:52:01 +0000 > > >> -----Original Message----- >> 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. > > Even if I had a ring of buffers, I would still need to manage the life cycle > of these buffers - selecting an unused one on the transmit path and marking > it used (atomically). Have one per TX ring entry, then the lifetime matches the lifetime of the TX entry itself and therefore you need do nothing. That's the whole idea.