[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dpdk-users
Subject:    [dpdk-users] Crafting dpdk packet in secondary application and sending them from primary application
From:       Sushil Adhikari <sushil446 () gmail ! com>
Date:       2017-03-29 21:01:24
Message-ID: CAPO9LfRAmUTQMZq39sGCnD17LnFTp_cM4V4em6P_4t44+pza3g () mail ! gmail ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic