DPDK usage discussions
 help / color / mirror / Atom feed
* DPDK and DMA
@ 2023-01-08 21:05 fwefew 4t4tg
  2023-01-11 11:26 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 5+ messages in thread
From: fwefew 4t4tg @ 2023-01-08 21:05 UTC (permalink / raw)
  To: users

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

Consider a valid DPDK TXQ with its mempool of rte_mbufs. Application code
will allocate a mbuf from the pool and prepare it with headers, data, and
so on.

When the mbuf(s) are enqueued to the NIC with rte_eth_tx_burst() does DPDK
DMA the memory into the NIC? Is this an optimization worth considering?

DPDK provides a DMA example here:
http://doc.dpdk.org/api/examples_2dma_2dmafwd_8c-example.html

Now, to be fair, ultimately whether or not DMA helps must be evidenced by a
benchmark. Still, is there any serious reason to make mempools and its
bufs DMA into and out of the NIC?

Any perspective here is appreciated.

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

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

end of thread, other threads:[~2023-01-11 20:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08 21:05 DPDK and DMA fwefew 4t4tg
2023-01-11 11:26 ` Dmitry Kozlyuk
2023-01-11 18:05   ` fwefew 4t4tg
2023-01-11 18:54     ` Stephen Hemminger
2023-01-11 20:14     ` Dmitry Kozlyuk

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