[dpdk-dev] [PATCH 00/22] upgrade with 6WIND's enhancements

2013-03-20 Thread Vincent JARDIN
All can be applied. On 20/03/2013 17:04, Thomas Monjalon wrote: > Here are some patches which were not integrated by Intel in their 1.2.3 > version. > > --- > > Adrien Mazarguil (3): >lib: fix non-C99 macros definitions in exported headers >pci: reference driver structure for each device

[dpdk-dev] [PATCH 22/22] igb_uio: fix build with kernel >= 3.8

2013-03-20 Thread Thomas Monjalon
From: Nicolas Dichtel __devinit has been removed in linux commit 54b956b903 ("Remove __dev* markings from init.h", 3.8-rc4). Acked-by: Ivan Boule Acked-by: Thomas Monjalon Signed-off-by: Nicolas Dichtel --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c |4 1 files changed, 4 insertions(

[dpdk-dev] [PATCH 21/22] igb_uio: fix driver dependency

2013-03-20 Thread Thomas Monjalon
From: Damien Millescamps Allow to run without igb_uio if probed devices don't require it. The condition for exiting with an error is: - Tested driver is needed by a probed device AND - Tested driver needs igb_uio Acked-by: Adrien Mazarguil Signed-off-by: Damien Millescamps --- lib/librte_

[dpdk-dev] [PATCH 20/22] pci: allow drivers to be bound several times to the same PCI device

2013-03-20 Thread Thomas Monjalon
From: Adrien Mazarguil Drivers with the flag RTE_PCI_DRV_MULTIPLE enabled will be bound several times to the same device until they return an error. These drivers must internally keep track of each device state in order for this to work reliably. This flag is currently required for Ethernet ada

[dpdk-dev] [PATCH 19/22] pci: reference driver structure for each device

2013-03-20 Thread Thomas Monjalon
From: Adrien Mazarguil Add a driver reference (if available) to every PCI devices, even when blacklisted. This information is made available in the global device_list variable so users know which network devices are managed or ignored. Acked-by: Ivan Boule Acked-by: Damien Millescamps Signed-o

[dpdk-dev] [PATCH 18/22] timer: option --vmware-tsc-map for VMware guest

2013-03-20 Thread Thomas Monjalon
From: Damien Millescamps The VMware TSC mapping uses a hook to RDPMC to read the physical TSC in the case of VMware ESXi. Introduce new option --vmware-tsc-map, ignored if CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT is not set. Default is CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=y. if CON

[dpdk-dev] [PATCH 17/22] timer: get TSC frequency from /proc/cpuinfo

2013-03-20 Thread Thomas Monjalon
Frequency was guessed by sleeping 1 sec. Now, read frequency from cpuinfo first. Keep sleep method as fallback. Acked-by: Ivan Boule Signed-off-by: Thomas Monjalon --- lib/librte_eal/linuxapp/eal/eal_hpet.c | 47 --- 1 files changed, 42 insertions(+), 5 deletions(-

[dpdk-dev] [PATCH 16/22] timer: check TSC reliability

2013-03-20 Thread Thomas Monjalon
From: Ivan Boule Read flags from /proc/cpuinfo and warn if constant_tsc or nonstop_tsc is not found. Acked-by: Ivan Boule Signed-off-by: Thomas Monjalon --- lib/librte_eal/linuxapp/eal/eal_hpet.c | 37 1 files changed, 37 insertions(+), 0 deletions(-) diff

[dpdk-dev] [PATCH 15/22] mem: fix access to huge page with high address

2013-03-20 Thread Thomas Monjalon
The returned value of lseek is a virtual address which can be different from the offset. Indeed, if the return address has a 64-bit canonical form, the 16 higher bits are all 1 if bit 47 is 1. So the check was wrong. It is better to test against an error value. Acked-by: Damien Millescamps Signe

[dpdk-dev] [PATCH 14/22] lib: fix non-C99 macros definitions in exported headers

2013-03-20 Thread Thomas Monjalon
From: Adrien Mazarguil The original definitions prevent external programs/libraries from compiling without warnings when using these headers and -std=gnu99 (relaxed C99 mode). Acked-by: Ivan Boule Acked-by: Damien Millescamps Signed-off-by: Adrien Mazarguil --- lib/librte_cmdline/cmdline_cir

[dpdk-dev] [PATCH 13/22] lib: fix uninitialized variables

2013-03-20 Thread Thomas Monjalon
From: Zijie Pan Fix compilation errors caused by uninitialized variables. Acked-by: Ivan Boule Acked-by: Adrien Mazarguil Signed-off-by: Krzysztof Witek Signed-off-by: Zijie Pan --- lib/librte_pmd_igb/e1000_rxtx.c |4 ++-- lib/librte_pmd_igb/igb/e1000_vf.c |3 ++- lib/librte_pmd_i

[dpdk-dev] [PATCH 12/22] lib: fix unused values

2013-03-20 Thread Thomas Monjalon
From: Zijie Pan Fix warnings of type "Value stored to 'xxx' is never read". Acked-by: Ivan Boule Acked-by: Adrien Mazarguil Signed-off-by: Zijie Pan --- lib/librte_cmdline/cmdline_parse_ipaddr.c |1 - lib/librte_eal/linuxapp/eal/eal_thread.c |2 -- lib/librte_lpm/rte_lpm.c

[dpdk-dev] [PATCH 11/22] app: fix autotest summary in error cases

2013-03-20 Thread Thomas Monjalon
It was reporting "All test OK" even if previous tests (except the last one) were failed. Acked-by: Ivan Boule Signed-off-by: Thomas Monjalon --- app/test/autotest.py |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/test/autotest.py b/app/test/autotest.py index

[dpdk-dev] [PATCH 10/22] app: fix config crash in testpmd

2013-03-20 Thread Thomas Monjalon
From: Damien Millescamps A chained topology must always have an increment of 1. Here, it was 2 if ports number is even. Acked-by: Ivan Boule Acked-by: Thomas Monjalon Signed-off-by: Damien Millescamps --- app/test-pmd/config.c | 20 +--- 1 files changed, 9 insertions(+), 11

[dpdk-dev] [PATCH 09/22] app: fix testpmd compliance with __rte_mbuf_sanity_check()

2013-03-20 Thread Thomas Monjalon
From: Ivan Boule Build mbuf and lists of mbufs in a way compliant with the checks performed by the function __rte_mbuf_sanity_check() when CONFIG_RTE_LIBRTE_MBUF_DEBUG=y Acked-by: Olivier Matz Signed-off-by: Ivan Boule --- app/test-pmd/testpmd.c |1 + app/test-pmd/txonly.c |1 + 2 fi

[dpdk-dev] [PATCH 08/22] app: use (void)variable when unused

2013-03-20 Thread Thomas Monjalon
From: Olivier Matz When compiling with llvm-clang, the notation "variable = variable" produces a warning. We shall use "(void)variable" instead. Acked-by: Ivan Boule Signed-off-by: Olivier Matz --- app/test/test_hash.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --gi

[dpdk-dev] [PATCH 07/22] app: fix unused values

2013-03-20 Thread Thomas Monjalon
From: Zijie Pan Fix warnings of type "Value stored to 'xxx' is never read". Acked-by: Ivan Boule Acked-by: Adrien Mazarguil Signed-off-by: Zijie Pan --- app/test-pmd/config.c |1 - app/test/test.c |1 - app/test/test_lpm.c |4 +--- app/test/test_ring.c |4 +--- 4 fil

[dpdk-dev] [PATCH 06/22] app: fix volatile read for GCC >= 4.6

2013-03-20 Thread Thomas Monjalon
From: Ivan Boule When a memory address must be read, for instance a [mapped] PCI register, the read value is assigned to a local variable that is not used after, as for instance: x = *((uint8_t *) mem_addr); Such instructions do not compile with gcc 4.6. The fix consists in adding the "volat

[dpdk-dev] [PATCH 05/22] mk: allow corei7-avx flag with gcc 4.7

2013-03-20 Thread Thomas Monjalon
From: Zijie Pan In rte.toolchain-compat.mk, ensure MACHINE_CFLAGS is initialized when using GCC 4.7. Update the GCC 4.6 test to also include GCC 4.7. Acked-by: Ivan Boule Acked-by: Adrien Mazarguil Signed-off-by: Krzysztof Witek Signed-off-by: Zijie Pan --- mk/toolchain/gcc/rte.toolchain-co

[dpdk-dev] [PATCH 04/22] mk: add a makefile for shared libraries

2013-03-20 Thread Thomas Monjalon
From: Didier Pallard Add mk/rte.shared.mk and mk/rte.extshared.mk in framework to allow shared libraries compilation through framework Acked-by: Ivan Boule Signed-off-by: Didier Pallard --- mk/rte.extshared.mk | 54 +++ mk/rte.shared.mk| 141 +

[dpdk-dev] [PATCH 03/22] mk: fix verbose display of install command

2013-03-20 Thread Thomas Monjalon
From: Didier Pallard Correctly display executed install command in rte.install-post.mk install rules Acked-by: Ivan Boule Signed-off-by: Didier Pallard --- mk/internal/rte.install-post.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mk/internal/rte.install-post.

[dpdk-dev] [PATCH 02/22] mk: fix typo in LDFLAGS for 32-bit

2013-03-20 Thread Thomas Monjalon
From: Thierry Herbelot Enable compilation for 32-bit architecture. Acked-by: Ivan Boule Signed-off-by: Thierry Herbelot --- mk/arch/i686/rte.vars.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mk/arch/i686/rte.vars.mk b/mk/arch/i686/rte.vars.mk index 6f8e474..d6a

[dpdk-dev] [PATCH 01/22] mk: use $CC to detect toolchain version

2013-03-20 Thread Thomas Monjalon
From: Samuel Gauthier Using gcc is wrong, we should use the cross gcc to detect the version of gcc. Acked-by: Thomas Monjalon Signed-off-by: Samuel Gauthier --- mk/toolchain/gcc/rte.toolchain-compat.mk |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/toolchain/gc

[dpdk-dev] [PATCH 00/22] upgrade with 6WIND's enhancements

2013-03-20 Thread Thomas Monjalon
Here are some patches which were not integrated by Intel in their 1.2.3 version. --- Adrien Mazarguil (3): lib: fix non-C99 macros definitions in exported headers pci: reference driver structure for each device pci: allow drivers to be bound several times to the same PCI device Damien Mill