From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 4DAC3DE5 for ; Fri, 27 Jan 2017 22:36:33 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP; 27 Jan 2017 13:36:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,297,1477983600"; d="scan'208";a="927466471" Received: from bricha3-mobl3.ger.corp.intel.com ([10.252.2.47]) by orsmga003.jf.intel.com with SMTP; 27 Jan 2017 13:36:30 -0800 Received: by (sSMTP sendmail emulation); Fri, 27 Jan 2017 21:36:29 +0000 Date: Fri, 27 Jan 2017 21:36:29 +0000 From: Bruce Richardson To: Sridhar Pitchai Cc: "dev@dpdk.org" Message-ID: <20170127213629.GA91748@bricha3-MOBL3.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.7.1 (2016-10-04) Subject: Re: [dpdk-dev] rte_eth_from_rings 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: Fri, 27 Jan 2017 21:36:33 -0000 On Fri, Jan 27, 2017 at 07:16:25PM +0000, Sridhar Pitchai wrote: > Hi, > > I am trying to write a data path for packets punted to CPU(slowpath) from vender silicon like broadcom. I am planing to use "rte_eth_from_rings" like model where I will be able to read and write to the ring for the packets punted from vendor chip. > > > the eth_dev abstraction provided by "rte_eth_from_rings" helps to build the dpdk data path. Can someone help me on how to read and write to the rings that is emulating the eth_dev. > > To use the rings like an ethdev just use rte_eth_rx_burst and rte_eth_tx_burst, passing in the port id of your newly created rings ethdev. To access them directly as rings, just use the ring enqueue/dequeue functions passing in the ring pointer as normal. Regards, /Bruce