DPDK and DMA

fwefew 4t4tg 7532yahoo at gmail.com
Sun Jan 8 22:05:55 CET 2023


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20230108/2bce96d9/attachment.htm>


More information about the users mailing list