From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 0/6] get status of Rx and Tx descriptors Date: Thu, 30 Mar 2017 15:30:04 +0200 Message-ID: <6733058.qxCdJeOGN1@xps13> References: <1488902393-7237-1-git-send-email-olivier.matz@6wind.com> <20170329083633.15626-1-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, konstantin.ananyev@intel.com, wenzhuo.lu@intel.com, helin.zhang@intel.com, jingjing.wu@intel.com, adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, bruce.richardson@intel.com, venky.venkatesan@intel.com, arybchenko@solarflare.com, qiming.yang@intel.com To: Olivier Matz , ferruh.yigit@intel.com Return-path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 3A6AA10EA4 for ; Thu, 30 Mar 2017 15:30:06 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id k6so55249796wre.2 for ; Thu, 30 Mar 2017 06:30:06 -0700 (PDT) In-Reply-To: <20170329083633.15626-1-olivier.matz@6wind.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-29 10:36, Olivier Matz: > This patchset introduces a new ethdev API: > - rte_eth_rx_descriptor_status() > - rte_eth_tx_descriptor_status() > > The Rx API is aims to replace rte_eth_rx_descriptor_done() which > does almost the same, but does not differentiate the case of a > descriptor used by the driver (not returned to the hw). > > The usage of these functions can be: > - on Rx, anticipate that the cpu is not fast enough to process > all incoming packets, and take dispositions to solve the > problem (add more cpus, drop specific packets, ...) > - on Tx, detect that the link is overloaded, and take dispositions > to solve the problem (notify flow control, drop specific > packets) > > The patchset updates ixgbe, i40e, e1000, mlx5. > The other drivers that implement the descriptor_done() API are > fm10k, sfc, virtio. They are not updated. > If the new API is accepted, the descriptor_done() can be deprecated, > and examples/l3fwd-power will be updated to. Applied, thanks Next steps: - implement it in other drivers - deprecate descriptor_done API Ferruh, please, could you check with drivers maintainers? Thanks