[dpdk-dev] rte_eth_from_rings

Bruce Richardson bruce.richardson at intel.com
Fri Jan 27 22:36:29 CET 2017

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.


More information about the dev mailing list