DPDK usage discussions
 help / color / mirror / Atom feed
* Scheduling of multiple RX/TX queues on a single port
@ 2023-05-29 15:02 Fengkai Sun
  2023-05-30 16:24 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Fengkai Sun @ 2023-05-29 15:02 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

Hi list,

I'm curious how DPDK programs the NIC to receive/transmit packets when
there are multiple queues on a single port.

As for RX, the answer might be clear.
The NIC can only receive a packet once at a time, since the cable only
outputs one signal (0 or 1) at a time (correct me if I'm wrong).
Therefore the NIC can receive a packet, check it's information, and finally
put in into the right queue via some policies, e.g. RSS, all sequentially.

However, it confuses me when it comes to TX.
As there are multiple TX queues on the same port, the NIC must decide which
queue to get packets from when it's idle.
This is where scheduling lies. How does the NIC select the queue?
Round-Robin? Does it have to enforce fairness among the queues?

I'm wondering where I can find some documentation on this issue. Thank you!


Best Regards,
Fengkai

[-- Attachment #2: Type: text/html, Size: 1076 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-05 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-29 15:02 Scheduling of multiple RX/TX queues on a single port Fengkai Sun
2023-05-30 16:24 ` Stephen Hemminger
2023-06-02 10:14   ` Fengkai Sun

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).