DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Sridhar Pitchai <sridhar.pitchai@outlook.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] rte_eth_from_rings
Date: Fri, 27 Jan 2017 21:36:29 +0000	[thread overview]
Message-ID: <20170127213629.GA91748@bricha3-MOBL3.ger.corp.intel.com> (raw)
In-Reply-To: <MWHPR01MB24292B0F163E7AEDD6986558EB760@MWHPR01MB2429.prod.exchangelabs.com>

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

  reply	other threads:[~2017-01-27 21:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-27 19:16 Sridhar Pitchai
2017-01-27 21:36 ` Bruce Richardson [this message]
2017-01-27 22:31   ` Sridhar Pitchai
2017-01-30 10:33     ` Bruce Richardson
2017-01-30 17:20       ` Sridhar Pitchai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170127213629.GA91748@bricha3-MOBL3.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=sridhar.pitchai@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).