DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Crafting dpdk packet in secondary application and sending them from primary application, multi-process, dpdk
@ 2017-03-29 21:01 Sushil Adhikari
  0 siblings, 0 replies; only message in thread
From: Sushil Adhikari @ 2017-03-29 21:01 UTC (permalink / raw)
  To: users

I have two dpdk application one primary with "--proc-type=primary" which
does kni packet forwarding(as in kni example application) and a secondary
application with "--proc-type=secondary" whose job is to craft dpdk packets
from raw data and forward them through the memory(buffer) set up in primary
application. I'm having problem allocating mbuf for packet crafting in
secondary application.

To get mbuf what I did was (in secondary application)

struct rte_mbuf *buffer =
rte_pktmbuf_alloc(rte_mempool_lookup("mempool_name"));

but this doesnt give me rte_mbuf rather it hangs the program, this probably
is because I can't allocate memory (rte_mbuf*) in secondary application
from mempool created by primary application.

How can I craft packet on secondary application and how can I send them
through the kni interface created in primary application.

I would appreciate any help or suggestions.


Thank you

Sushil

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

only message in thread, other threads:[~2017-03-29 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 21:01 [dpdk-users] Crafting dpdk packet in secondary application and sending them from primary application, multi-process, dpdk Sushil Adhikari

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