DPDK usage discussions
 help / color / mirror / Atom feed
* Direct Mem Pool vs Indirect mem pool creation
@ 2023-09-01 12:47 omer yamac
  2023-09-01 13:08 ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: omer yamac @ 2023-09-01 12:47 UTC (permalink / raw)
  To: users

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

Hello,

I need clarification while creating direct/indirect buffers for mbuf. I
couldn't find exact documentation, and I just looked over the fragmentation
test case and saw that two pools were created. One is a
direct pool, and the other is an indirect pool. Here are the methods to
create pools:
direct_pool = rte_pktmbuf_pool_create("FRAG_D_MBUF_POOL",
                          NUM_MBUFS, BURST, 0,
                          RTE_MBUF_DEFAULT_BUF_SIZE,
                          SOCKET_ID_ANY);
indirect_pool = rte_pktmbuf_pool_create("FRAG_I_MBUF_POOL",
                        NUM_MBUFS, BURST, 0,
                        0, SOCKET_ID_ANY)

I couldn't see the exact difference. Just the "data_room_size" parameter is
different. If this parameter is 0, then is the pool indirect?

Thanks all

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

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

end of thread, other threads:[~2023-09-01 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-01 12:47 Direct Mem Pool vs Indirect mem pool creation omer yamac
2023-09-01 13:08 ` Thomas Monjalon
2023-09-01 13:31   ` omer yamac
2023-09-01 21:30     ` Abdullah Ömer Yamaç

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