From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=qh7Fi4c5Ixk6riMn/AqH9UhOCVdhqJHjOcQTyM3jAow=; b=vJcKOAiN4eUNUg4y7bSKU60lhcPVsjkPgtfE8LC2ubdww49bO9g0E/mRFRmUrnPC6v SOAbjq584dV6yip5djxmvhDJAMU5AkXWEjLlCb8sV7z8udHEomYfYz+wJ5lLVZ/e7u57 AvAJEov0UGyAsxGaW8WorP8lVNRv90YIbW80DULWIjtGdB4qUHw9nnlZZYSGkTWeYMmN b7HRO42WLhFOM09im0+6f4XADsTfm8F5MOSk95Hmm9BQ+LFunflprukXWWJHkYe4CGCj RuY4V0XdObdR00vMTsio/MCvWeUIPsx5/WFLR93Vl5pdnZRq32Ija/QrOJex4o+2y6RD Ms5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=qh7Fi4c5Ixk6riMn/AqH9UhOCVdhqJHjOcQTyM3jAow=; b=bAsRao3TQIXaT7t3MlO6/0/x+WnqJZM/1tnUMNZ/DQEmI59dL9ARmvjzp1BgnpTGws fSy/OJGNhVfbHc1nAkJvXiSutkeQp5VZg93edqsl9SDoWYdIbpEkTl9YvHd2VFEMDDKY +gkSNm+8PSOu2AwHj6/ka8DjI1xuJGxE8JxxaqmJsZTXn3AojmrjBz0vLUVoMF/opzn9 A1XKJG4TSoJTUk5TiwIzfHzvSQsCx8luJvL5pqfE5iajghOgbg1YjIb0d6ABrtyzb29U pIAbUSIKNKHvRLiPtaFWJjCEE4x9IjmdefiCMpKPwI3QU+BrbttjBR/RMlafRcywfMNe krrQ== X-Gm-Message-State: AFeK/H1U1OGAIXmqNSwtDGBzmiHxq+NM4MT+CbB7lFDT1ks1o4YJ13NSs/jlkmTpzCcMBC4Q X-Received: by 10.223.147.98 with SMTP id 89mr14071926wro.99.1490628057567; Mon, 27 Mar 2017 08:20:57 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 189sm1234098wmm.31.2017.03.27.08.20.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Mar 2017 08:20:56 -0700 (PDT) From: Thomas Monjalon To: Billy McFall Cc: wenzhuo.lu@intel.com, olivier.matz@6wind.com, dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 27 Mar 2017 17:20:56 +0200 Message-ID: <8984375.ZHu6gZbrb8@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20170324185555.18398-1-bmcfall@redhat.com> References: <20170315180226.5999-1-bmcfall@redhat.com> <20170324185555.18398-1-bmcfall@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v8 0/3] new API to free consumed buffers in Tx ring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 15:20:58 -0000 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.