[dpdk-dev] Useful: Simple C++ program & Makefile

2014-04-29 Thread Hamid Ramazani
gt;> 71,73c71,73 >> < WERROR_FLAGS := -W -Wall -Werror >> < WERROR_FLAGS += -Wmissing-declarations -Wpointer-arith >> < WERROR_FLAGS += -Wcast-align -Wcast-qual >> --- >> > WERROR_FLAGS := -W -Wall -Werror -Wstrict-prototypes >> > -Wmi

[dpdk-dev] packet loss: multi-queue (RSS enabled)

2014-04-30 Thread Hamid Ramazani
Hi, I tried a lot (more than a week) to solve the problem myself and not to bother the list, but I didn't succeed. Maybe other people have the same problem. I have a simple program attached. It is intended for simple packet capturing; captures from interface and writes to memory, and frees the mem

[dpdk-dev] rte_eal_init independent from main(int argc, char** argv)

2014-02-18 Thread Hamid Ramazani
Hi, I'm in need of running an open() function, that is part another program. open() does many things, the very first of them is rte_eal_init(argv, argc) I should not receive argc, and argv from main function of the program, but rather I should produce it myself. What I've done inside open() functi

[dpdk-dev] rte_eal_init independent from main(int argc, char** argv)

2014-02-18 Thread Hamid Ramazani
actually I've used: char* argv[] = {"./build/l2fwd","-c","ff","-n","4", NULL}; (NULL at the end of the list). Thanks. On 2/18/14, Hamid Ramazani wrote: > Hi, > I'm in need of running an open() function, that is part ano

[dpdk-dev] g++: undefined reference to

2014-01-02 Thread Hamid Ramazani
Hi, I wanted to write a simple program using class (object oriented). I've attached my helloClass.cpp and also Makefile. after runnig make I get below errors. I think: 1. it is the problem of using c code in c++ 2. I've used extern "C" in helloClass.cpp 3. Should I recompile the DPDK from source w

[dpdk-dev] g++: undefined reference to

2014-01-02 Thread Hamid Ramazani
if compiling against libpcap but in this > case you need to link against object files, not a shared library. > > Good luck! > Stefan > > Sent from my smart phone; people don't make typos, Swype does! > On Jan 2, 2014 4:35 AM, "Hamid Ramazani" wrote: > >> H

[dpdk-dev] Object Oriented DPDK: c++ class

2014-01-02 Thread Hamid Ramazani
Hi, Anyone has written an object oriented DPDK application? I've written a simple helloClass program, and I've created the object file by following Makefile: helloClass.o : helloClass.cpp g++ -c helloClass.cpp -I/home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/include but I've

[dpdk-dev] g++: undefined reference to

2014-01-03 Thread Hamid Ramazani
; > std::endl; > }; > }; > > int main(int argc, char** argv) > { > Runner* runner = new Runner(); > runner->run(argc, argv); > delete runner; > exit(0); > } > > > Thanks, > Stefan > > > On Thu, Jan 2, 2014 at 4:52 PM, Stefan Baranof

[dpdk-dev] Useful: Simple C++ program & Makefile

2014-01-10 Thread Hamid Ramazani
e could be written much better; Maybe I made it completer in future. All the Best, --Hamid On 1/3/14, Thomas Monjalon wrote: > Hello, > > 03/01/2014 11:48, Hamid Ramazani : >> eal_timer.c:(.text+0x42c): undefined reference to `clock_gettime' > > From "man clock_gett

[dpdk-dev] Any benefit of using DPDK's makefiles instead of using your own and linking against DPDK library

2014-01-14 Thread Hamid Ramazani
Hi, Considering the fact that there are many developers using c++, I totally persuade/agree with the addition of c++ functionality, and thanks to Thomas's guidelines it won't create any overhead in usage. All the Best, --Hamid On 1/14/14, Thomas Monjalon wrote: > Hello Venky, > > 14/01/2014 14:

[dpdk-dev] FindDPDK.cmake

2014-01-29 Thread Hamid Ramazani
Hi, Anybody has written FindDPDK.cmake? Like those under "/usr/share/cmakeXXX/Modules". All the Best, --Hamid

[dpdk-dev] free memory pool

2014-03-02 Thread Hamid Ramazani
Hi, Is there any other way than freeing memory pool? I see rte_pktmbuf_free function call in almost all examples. can we have a ring-like memory pool without need to free it? Thanks in advance for your consideration.