From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id E33E78E5E for ; Fri, 15 Jan 2016 19:12:28 +0100 (CET) Received: by mail-pf0-f179.google.com with SMTP id n128so121213432pfn.3 for ; Fri, 15 Jan 2016 10:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=o1hBZiIF7YrEhuJSC/1WxaWWVOqR4HS6RAQ5EvXCW04=; b=X20cINjiuQECO2DgYOB12X5W65L55noXFHPe2ZENaIq26DJcePijNTX7X1DyAxq7/O XNrhQAdZhBExMsVn2U6xgGzkTV2J6ZWsWAT+R7lzQKVNr+3qzGAEX+LfbPFf4kfoiq+b +PNoqMsomwYyec6jzMC0NPlHDAeknlzTGC78yNYx4WpxzxAy3DUzvmgQWy4RvThPPC+r X2BymTBXq5kgytpPkIA8Tjel5+Gpq2d8Uwr4Wk50a/x0kBE/ArBVDaWiqFYHyd8op9kY +dTC7DqI2KWshKFIPnCbZiaSL67taF7DVqYhULB2JwN032ekxWzCUuwKWZBfuo1Mrq8D xONw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=o1hBZiIF7YrEhuJSC/1WxaWWVOqR4HS6RAQ5EvXCW04=; b=Xmc98SpPktp80QqnWdh81zGLqudgtAT96/l7h0E47/rdUtR9dqnJVLt0NEb7LSh78j Mjlr9Fd04fpyA5Rb/ADQaSUyDARyPHU0jhFLBjVEmSd9ZM7w+Mo6zExvu40qkgCuOgYu nqsmL8Oqx5lLiRCmj06mu275oEnQgp08NMYjD+/DohduhYvhHimlgz5kDaKu2kvHTEYy hhboI5ZdXXV0HgQI61YfTlO9sIdiAp7StlmikV/EZvHWFYdWOfsh/NbClmC3ppCM0ST3 r2cwUH7Vt2qGnU7JWomQ68KsoYcSSVyLLYV2TkESTG0cGaJ2OvaiCmmxpVWLefscIygF mXyQ== X-Gm-Message-State: ALoCoQlKDsSKiVg3SQk6Cz0SGh42iM9JclV0A41K+6hX37FEu3CODmGDr64uzzyWGR06LSudCDV3/aVKHfjAt0tTYOKJt6LkyA== X-Received: by 10.98.0.7 with SMTP id 7mr15891428pfa.5.1452881547020; Fri, 15 Jan 2016 10:12:27 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id n2sm16960679pfj.16.2016.01.15.10.12.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2016 10:12:26 -0800 (PST) Date: Fri, 15 Jan 2016 10:12:35 -0800 From: Stephen Hemminger To: dev@dpdk.org Message-ID: <20160115101235.0de03ce1@xeon-e3> In-Reply-To: <1452869038-9140-1-git-send-email-tomaszx.kulasek@intel.com> References: <1452869038-9140-1-git-send-email-tomaszx.kulasek@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 0/2] add support for buffered tx to ethdev X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2016 18:12:29 -0000 On Fri, 15 Jan 2016 15:43:56 +0100 Tomasz Kulasek wrote: > Many sample apps include internal buffering for single-packet-at-a-time > operation. Since this is such a common paradigm, this functionality is > better suited to being inside the core ethdev API. > The new APIs in the ethdev library are: > * rte_eth_tx_buffer - buffer up a single packet for future transmission > * rte_eth_tx_buffer_flush - flush any unsent buffered packets > * rte_eth_tx_buffer_set_err_callback - set up a callback to be called in > case transmitting a buffered burst fails. By default, we just free the > unsent packets. > > As well as these, an additional reference callback is provided, which > frees the packets (as the default callback does), as well as updating a > user-provided counter, so that the number of dropped packets can be > tracked. > > The internal buffering of packets for TX in sample apps is no longer > needed, so this patchset also replaces this code with calls to the new > rte_eth_tx_buffer* APIs in: The pipeline code also has its own implementation of this.