From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v8 0/3] new API to free consumed buffers in Tx ring Date: Mon, 27 Mar 2017 17:20:56 +0200 Message-ID: <8984375.ZHu6gZbrb8@xps13> References: <20170315180226.5999-1-bmcfall@redhat.com> <20170324185555.18398-1-bmcfall@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: wenzhuo.lu@intel.com, olivier.matz@6wind.com, dev@dpdk.org, ferruh.yigit@intel.com To: Billy McFall Return-path: Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) by dpdk.org (Postfix) with ESMTP id 2AFE6FB14 for ; Mon, 27 Mar 2017 17:20:58 +0200 (CEST) Received: by mail-wr0-f178.google.com with SMTP id w11so47121083wrc.3 for ; Mon, 27 Mar 2017 08:20:58 -0700 (PDT) In-Reply-To: <20170324185555.18398-1-bmcfall@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-03-24 14:55, Billy McFall: > See request from 11/21/2016: > http://dpdk.org/ml/archives/dev/2016-November/050585.html > > Add a new API to free consumed buffers on TX ring. This addresses two > scenarios: > 1) Flooding a packet and want to reuse existing mbuf to avoid a packet > copy. Increment the reference count of the packet and poll new API until > reference count is decremented. > 2) Application runs out of mbufs, or resets and is preparing for > additional run, call API to free consumed packets so processing can > continue. > > API will return the number of packets freed (0-n) or error code if > feature not supported (-ENOTSUP) or input invalid (-ENODEV). > > API for e1000 igb driver and vHost driver have been implemented. Other > drivers can be implemented over time. Some drivers implement a Tx done > flush routine that should be reused where possible. e1000 igb driver > and vHost driver do not have such functions. Applied, thanks. Hope the API will be implemented in other drivers.