<div><span style="font-family:'georgia' , serif">Hello!</span></div><div> </div><div><span style="font-family:'georgia' , serif">Thanks a lot! It's really nice idea!</span></div><div> </div><div>26.01.2023, 14:08, "Pavel Vazharov" <freakpv@gmail.com>:</div><blockquote><div><div> </div> <div><div>On Thu, Jan 26, 2023 at 12:46 PM Ruslan R. Laishev <<a href="mailto:zator@yandex.ru" rel="noopener noreferrer">zator@yandex.ru</a>> wrote:</div><blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div><span style="font-family:'georgia' , serif">Hello!</span></div><div> </div><div><span style="font-family:'georgia' , serif">Continue studying DPDK ...</span></div><div> </div><div><span style="font-family:'georgia' , serif">I have a some nano-task : I'm need to send a packet/mbuf to queue of a device from separate worker .</span></div><div> </div><div><span style="font-family:'georgia' , serif">Several workers (every worker run on own lcore) send/receive packets to/from queues of devices</span></div><div><span style="font-family:'georgia' , serif">worker #0 ------- port0/que0</span></div><div><div><span style="font-family:'georgia' , serif">                        - port1/que0</span></div><div><div><span style="font-family:'georgia' , serif">                        - portN/que0</span></div></div></div><div><span style="font-family:'georgia' , serif">worker #1 ------- port0/que1           </span></div><div><div><div><span style="font-family:'georgia' , serif">                        - port1/que1</span></div><div><div><span style="font-family:'georgia' , serif">                        - portN/que1</span></div></div></div><div><span style="font-family:'georgia' , serif">...</span></div></div><div><div><span style="font-family:'georgia' , serif">worker #N ------- port0/queN   </span></div><div><span style="font-family:'georgia' , serif">                        - port1/queN</span></div><div><div><div><div><span style="font-family:'georgia' , serif">                        - portN/queN</span></div></div></div><div> </div></div></div><div><span style="font-family:'georgia' , serif">There is a yet another thread which want to send mbuf/packet to queue #0 (just for example) to every device</span></div></blockquote><div> </div><div><div><div><div><div><div>Hi,<br /> </div>I don't think you can inject packets into the device queues.</div></div>However, you can achieve the same, sending mbufs between the worker threads, using the provided ring functionality of DPDK - <a href="http://doc.dpdk.org/guides/prog_guide/ring_lib.html." rel="noopener noreferrer">http://doc.dpdk.org/guides/prog_guide/ring_lib.html.</a></div>The worker threads will need to try to dequeue regularly for the shared ring(s).<br /> </div>Regards.</div></div></div></blockquote><div> </div><div> </div><div><span style="font-family:'georgia' , 'palatino'">--- </span></div><div><span style="font-family:'georgia' , 'palatino'">С уважением,<br />Ruslan R. Laishev</span></div><div><span style="font-family:'georgia' , 'palatino'">OpenVMS bigot, natural born system/network progger, C contractor.</span></div><div><span style="font-family:'georgia' , 'palatino'">+79013163222</span></div><div><span style="font-family:'georgia' , 'palatino'">+79910009922</span></div><div> </div>