DPDK RX Ring number dump

Kamaraj P pkamaraj at gmail.com
Mon Dec 12 11:45:04 CET 2022


Thanks. Is there any teatpmd application has this logic to dump these info
whenever we received the packet.

Thanks,
Kamaraj

On Mon, 12 Dec 2022, 4:07 pm Bruce Richardson, <bruce.richardson at intel.com>
wrote:

> On Mon, Dec 12, 2022 at 10:29:58AM +0530, Kamaraj P wrote:
> >    Hello All,
> >    We have an application where we need to dump the received packet rx
> >    ring number from the queue.
> >    Can anyone share the DPDK api to dump the rx ringnumber for the packet
> >    which we received (debug and troubleshoot)?
> >    Thanks,
> >    Kamaraj
>
> Hi,
>
> this information is not preserved in the DPDK mbuf structure, so is lost
> after the call to rx-burst. The DPDK port field stores the port number on
> return from rx_burst, but your app could look to reuse this field to store
> the queue number also. For example, if you have only a few input ports, you
> could encode the port number in the high bits of the "port" field, and
> store the rx queue in the lower bits. This could be done as an rx-callback
> if you want to avoid adjusting your app following each and every rx-burst
> call.
>
> /Bruce
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20221212/f18a50ea/attachment-0001.htm>


More information about the dev mailing list