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.richard...@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
>

Reply via email to