[dpdk-dev] Changes to makefiles to allow building apps using g++

2014-01-13 Thread Dan Kan
I made changes to makefiles to at least allow app development to be in done C++. I'm wondering if the community is interested in getting these changes as a patch. The dpdk library must still be compiled using gcc. However, the applications can be compiled using g++ by setting CC=g++, e.g. "make CC=

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

2014-01-10 Thread Dan Kan
code and link against the built libraries. Dan On Fri, Jan 10, 2014 at 12:19 PM, Dan Kan wrote: > Hamid, > I'm in the same situation as you in which I would like to write most of > the application logic in C++. I was able to use CC=g++ by slightly > modifying the makefiles in m

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

2014-01-10 Thread Dan Kan
Hamid, I'm in the same situation as you in which I would like to write most of the application logic in C++. I was able to use CC=g++ by slightly modifying the makefiles in mk. I replaced all occurrences of "%.c" with "%.cc" using the following command. find . -name "*.mk" -exec sed -i 's/%\.c\([^

[dpdk-dev] Unable to get RSS to work in testpmd and load balancing question

2014-01-09 Thread Dan Kan
I think the following change might be sufficient. DCB seems to use its own init_port_dcb_config(), which would reset mq_mode. If this is good, I can submit the patch. Thanks. index b11eb2e..355db0f 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1546,6 +1546,9 @@ init_port_con

[dpdk-dev] Unable to get RSS to work in testpmd and load balancing question

2014-01-08 Thread Dan Kan
I'm evaluating DPDK using dpdk-1.5.1r1. I have been playing around with the test-pmd sample app. I'm having a hard time to get RSS to work. I have a 2-port 82599 Intel X540-DA2 NIC. I'm running the following command to start the app. sudo ./testpmd -c 0x1f -n 2 -- -i --portmask=0x3 --nb-cores=4 --