<div dir="auto">Thanks. Is there any teatpmd application has this logic to dump these info whenever we received the packet.<div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Kamaraj </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 12 Dec 2022, 4:07 pm Bruce Richardson, <<a href="mailto:bruce.richardson@intel.com">bruce.richardson@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Dec 12, 2022 at 10:29:58AM +0530, Kamaraj P wrote:<br>
>    Hello All,<br>
>    We have an application where we need to dump the received packet rx<br>
>    ring number from the queue.<br>
>    Can anyone share the DPDK api to dump the rx ringnumber for the packet<br>
>    which we received (debug and troubleshoot)?<br>
>    Thanks,<br>
>    Kamaraj<br>
<br>
Hi,<br>
<br>
this information is not preserved in the DPDK mbuf structure, so is lost<br>
after the call to rx-burst. The DPDK port field stores the port number on<br>
return from rx_burst, but your app could look to reuse this field to store<br>
the queue number also. For example, if you have only a few input ports, you<br>
could encode the port number in the high bits of the "port" field, and<br>
store the rx queue in the lower bits. This could be done as an rx-callback<br>
if you want to avoid adjusting your app following each and every rx-burst<br>
call.<br>
<br>
/Bruce<br>
</blockquote></div>