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

2014-04-29 Thread Hamid Ramazani
Hi, this post might be a little old, but there is point which might be really important for C++ developers using DPDK: C++, especially C++11, doesn't support "designated initializes" of C, instead of that you can use "memset" and set the instance of a struct/class to 0/NULL/nullptr and then you c

[dpdk-dev] could not l2fwd in DOM0

2014-04-29 Thread Samuel Monderer
Hi, First I've encountered a compiling problem when compiling for DOM0 due to prototype change of the function xen_create_contiguous_region I made the following changes: diff --git a/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c b/lib/librte_eal/linuxapp/xen index 87fa3e6..8addc21 100644 ---

[dpdk-dev] [PATCH] kni: fix build for debian kernel 3.2

2014-04-29 Thread David Marchand
Following debian kernel headers upgrade to 3.2.57-3, pci capability accessors have been backported (upstream commit 8c0d3a02c1309eb6112d2e7c8172e8ceb26ecfca, ("PCI: Add accessors for PCI Express Capability", v3.7-rc1)). It results in the same compilation error as redhat 6.x. However, there is no c

[dpdk-dev] rte_eth_dev_configure fails on VM with e1000 drivers #PERSONAL#

2014-04-29 Thread B Gopikrishna
Apologies for the delayed reply, we continued with 1 core to complete our work. But currently we would like to extend running the application with 2 core's and we are still unable to after following suggestions by Thomas, the commit mentioned by you is already available as part of the DPDK cod

[dpdk-dev] rte_eth_dev_configure fails on VM with e1000 drivers

2014-04-29 Thread B Gopikrishna
Apologies for the delayed reply, we continued with 1 core to complete our work. But currently we would like to extend running the application with 2 core's and we are still unable to after following suggestions by Thomas, the commit mentioned by you is already available as part of the DPDK cod

[dpdk-dev] [PATCH] mk: fix build ignoring other installed versions

2014-04-29 Thread Thomas Monjalon
If some DPDK libraries are installed on the system, the linker was trying to use them before searching in -L path. The obscure reason is that we were prefixing -L with -Wl, to pass it directly to the linker. But -L is also a gcc option. And allowing gcc to process this option fixes the issue. Sign

[dpdk-dev] rte_eth_dev_configure fails on VM with e1000 drivers

2014-04-29 Thread Marc Sune
Maybe useless but, I've also seen this error when trying to configure e1000's with more than 1 queue. Sometimes the only way to see such (stupid) errors is to enable the DEBUG output from the driver: marc at dpdk:~/dpdk/config$ git diff . diff --git a/config/defconfig_x86_64-default-linuxapp-gc

[dpdk-dev] [PATCH] kni: fix build for debian kernel 3.2

2014-04-29 Thread Neil Horman
On Tue, Apr 29, 2014 at 04:16:03PM +0200, David Marchand wrote: > Following debian kernel headers upgrade to 3.2.57-3, pci capability accessors > have been backported (upstream commit > 8c0d3a02c1309eb6112d2e7c8172e8ceb26ecfca, > ("PCI: Add accessors for PCI Express Capability", v3.7-rc1)). > > I

[dpdk-dev] [PATCH 0/7] pci cleanup

2014-04-29 Thread Burakov, Anatoly
> Here is an attempt at having an equal implementation in bsd and linux > eal_pci.c. > It results in following changes : > - checks on driver flag in bsd which were missing > - remove virtio-uio workaround in linux eal_pci.c > - remove deprecated RTE_EAL_UNBIND_PORTS option > > Along the way, I di

[dpdk-dev] [PATCH 0/7] pci cleanup

2014-04-29 Thread Neil Horman
On Mon, Apr 28, 2014 at 03:19:40PM +0200, David Marchand wrote: > Hello all, > > Here is an attempt at having an equal implementation in bsd and linux > eal_pci.c. > It results in following changes : > - checks on driver flag in bsd which were missing > - remove virtio-uio workaround in linux ea