My big challenge is having a tested code (run able with right functionality), then run and change it in order to have my task. I wanna use the share memory btw cores in order to write/read to/from and knowing how do that :), all available code which I found are based on NIC :( or maybe I am wrong!!! Thanks in advance,
On 11 March 2016 at 15:43, Kyle Larose <eomereadig at gmail.com> wrote: > On Fri, Mar 11, 2016 at 3:22 PM, Mahdi Moradmand Badie > <mahdi.mbadie at gmail.com> wrote: > > Dear All, > > > > I wanna Send(write) a Packet(s) with specific data (for example x = 10) > > from core 0 to share memory and Receive (Read) it with another Core (for > > example Core 1), change it in Core 1 (for example X = X + 1) and write > > again in share memory. > > I really don't know How I could do it, I wanna do this without using NIC > ot > > rte_eth at all, so simple and easy but I confused. > > Please help me. > > > > PS. I know there are many example do more complex than this small > exercise > > but all did it via NIC. > > What is your biggest challenge? Is it moving information between > cores, or getting information into your application? > > Consider that most of the multiprocess examples in DPDK do two things: > 1) Send/Receive packets to/from a NIC > 2) Send packets between cores > > You obviously want to do #2, and looking at those examples should make > how to do it fairly obvious. Is your challenge replacing #1 with > something other than a NIC? If so, you *could* consider using a pcap > PMD to just read packets from a file. In the past, I have used ring > PMDs in conjunction with a secondary process which generates packets > to inject arbitrarily formatted packets into my program. > > > > > -- > > M at hdi Mor at dm@nd B at die > -- M at hdi Mor at dm@nd B at die
