[dpdk-dev] [PATCH 0/5] examples: add a new makefile to build all examples

2014-04-25 Thread Olivier MATZ
Hi Neil, First, thank you for your reviews. On Friday, April 25, 2014 10:05:26 AM Neil Horman wrote: > > After applying the patches, it is possible to build all examples by doing > > the following: > > user at droids:~/dpdk.org$ cd examples > > user at droids:~/dpdk.org/examples$ make RTE_SDK

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Vasiliy Tolstov
2014-04-25 16:22 GMT+04:00 Ananyev, Konstantin : > Hi Vasiliy, > Why just not use ' -cpu host' when starting your kvm? Because in this case compiled binaries may use extensions that not supported on other platforms. As i see error happen with MACHINE_CFLAGS = -march=native, but i compile all soft

[dpdk-dev] [PATCH 08/10] bsd/mk: use the Q variable instead of @ for quiet commands

2014-04-25 Thread Thomas Monjalon
2014-04-25 09:19, Neil Horman: > On Fri, Apr 25, 2014 at 01:59:46PM +0200, Olivier Matz wrote: > > This allows to use V=1 to be more verbose to debug the build process > > of a bsd kernel module. > > > > Signed-off-by: Olivier Matz > > This doesnt seem like it should really be part of this serie

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Vasiliy Tolstov
2014-04-25 15:20 GMT+04:00 Neil Horman : > Start by adding V=1 to your command line to start drilling down to where the > problem is actually happening. make -f /var/tmp/paludis/build/net-libs-dpdk-1.6.0/work/dpdk-1.6.0/mk/rte.sdkconfig.mk config if [ "/var/tmp/paludis/build/net-libs-dpdk-1.6.0

[dpdk-dev] [PATCH 0/5] examples: add a new makefile to build all examples

2014-04-25 Thread Neil Horman
On Fri, Apr 25, 2014 at 06:24:48PM +0200, Olivier MATZ wrote: > Hi Neil, > > First, thank you for your reviews. > You're welcome, glad to do it. > On Friday, April 25, 2014 10:05:26 AM Neil Horman wrote: > > > After applying the patches, it is possible to build all examples by doing > > > the fo

[dpdk-dev] [PATCH 5/5] examples: fix netmap_compat example

2014-04-25 Thread Olivier Matz
It is not allowed to reference a an absolute file name in SRCS-y. A VPATH has to be used, else the dependencies won't be checked properly. Signed-off-by: Olivier Matz --- examples/netmap_compat/bridge/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/netma

[dpdk-dev] [PATCH 4/5] examples: fix qos_sched makefile

2014-04-25 Thread Olivier Matz
The example does not compile as the linker complains about duplicated symbols. Remove -lsched from LDLIBS, it is already present in rte.app.mk and added by the DPDK framework automatically. Signed-off-by: Olivier Matz --- examples/qos_sched/Makefile | 2 -- 1 file changed, 2 deletions(-) diff

[dpdk-dev] [PATCH 3/5] examples: add a makefile to build all examples

2014-04-25 Thread Olivier Matz
It is now possible to build all examples by doing the following: user at droids:~/dpdk.org$ cd examples user at droids:~/dpdk.org/examples$ make RTE_SDK=${PWD}/.. \ RTE_TARGET=x86_64-default-linuxapp-gcc Signed-off-by: Olivier Matz --- examples/Makefile | 68 ++

[dpdk-dev] [PATCH 2/5] examples: use rte.extsubdir.mk to process subdirectories

2014-04-25 Thread Olivier Matz
Signed-off-by: Olivier Matz --- examples/l2fwd-ivshmem/Makefile | 9 + examples/multi_process/Makefile | 16 +++- examples/multi_process/client_server_mp/Makefile | 15 ++- examples/quota_watermark/Makefile| 12 +++

[dpdk-dev] [PATCH 1/5] mk: introduce rte.extsubdir.mk

2014-04-25 Thread Olivier Matz
This makefile can be included by a project that needs to build several applications or libraries that are located in different directories. Signed-off-by: Olivier Matz --- mk/rte.extsubdir.mk | 49 + 1 file changed, 49 insertions(+) create mode 10

[dpdk-dev] [PATCH 0/5] examples: add a new makefile to build all examples

2014-04-25 Thread Olivier Matz
This patch series adds a makefile to build all examples supported by the configuration. It helps to check that all examples compile after a dpdk modification. After applying the patches, it is possible to build all examples by doing the following: user at droids:~/dpdk.org$ cd examples user a

[dpdk-dev] [PATCH 10/10] bsd/mem: get physical address of any pointer

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in commit 57c24af85d9eaa81549a212169605b4e2468a29f. This commit adds a dummy rte_mem_virt2phy() to fix the compilation of DPDK under BSD. This function is only used when the debug option "--no-huge" is given, to get the physical address of mempools in memory. As a resu

[dpdk-dev] [PATCH 09/10] bsd/mem: get hugepages config

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in c5e9eeca5a67a8272f0fdedcd0afc9b2d22be376. This commit allows external libraries and applications to know if hugepages are enabled. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_

[dpdk-dev] [PATCH 08/10] bsd/mk: use the Q variable instead of @ for quiet commands

2014-04-25 Thread Olivier Matz
This allows to use V=1 to be more verbose to debug the build process of a bsd kernel module. Signed-off-by: Olivier Matz --- mk/rte.bsdmodule.mk | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/mk/rte.bsdmodule.mk b/mk/rte.bsdmodule.mk index 622471

[dpdk-dev] [PATCH 07/10] bsd/nic_uio: fix module compilation with freebsd 10

2014-04-25 Thread Olivier Matz
Compiling the DPDK under FreeBSD gives the following error due to a missing include . In file included from nic_uio.c:52: @/vm/vm_pager.h:126:2: error: implicit declaration of function 'rw_assert' is invalid in C99 [-Werror,-Wimplicit-function-declaration] VM_OBJECT_ASSERT_WLOCKED(o

[dpdk-dev] [PATCH 06/10] bsd/devargs: allow to provide arguments per pci device

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in commit 8e245de6ca7e050e282cd49ffd5e68a5b6ff62f5. Add the ability to pass some specific initialization arguments to PCI devices at start-up. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal_pci.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-

[dpdk-dev] [PATCH 05/10] bsd/devargs: replace --use-device option by --pci-whitelist and --vdev

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in commit cac6d08c8bde2fdb57806c49038187cdb54219a8. This commit splits the "--use-device" option in two new options: - "--pci-whitelist or -w": add a PCI device in the white list - "--vdev": instanciate a new virtual device Signed-off-by: Olivier Matz --- lib/librte

[dpdk-dev] [PATCH 04/10] bsd/devargs: use a comma instead of semicolon to separate key/values

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in commit a8b97e3a1db0a9366d58811411b904e4fef8160f. This commit changes the API of --use-device command line argument. It changes the separators from ';' to ','. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH 03/10] bsd/devargs: use devargs for vdev and PCI whitelist/blacklist

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in commit 12204589517e06230e24e0f23396222f2929bd77. This patch removes old whitelist code and use the newly introduced rte_devargs to get the PCI white list, the PCI black list and the list of virtual devices. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal

[dpdk-dev] [PATCH 02/10] bsd/devargs: introduce API and test

2014-04-25 Thread Olivier Matz
The bsd part was missing in commit bf6dea0e04afc0d1f2c8056cd4d1aecab12502d1. This commit introduces a new API for storing device arguments given by the user. It only adds the framework and the test. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/Makefile | 1 + 1 file changed, 1 inse

[dpdk-dev] [PATCH 01/10] bsd/pci: rename device and driver lists

2014-04-25 Thread Olivier Matz
The bsdapp part was missing in commit 5b1f4a67dd5bcfa8d5139c064ced6e37a9149419. To avoid confusion with virtual devices, rename device_list as pci_device_list and driver_list as pci_driver_list. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal_pci.c | 12 ++-- 1 file change

[dpdk-dev] [PATCH 00/10] bsd: fix compilation

2014-04-25 Thread Olivier Matz
This patch series fix compilation of bsdapp environment that was broken by previous commits. Olivier Matz (10): bsd/pci: rename device and driver lists bsd/devargs: introduce API and test bsd/devargs: use devargs for vdev and PCI whitelist/blacklist bsd/devargs: use a comma instead of semi

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Thomas Monjalon
Hi, 2014-04-25 10:00, Vasiliy Tolstov: > model name : QEMU Virtual CPU version 1.0 [...) > error: > make config T=x86_64-default-linuxapp-gcc > cc1: error: CPU you selected does not support x86-64 instruction set Try qemu -cpu host. -- Thomas

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Ananyev, Konstantin
Then I suppose you need to set CONFIG_RTE_MACHINE="default" in your config file. -Original Message- From: vase at selfip.ru [mailto:v...@selfip.ru] On Behalf Of Vasiliy Tolstov Sent: Friday, April 25, 2014 1:37 PM To: Ananyev, Konstantin Cc: Neil Horman; dev Subject: Re: [dpdk-dev] unable

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Ananyev, Konstantin
Hi Vasiliy, Why just not use ' -cpu host' when starting your kvm? Konstantin -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Vasiliy Tolstov Sent: Friday, April 25, 2014 12:37 PM To: Neil Horman Cc: dev Subject: Re: [dpdk-dev] unable to compile 1.6.0 2014-04-25 15:

[dpdk-dev] [PATCH 0/5] examples: add a new makefile to build all examples

2014-04-25 Thread Neil Horman
On Fri, Apr 25, 2014 at 02:00:44PM +0200, Olivier Matz wrote: > This patch series adds a makefile to build all examples supported > by the configuration. It helps to check that all examples compile > after a dpdk modification. > > After applying the patches, it is possible to build all examples by

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Paul Barrette
On 04/25/2014 08:36 AM, Vasiliy Tolstov wrote: > 2014-04-25 16:22 GMT+04:00 Ananyev, Konstantin intel.com>: >> Hi Vasiliy, >> Why just not use ' -cpu host' when starting your kvm? > > Because in this case compiled binaries may use extensions that not > supported on other platforms. > As i see err

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Vasiliy Tolstov
Hello. I'm try to create package for my distro for testing, but unable to compile under kvm virtual machine. /proc/cpuinfo processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping: 3 microcode :

[dpdk-dev] [PATCH 00/10] bsd: fix compilation

2014-04-25 Thread Neil Horman
On Fri, Apr 25, 2014 at 01:59:38PM +0200, Olivier Matz wrote: > This patch series fix compilation of bsdapp environment > that was broken by previous commits. > > Olivier Matz (10): > bsd/pci: rename device and driver lists > bsd/devargs: introduce API and test > bsd/devargs: use devargs for

[dpdk-dev] [PATCH 08/10] bsd/mk: use the Q variable instead of @ for quiet commands

2014-04-25 Thread Neil Horman
On Fri, Apr 25, 2014 at 01:59:46PM +0200, Olivier Matz wrote: > This allows to use V=1 to be more verbose to debug the build process > of a bsd kernel module. > > Signed-off-by: Olivier Matz This doesnt seem like it should really be part of this series, given that everything else in it is here to

[dpdk-dev] unable to compile 1.6.0

2014-04-25 Thread Neil Horman
On Fri, Apr 25, 2014 at 10:00:41AM +0400, Vasiliy Tolstov wrote: > Hello. I'm try to create package for my distro for testing, but unable > to compile under kvm virtual machine. > /proc/cpuinfo > processor : 7 > vendor_id : GenuineIntel > cpu family : 6 > model : 2 > mode