DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Queries on dpdk buffer allocation and kni
@ 2015-03-31 15:13 Rajasekhar Pulluru
  0 siblings, 0 replies; only message in thread
From: Rajasekhar Pulluru @ 2015-03-31 15:13 UTC (permalink / raw)
  To: dev

Dear Group members,

I have been trying to understand the dpdk code and have got two queries.

1. descriptor rings and packet buffer allocation

Looking at the linux native e1000 kernel driver,
Memory for NIC's tx and rx descriptor rings are allocated using
Memory for rx packet buffers are allocated using netdev_alloc_skb and
dma address (after dma_map_single) of skb->data is set to rx
descriptor to receive packet onto skb.

Looking at dpdk user space driver, all rings and packet allocation is
done using (dpdk) mem pools.

I would like to know

a) whether the mem pool internally uses dma_alloc_coherent like apis
to allocate buffers
b) if the buffer is allocated by kernel, how does the user space
application map them and access the packet data directly.

2. kni

what is the internal mechanism used to implement FIFO-based shared
memory (used between kernel and user-land).

Thanks in advance,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-31 15:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31 15:13 [dpdk-dev] Queries on dpdk buffer allocation and kni Rajasekhar Pulluru

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