[dpdk-users] Query on handling packets

Wiles, Keith keith.wiles at intel.com
Thu Nov 8 18:43:59 CET 2018

On Nov 8, 2018, at 4:58 PM, Harsh Patel <thadodaharsh10 at gmail.com<mailto:thadodaharsh10 at gmail.com>> wrote:

Thanks for your insight on the topic. Transmission is working with the functions you mentioned. We tried to search for some similar functions for handling incoming packets but could not find anything. Can you help us on that as well?

I do not know if a DPDK API set for RX side. But in the DAPI (DPDK API) PoC I was working on and presented at the DPDK Summit last Sept. In the PoC I did create a RX side version. The issues it has a bit of tangled up in the DAPI PoC.

The basic concept is a call to RX a single packet does a rx_burst of N number of packets keeping then in a mbuf list. The code would spin waiting for mbufs to arrive or return quickly if a flag was set. When it did find RX mbufs it would just return the single mbuf and keep the list of mbufs for later requests until the list is empty then do another rx_burst call.

Sorry this is a really quick note on how it works. If you need more details we can talk more later.

Harsh and Hrishikesh.

On Thu, 8 Nov 2018 at 14:26, Wiles, Keith <keith.wiles at intel.com<mailto:keith.wiles at intel.com>> wrote:

> On Nov 8, 2018, at 8:24 AM, Harsh Patel <thadodaharsh10 at gmail.com<mailto:thadodaharsh10 at gmail.com>> wrote:
> Hi,
> We are working on a project where we are trying to integrate DPDK with
> another software. We are able to obtain packets from the other environment
> to DPDK environment in one-by-one fashion. On the other hand DPDK allows to
> send/receive burst of data packets. We want to know if there is any
> functionality in DPDK to achieve this conversion of single incoming packet
> to a burst of packets sent on NIC and similarly, conversion of burst read
> packets from NIC to send it to other environment sequentially?

Search in the docs or lib/librte_ethdev directory on rte_eth_tx_buffer_init, rte_eth_tx_buffer, ...

> Thanks and regards
> Harsh Patel, Hrishikesh Hiraskar
> NITK Surathkal



More information about the users mailing list