* Sending/Enqueue a <mbuf> from different threads to single queue --- how to ?
@ 2023-01-26 10:46 Ruslan R. Laishev
2023-01-26 11:08 ` Pavel Vazharov
0 siblings, 1 reply; 3+ messages in thread
From: Ruslan R. Laishev @ 2023-01-26 10:46 UTC (permalink / raw)
To: users
[-- Attachment #1: Type: text/html, Size: 2518 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sending/Enqueue a <mbuf> from different threads to single queue --- how to ?
2023-01-26 10:46 Sending/Enqueue a <mbuf> from different threads to single queue --- how to ? Ruslan R. Laishev
@ 2023-01-26 11:08 ` Pavel Vazharov
2023-01-26 11:13 ` Ruslan R. Laishev
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Vazharov @ 2023-01-26 11:08 UTC (permalink / raw)
To: Ruslan R. Laishev; +Cc: users
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
On Thu, Jan 26, 2023 at 12:46 PM Ruslan R. Laishev <zator@yandex.ru> wrote:
> Hello!
>
> Continue studying DPDK ...
>
> I have a some nano-task : I'm need to send a packet/mbuf to queue of a
> device from separate worker .
>
> Several workers (every worker run on own lcore) send/receive packets
> to/from queues of devices
> worker #0 ------- port0/que0
> - port1/que0
> - portN/que0
> worker #1 ------- port0/que1
> - port1/que1
> - portN/que1
> ...
> worker #N ------- port0/queN
> - port1/queN
> - portN/queN
>
> There is a yet another thread which want to send mbuf/packet to queue #0
> (just for example) to every device
>
Hi,
I don't think you can inject packets into the device queues.
However, you can achieve the same, sending mbufs between the worker
threads, using the provided ring functionality of DPDK -
http://doc.dpdk.org/guides/prog_guide/ring_lib.html.
The worker threads will need to try to dequeue regularly for the shared
ring(s).
Regards.
[-- Attachment #2: Type: text/html, Size: 2823 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sending/Enqueue a <mbuf> from different threads to single queue --- how to ?
2023-01-26 11:08 ` Pavel Vazharov
@ 2023-01-26 11:13 ` Ruslan R. Laishev
0 siblings, 0 replies; 3+ messages in thread
From: Ruslan R. Laishev @ 2023-01-26 11:13 UTC (permalink / raw)
To: Pavel Vazharov; +Cc: users
[-- Attachment #1: Type: text/html, Size: 3483 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-26 11:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 10:46 Sending/Enqueue a <mbuf> from different threads to single queue --- how to ? Ruslan R. Laishev
2023-01-26 11:08 ` Pavel Vazharov
2023-01-26 11:13 ` Ruslan R. Laishev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).