[dpdk-dev] [PATCH v2 11/11] doc: update hash documentation

2015-06-25 Thread Pablo de Lara
Updates hash library documentation, reflecting the new implementation changes. Signed-off-by: Pablo de Lara --- doc/guides/prog_guide/hash_lib.rst | 77 +++--- 1 file changed, 64 insertions(+), 13 deletions(-) diff --git a/doc/guides/prog_guide/hash_lib.rst b/do

[dpdk-dev] [PATCH v2 10/11] doc: announce ABI change of librte_hash

2015-06-25 Thread Pablo de Lara
rte_hash structure is now private for version 2.1, and two of the macros in rte_hash.h are now deprecated, so this patch adds notice of these changes. Signed-off-by: Pablo de Lara --- doc/guides/rel_notes/abi.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/rel_notes/abi.rst

[dpdk-dev] [PATCH v2 09/11] MAINTAINERS: claim responsability for hash library

2015-06-25 Thread Pablo de Lara
Signed-off-by: Pablo de Lara --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 54f0973..a536992 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -339,6 +339,7 @@ F: doc/guides/sample_app_ug/l3_forward_access_ctrl.rst Hashes M: Bruce Richardson +M

[dpdk-dev] [PATCH v2 08/11] hash: add new functionality to store data in hash table

2015-06-25 Thread Pablo de Lara
Usually hash tables not only store keys, but also data associated to them. In order to maintain the existing API, the key index will still be returned when adding/looking up/deleting an entry, but user will be able to store/look up data associated to a key. Signed-off-by: Pablo de Lara --- lib/l

[dpdk-dev] [PATCH v2 07/11] hash: add new function rte_hash_reset

2015-06-25 Thread Pablo de Lara
Added reset function to be able to empty the table, without having to destroy and create it again. Signed-off-by: Pablo de Lara --- app/test/test_hash.c | 3 +-- app/test/test_hash_perf.c| 11 +++ lib/librte_hash/rte_cuckoo_hash.c| 21

[dpdk-dev] [PATCH v2 06/11] hash: add new lookup_bulk_with_hash function

2015-06-25 Thread Pablo de Lara
Previous implementation was lacking a function to look up a burst of entries, given precalculated hash values. This patch implements such function, quite useful for looking up keys from packets that have precalculated hash values from a 5-tuple key. Added the function in the hash unit test as well

[dpdk-dev] [PATCH v2 05/11] hash: replace existing hash library with cuckoo hash implementation

2015-06-25 Thread Pablo de Lara
This patch replaces the existing hash library with another approach, using the Cuckoo Hash method to resolve collisions (open addressing), which pushes items from a full bucket when a new entry tries to be added in it, storing the evicted entry in an alternative location, using a secondary hash fun

[dpdk-dev] [PATCH v2 04/11] test/hash: rename new hash perf unit test back to original name

2015-06-25 Thread Pablo de Lara
To be able to see the diff more clear, new performance unit test was named differently from the old unit test. This patch renames the new unit test as the old one. Signed-off-by: Pablo de Lara --- app/test/Makefile | 2 +- app/test/test_hash_perf.c | 553 +++

[dpdk-dev] [PATCH v2 03/11] test/hash: enhance hash unit tests

2015-06-25 Thread Pablo de Lara
Add new unit test for calculating the average table utilization, using random keys, based on number of entries that can be added until we encounter one that cannot be added (bucket if full) Also, replace current hash_perf unit test to see performance more clear. The current hash_perf unit test tak

[dpdk-dev] [PATCH v2 02/11] hash: move rte_hash structure to C file and make it internal

2015-06-25 Thread Pablo de Lara
rte_hash structure should not be a public structure, and therefore it should be moved to the C file and be declared as internal. This patch also removes part of a unit test that was checking a field of the structure. Signed-off-by: Pablo de Lara --- app/test/test_hash.c | 6 +- lib/l

[dpdk-dev] [PATCH v2 01/11] eal: add const in prefetch functions

2015-06-25 Thread Pablo de Lara
rte_prefetchX functions included volatile void *p as parameter, but the function does not modify it, so it should include the const keyword. Signed-off-by: Pablo de Lara Acked-by: Bruce Richardson --- lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h | 6 +++--- lib/librte_eal/common/in

[dpdk-dev] [PATCH v2 00/11] Cuckoo hash

2015-06-25 Thread Pablo de Lara
This patchset is to replace the existing hash library with a more efficient and functional approach, using the Cuckoo hash method to deal with collisions. This method is based on using two different hash functions to have two possible locations in the hash table where an entry can be. So, if a buck

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Avi Kivity
On 06/25/2015 09:44 PM, Thomas Monjalon wrote: > 2015-06-25 18:46, Avi Kivity: >> On 06/25/2015 06:18 PM, Matthew Hall wrote: >>> On Thu, Jun 25, 2015 at 09:14:53AM +, Vass, Sandor (Nokia - >>> HU/Budapest) wrote: According to my understanding each packet should go through BR as fast

[dpdk-dev] 取消

2015-06-25 Thread zhhxu2011

[dpdk-dev] [PATCH 0/2] kni: fix build with kernel 4.1

2015-06-25 Thread De Lara Guarch, Pablo
Hi Miguel, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Miguel Bernal > Marin > Sent: Thursday, June 25, 2015 8:10 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 0/2] kni: fix build with kernel 4.1 > > Due to API changes in netdevice.h in 4.1 kerne

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Vass, Sandor (Nokia - HU/Budapest)
It seems I have found the cause, but I still don't understand the reason. So, let me describe my setup a bit further. I installed the VMWare Workstation onto my laptop. It has a mobile i5 CPU: 2 cores with hyperthreading, so basically 4 cores. In VMWare I assigned to C1 and C2 nodes 1 CPU and one

[dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access device info

2015-06-25 Thread Wang, Liang-min
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Thursday, June 25, 2015 9:44 AM > To: Wang, Liang-min > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access > device info > > On Wed, 17 Jun 2015 18:2

[dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access device info

2015-06-25 Thread Wang, Liang-min
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Thursday, June 25, 2015 9:40 AM > To: Wang, Liang-min > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access > device info > > On Wed, 17 Jun 2015 18:2

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Patel, Rashmin N
For tuning ESXi and vSwitch for latency sensitive workloads, I remember the following paper published by VMware: https://www.vmware.com/files/pdf/techpaper/VMW-Tuning-Latency-Sensitive-Workloads.pdf that you can try out. The overall latency in setup (vmware and dpdk-vm using vmxnet3) remains in

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Thomas Monjalon
2015-06-25 18:46, Avi Kivity: > On 06/25/2015 06:18 PM, Matthew Hall wrote: > > On Thu, Jun 25, 2015 at 09:14:53AM +, Vass, Sandor (Nokia - > > HU/Budapest) wrote: > >> According to my understanding each packet should go > >> through BR as fast as possible, but it seems that the rte_eth_rx_bur

[dpdk-dev] [PATCH] mempool: improbe cache search

2015-06-25 Thread Zoltan Kiss
The current way has a few problems: - if cache->len < n, we copy our elements into the cache first, then into obj_table, that's unnecessary - if n >= cache_size (or the backfill fails), and we can't fulfil the request from the ring alone, we don't try to combine with the cache - if refill fail

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Avi Kivity
On 06/25/2015 06:18 PM, Matthew Hall wrote: > On Thu, Jun 25, 2015 at 09:14:53AM +, Vass, Sandor (Nokia - HU/Budapest) > wrote: >> According to my understanding each packet should go >> through BR as fast as possible, but it seems that the rte_eth_rx_burst >> retrieves packets only when ther

[dpdk-dev] [PATCH] librte_ether: release memory in uninit function.

2015-06-25 Thread Ananyev, Konstantin
Hi Bernard, > -Original Message- > From: Iremonger, Bernard > Sent: Thursday, June 25, 2015 3:30 PM > To: dev at dpdk.org > Cc: Zhang, Helin; Ananyev, Konstantin; Qiu, Michael; mukawa at igel.co.jp; > Iremonger, Bernard > Subject: [PATCH] librte_ether: release memory in uninit function. >

[dpdk-dev] [PATCH] examples/tep_termination: Add a compilation option for the VXLAN sample

2015-06-25 Thread Jijiang Liu
Add a compilation option for the VXLAN sample. Signed-off-by: Jijiang Liu --- examples/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 081b768..b4eddbd 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -67,7 +

[dpdk-dev] [PATCH] vfio-pci: Fixing type used to unsigned long

2015-06-25 Thread Alejandro.Lucero
From: "Alejandro.Lucero" VFIO kernel driver and mmap system call expect offset and size being 64 bits. Due to this bug BAR index info given to the VFIO driver is always 0 when checking validity of resources mapping. --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c |2 +- 1 file changed, 1 in

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Matthew Hall
On Thu, Jun 25, 2015 at 09:13:59PM +, Vass, Sandor (Nokia - HU/Budapest) wrote: > Can anyone tell me the reason of this behavior? Using CPU 1 there are huge > latencies, using other CPUs everything work as expected... One possible guess what could be related. Normally DPDK uses "Core #0" as

[dpdk-dev] [PATCH] librte_ether: release memory in uninit function.

2015-06-25 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index e13fde5..2404556 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ethe

[dpdk-dev] [PATCHv2 2/2] ABI: Add some documentation

2015-06-25 Thread Thomas Monjalon
2015-06-25 07:35, Neil Horman: > On Wed, Jun 24, 2015 at 11:09:29PM +0200, Thomas Monjalon wrote: > > 2015-06-24 14:34, Neil Horman: > > > +Some ABI changes may be too significant to reasonably maintain multiple > > > +versions. In those cases ABI's may be updated without backward > > > compatibil

[dpdk-dev] [PATCH v4 9/9] doc: update malloc documentation

2015-06-25 Thread Sergio Gonzalez Monroy
Update malloc documentation to reflect new implementation details. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/env_abstraction_layer.rst | 220 +- doc/guides/prog_guide/img/malloc_heap.png | Bin 81329 -> 80952 bytes doc/guides/prog_guide/index.rst

[dpdk-dev] [PATCH v4 8/9] doc: announce ABI change of librte_malloc

2015-06-25 Thread Sergio Gonzalez Monroy
Announce the creation of dummy malloc library for 2.1 and removal of such library, now integrated in librte_eal, for 2.2 release. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/r

[dpdk-dev] [PATCH v4 7/9] app/test: update unit test with rte_memzone_free

2015-06-25 Thread Sergio Gonzalez Monroy
Update memzone unit test for the new rte_memzone_free API. Signed-off-by: Sergio Gonzalez Monroy --- app/test/test_memzone.c | 53 + 1 file changed, 53 insertions(+) diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 6934eee..501

[dpdk-dev] [PATCH v4 6/9] eal: new rte_memzone_free

2015-06-25 Thread Sergio Gonzalez Monroy
Implement rte_memzone_free which, as its name implies, would free a memzone. Currently memzone are tracked in an array and cannot be free. To be able to reuse the same array to track memzones, we have to change how we keep track of reserved memzones. With this patch, any memzone with addr NULL is

[dpdk-dev] [PATCH v4 5/9] eal: remove free_memseg and references to it

2015-06-25 Thread Sergio Gonzalez Monroy
Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_eal/common/include/rte_eal_memconfig.h | 3 --- lib/librte_eal/linuxapp/eal/eal_ivshmem

[dpdk-dev] [PATCH v4 4/9] config: remove CONFIG_RTE_MALLOC_MEMZONE_SIZE

2015-06-25 Thread Sergio Gonzalez Monroy
During initializaio malloc sets all available memory as part of the heaps. CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory block size to expand the heap. The option is not used/relevant anymore, so we remove it. Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdap

[dpdk-dev] [PATCH v4 3/9] app/test: update malloc/memzone unit tests

2015-06-25 Thread Sergio Gonzalez Monroy
Some unit test are not relevant anymore. It is the case of those malloc UTs that checked corner cases when allocating MALLOC_MEMZONE_SIZE chunks, and the case of those memzone UTs relaying of specific free memsegs of rhte reserved memzone. Other UTs just need to be update, for example, to calculat

[dpdk-dev] [PATCH v4 2/9] eal: memzone allocated by malloc

2015-06-25 Thread Sergio Gonzalez Monroy
In the current memory hierarchy, memsegs are groups of physically contiguous hugepages, memzones are slices of memsegs and malloc further slices memzones into smaller memory chunks. This patch modifies malloc so it partitions memsegs instead of memzones. Thus memzones would call malloc internally

[dpdk-dev] [PATCH v4 1/9] eal: move librte_malloc to eal/common

2015-06-25 Thread Sergio Gonzalez Monroy
Move malloc inside eal. Create a dummy malloc library to avoid breaking applications that have librte_malloc in their DT_NEEDED entries. This is the first step towards using malloc to allocate memory directly from memsegs. Thus, memzones would allocate memory through malloc, allowing to free memz

[dpdk-dev] [PATCH v4 0/9] Dynamic memzone

2015-06-25 Thread Sergio Gonzalez Monroy
Current implemetation allows reserving/creating memzones but not the opposite (unreserve/free). This affects mempools and other memzone based objects. >From my point of view, implementing free functionality for memzones would look like malloc over memsegs. Thus, this approach moves malloc inside e

[dpdk-dev] [PATCH 2/2] kni: fix header_ops to build with 4.1

2015-06-25 Thread Miguel Bernal Marin
rebuild member was removed from headers_ops in kernel release 4.1. Therefore kni module compilation breaks. This patch add the properly checks to fix it. Fixes: d476059e77d1 ("net: Kill dev_rebuild_header") Signed-off-by: Miguel Bernal Marin --- lib/librte_eal/linuxapp/kni/kni_net.c | 4

[dpdk-dev] [PATCH 1/2] kni: fix igb_ndo_bridge_getlink to build with 4.1

2015-06-25 Thread Miguel Bernal Marin
ndo_bridge_getlink has changed in kernel release 4.1. It adds new parameter which brakes compilation. This patch add the properly checks to fix it. Fixes: 46c264d5 ("bridge/nl: remove wrong use of NLM_F_MULTI") Signed-off-by: Miguel Bernal Marin --- lib/librte_eal/linuxapp/kni/ethtool/igb/

[dpdk-dev] [PATCH 0/2] kni: fix build with kernel 4.1

2015-06-25 Thread Miguel Bernal Marin
Due to API changes in netdevice.h in 4.1 kernel release, KNI modules would not build. This patch set adds the properly checks to fix compilation. Miguel Bernal Marin (2): kni: fix igb_ndo_bridge_getlink in 4.1 kni: fix header_ops in 4.1 lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | 1

[dpdk-dev] [PATCH v3 2/2] vhost: realloc vhost device and queues to the same numa node of vring desc table

2015-06-25 Thread Huawei Xie
When we get the address of vring descriptor table in VHOST_SET_VRING_ADDR message, will try to reallocate vhost device and virt queue to the same numa node. v3 changes: - remove unnecessary rte_free of new_vq and new_ll_dev v2 changes: - fix uninitialised new_vq and new_ll_device - fix missed e

[dpdk-dev] [PATCH v3 1/2] vhost: use rte_malloc to allocate device and queues

2015-06-25 Thread Huawei Xie
use rte_malloc to allocate vhost device and queues Signed-off-by: Huawei Xie --- lib/librte_vhost/virtio-net.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 4672e67..19b74d6 100644 ---

[dpdk-dev] [PATCH v3 0/2] vhost: numa aware allocation of vhost device and queues

2015-06-25 Thread Huawei Xie
The vhost device and queues should be allocated on the same numa node as vring descriptor table. When we firstly allocate the vhost device and queues, we don't know the numa node of vring descriptor table. When we receive the VHOST_SET_VRING_ADDR message, we get the numa node of vring descriptor

[dpdk-dev] KNI performance numbers...

2015-06-25 Thread Maciej Grochowski
I meet similar issue with KNI connected VM, but In my case I run 2 VM guests based on KNI and measure network performance between them: sesion: ### I just started demo with kni ./build/kni -c 0xf0 -n 4 -- -P -p 0x3 --config="(0,4,6,8),(1,5,7,9)" ###starting... ###set kni on vEthX to connect (a

[dpdk-dev] [PATCH v2 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-06-25 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica --- exampl

[dpdk-dev] [PATCH v2 10/11] ip_pipeline: added new implementation of routing pipeline

2015-06-25 Thread Maciej Gajdzica
From: Pawel Wodkowski Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeli

[dpdk-dev] [PATCH v2 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-06-25 Thread Maciej Gajdzica
From: Daniel Mrzyglod Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pip

[dpdk-dev] [PATCH v2 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-06-25 Thread Maciej Gajdzica
From: Jasvinder Singh Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- exampl

[dpdk-dev] [PATCH v2 07/11] ip_pipeline: moved config files to separate folder

2015-06-25 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 ++ examples/ip_pipeline/config/ip_pipeline.sh |5 + examples/ip_pipeline/config/test.cfg| 164 +++ examples/ip_p

[dpdk-dev] [PATCH v2 06/11] ip_pipeline: added application thread

2015-06-25 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 105 + 3 files changed, 112 insertions(+) create mod

[dpdk-dev] [PATCH v2 05/11] ip_pipeline: added master pipeline

2015-06-25 Thread Maciej Gajdzica
From: Jasvinder Singh Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefi

[dpdk-dev] [PATCH v2 04/11] ip_pipeline: moved pipelines to separate folder

2015-06-25 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_common_be.c | 204 examples/ip_pipeline/pipel

[dpdk-dev] [PATCH v2 03/11] ip_pipeline: modified init to match new params struct

2015-06-25 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/init.c | 1550 + examples/ip_pipeline/ma

[dpdk-dev] [PATCH v2 02/11] ip_pipeline: added config checks

2015-06-25 Thread Maciej Gajdzica
From: Jasvinder Singh After loading configuration from a file, data integrity is checked. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_check.c | 387 +++ examples/ip_pipeline/main.c |2

[dpdk-dev] [PATCH v2 01/11] ip_pipeline: add parsing for config files with new syntax

2015-06-25 Thread Maciej Gajdzica
From: Pawel Wodkowski New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 17 +- examples/ip_pipeline/app

[dpdk-dev] [PATCH v2 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-25 Thread Maciej Gajdzica
This patchset enhances functionality of ip_pipeline application. New config file syntax is introduced, so parser is changed. Changed structure of the application. Now every global variable is stored in app_struct in app.h. Syntax of pipeline cli commands was changed. Implementation of cli commands

[dpdk-dev] [PATCH] ethdev: fix checking for tx_free_thresh

2015-06-25 Thread Ananyev, Konstantin
> -Original Message- > From: Zoltan Kiss [mailto:zoltan.kiss at linaro.org] > Sent: Tuesday, June 23, 2015 7:43 PM > To: dev at dpdk.org > Cc: Zoltan Kiss; Ananyev, Konstantin > Subject: [PATCH] ethdev: fix checking for tx_free_thresh > > This parameter is not consistent between the driv

[dpdk-dev] [PATCH v5 5/5] eal: Fix uio mapping differences between linuxapp and bsdapp

2015-06-25 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch fixes below. - bsdapp - Use map_id in pci_uio_map_resource(). - Fix interface of pci_map_resource(). - Move path variable of mapped_pci_resource structure to pci_map. - linuxapp - Remove redundant error message of linuxapp. 'pci_uio_map_resource()' is implem

[dpdk-dev] [PATCH v5 4/5] eal/bsdapp: Change names of pci related data structure

2015-06-25 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" To merge pci code of linuxapp and bsdapp, this patch changes names like below. - uio_map to pci_map - uio_resource to mapped_pci_resource - uio_res_list to mapped_pci_res_list Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_pci.c | 24 -

[dpdk-dev] [PATCH v5 3/5] eal: Fix memory leaks and needless increment of pci_map_addr

2015-06-25 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch fixes following memory leaks. - When open() is failed, uio_res and fds won't be freed in pci_uio_map_resource(). - When pci_map_resource() is failed but path is allocated correctly, path and fds won't be freed in pci_uio_map_recource(). - When pci_uio_unmap()

[dpdk-dev] [PATCH v5 2/5] eal: Close file descriptor of uio configuration

2015-06-25 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" When pci_uio_unmap_resource() is called, a file descriptor that is used for uio configuration should be closed. Signed-off-by: Tetsuya Mukawa Acked-by: Stephen Hemminger --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 6 +- 1 file changed, 5 insertions(+), 1 deletio

[dpdk-dev] [PATCH v5 1/5] eal: Fix coding style of eal_pci.c and eal_pci_uio.c

2015-06-25 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch fixes coding style of below files in linuxapp and bsdapp. - eal_pci.c - eal_pci_uio.c Signed-off-by: Tetsuya Mukawa Acked-by: Stephen Hemminger --- lib/librte_eal/bsdapp/eal/eal_pci.c | 12 +++- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 12 +

[dpdk-dev] [PATCH v5 0/5] Clean up pci uio implementations

2015-06-25 Thread Tetsuya Mukawa
This patch set cleans up pci uio implementation. These clean up are for consolidating pci uio implementation of linuxapp and bsdapp, and moving consolidated functions in eal common. Because of above, this patch set tries to implement linuxapp and bsdapp almost same. Actual consolidations will be do

[dpdk-dev] [PATCH v2 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-25 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Thursday, June 25, 2015 12:15 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 00/11] ip_pipeline: ip_pipeline application > enhancements > > This patchset enhances functionalit

[dpdk-dev] Packets lost

2015-06-25 Thread Daeyoung Kim
Hi all, I'm making a packet capture program from the l3fwd. When I send DNS packets, the wireshark simultaneously gets all the packets on two ports. However, using my program on promiscuous mode, I can see the packets on only one port. Do you have any idea of that? Could you give me advice? Thank

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Matthew Hall
On Thu, Jun 25, 2015 at 08:44:51PM +0200, Thomas Monjalon wrote: > DPDK is not a stack. Hi Thomas, Don't worry too much about that challenge. When I get my app feature complete, I think we can change that. Same for Avi and they server frameworks they are making at Cloudius. ;) Matthew.

[dpdk-dev] Can't compile examples

2015-06-25 Thread Thomas Monjalon
2015-06-25 08:39, Liu, Jijiang: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2015-06-25 11:31, Tetsuya Mukawa: > > > Hi Jijiang, > > > > > > It seems below patch introduces compile error of examples. > > > - a50245e examples/tep_term: initialize VXLAN sample > > > > > > Here i

[dpdk-dev] [PATCH v5] ixgbe: changes to support PCI Port Hotplug

2015-06-25 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bernard Iremonger > Sent: Wednesday, June 24, 2015 4:09 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v5] ixgbe: changes to support PCI Port Hotplug > > This patch depends on the Port Hotplug Framework

[dpdk-dev] [PATCH] examples/tep_termination: Add a compilation option for the VXLAN sample

2015-06-25 Thread Thomas Monjalon
2015-06-25 16:56, Jijiang Liu: > Add a compilation option for the VXLAN sample. > > Signed-off-by: Jijiang Liu Applied, thanks

[dpdk-dev] Can't compile examples

2015-06-25 Thread Tetsuya Mukawa
Hi Jijiang, It seems below patch introduces compile error of examples. - a50245e examples/tep_term: initialize VXLAN sample Here is log. Could you please check it? $ T=x86_64-native-linuxapp-gcc make examples -j12 == Build examples for x86_64-native-linuxapp-gcc == cmdline == di

[dpdk-dev] [PATCH 2/2] ixgbe: add memory barriers in vector rx/tx

2015-06-25 Thread Eric Kinzie
Add write memory barrier before writing tail pointer. Fixes c95584dc2b18 ("ixgbe: new vectorized functions for Rx/Tx") Signed-off-by: Eric Kinzie --- drivers/net/ixgbe/ixgbe_rxtx_vec.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec.c b/drivers/net/ix

[dpdk-dev] [PATCH 1/2] ixgbe: vector rx rearm after queue reset

2015-06-25 Thread Eric Kinzie
zero values in ixgbe_reset_rx_queue() used by vector receive so that rearming the rx queue happens at the right time. Not doing so can in some cases result in the software inadvertently setting the card's rx tail pointer equal to the head pointer, which indicates that there are no descriptors avai

[dpdk-dev] [PATCH 0/2] ixgbe vector rx/tx changes

2015-06-25 Thread Eric Kinzie
Clear values specific to ixgbe vector RX during queue reset. I've also include a patch that adds a memory barrier before writing the rx/tx tail pointer registers in ixgbe_rxtx_vec.c. The non-vector code has such barriers which looks right to me. Comments? Eric Kinzie (2): ixgbe: vector rx rea

[dpdk-dev] [PATCH v5 4/5] eal/bsdapp: Change names of pci related data structure

2015-06-25 Thread David Marchand
On Thu, Jun 25, 2015 at 5:19 AM, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > To merge pci code of linuxapp and bsdapp, this patch changes names > like below. > - uio_map to pci_map > - uio_resource to mapped_pci_resource > - uio_res_list to mapped_pci_res_list > > Signed-off-by: Tetsuy

[dpdk-dev] [PATCH v5 3/5] eal: Fix memory leaks and needless increment of pci_map_addr

2015-06-25 Thread David Marchand
On Thu, Jun 25, 2015 at 5:19 AM, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch fixes following memory leaks. > - When open() is failed, uio_res and fds won't be freed in > pci_uio_map_resource(). > - When pci_map_resource() is failed but path is allocated correctly, > path an

[dpdk-dev] [PATCH v5 1/5] eal: Fix coding style of eal_pci.c and eal_pci_uio.c

2015-06-25 Thread David Marchand
On Thu, Jun 25, 2015 at 5:19 AM, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch fixes coding style of below files in linuxapp and bsdapp. > - eal_pci.c > - eal_pci_uio.c > > Signed-off-by: Tetsuya Mukawa > Acked-by: Stephen Hemminger > Acked-by: David Marchand -- David Ma

[dpdk-dev] [PATCH v5 3/5] eal: Fix memory leaks and needless increment of pci_map_addr

2015-06-25 Thread David Marchand
Hello Tetsuya, On Thu, Jun 25, 2015 at 5:19 AM, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch fixes following memory leaks. > - When open() is failed, uio_res and fds won't be freed in > pci_uio_map_resource(). > - When pci_map_resource() is failed but path is allocated corre

[dpdk-dev] [PATCH] doc/sample_app_ug:add a VXLAN sample guide

2015-06-25 Thread Jijiang Liu
Add a VXLAN sample guide in the sample_app_ug directory. It includes: - Add the overlay networking picture with svg format. - Add the TEP termination framework picture with svg format. - Add the tep_termination.rst file - Change the index.rst file for the above pictures index.

[dpdk-dev] [PATCH] librte_ether: release memory in uninit function.

2015-06-25 Thread Stephen Hemminger
On Thu, 25 Jun 2015 15:30:28 +0100 Bernard Iremonger wrote: > Signed-off-by: Bernard Iremonger > --- > lib/librte_ether/rte_ethdev.c |8 +++- > 1 files changed, 7 insertions(+), 1 deletions(-) > > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > index e13fde

[dpdk-dev] [PATCHv3 3/3] ABI: Add some documentation

2015-06-25 Thread Neil Horman
People have been asking for ways to use the ABI macros, heres some docs to clarify their use. Included is: * An overview of what ABI is * Details of the ABI deprecation process * Details of the versioning macros * Examples of their use * Details of how to use the ABI validator Thanks to John Mcn

[dpdk-dev] [PATCHv3 2/3] rte_compat: Add MAP_STATIC_SYMBOL macro

2015-06-25 Thread Neil Horman
It was pointed out in my examples that doing shared library symbol versioning by partitioning symbols to version specific functions (as opposed to leaving the latest symol version at the base symbol name), neglects to take into account static builds. Add a macro to handle that. If you choose a ve

[dpdk-dev] [PATCHv3 1/3] rte_compat.h : Clean up some typos

2015-06-25 Thread Neil Horman
Clean up some macro definition typos and comments Signed-off-by: Neil Horman CC: thomas.monjalon at 6wind.com --- lib/librte_compat/rte_compat.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h inde

[dpdk-dev] Can't compile examples

2015-06-25 Thread Thomas Monjalon
2015-06-25 11:31, Tetsuya Mukawa: > Hi Jijiang, > > It seems below patch introduces compile error of examples. > - a50245e examples/tep_term: initialize VXLAN sample > > Here is log. > Could you please check it? > [...] > /home/mukawa/work/dpdk.org/dpdk/examples/tep_termination/main.c:52:28: >

[dpdk-dev] Regarding usage of vmxnet3 PMD with DPDK2.0

2015-06-25 Thread Puneet Singh
I am migrating from using DPDK1.6r2 and the external vmxnet3 user map driver to DPDK2.0. I believe with DPDK2.0, the vmxnet3 PMD is builtin and I don?t need to use the external driver. I have been able to build the DPDK2.0 and I see that CONFIG_RTE_LIBRTE_VMXNET3_PMD is set to y in the config. Que

[dpdk-dev] [PATCH v7 2/4] ixgbe: add ops to support ethtool ops

2015-06-25 Thread Stephen Hemminger
On Wed, 17 Jun 2015 18:22:13 -0400 Liang-Min Larry Wang wrote: > + > +static reg_info ixgbe_regs_general[] = { > + {IXGBE_CTRL, 1, 1, "IXGBE_CTRL"}, > + {IXGBE_STATUS, 1, 1, "IXGBE_STATUS"}, > + {IXGBE_CTRL_EXT, 1, 1, "IXGBE_CTRL_EXT"}, > + {IXGBE_ESDP, 1, 1, "IXGBE_ESDP"}, > +

[dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access device info

2015-06-25 Thread Stephen Hemminger
On Wed, 17 Jun 2015 18:22:12 -0400 Liang-Min Larry Wang wrote: > +int > +rte_eth_dev_reg_length(uint8_t port_id) > +{ > + struct rte_eth_dev *dev; > + > + if ((dev= &rte_eth_devices[port_id]) == NULL) { > + PMD_DEBUG_TRACE("Invalid port device\n"); > + return -ENOD

[dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access device info

2015-06-25 Thread Stephen Hemminger
On Wed, 17 Jun 2015 18:22:12 -0400 Liang-Min Larry Wang wrote: > int > +rte_eth_dev_default_mac_addr_set(uint8_t port_id, struct ether_addr *addr) > +{ > + struct rte_eth_dev *dev; > + > + if (!rte_eth_dev_is_valid_port(port_id)) { > + PMD_DEBUG_TRACE("Invalid port_id=%d\n",

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Matthew Hall
On Thu, Jun 25, 2015 at 06:46:30PM +0300, Avi Kivity wrote: > What would be useful is a runtime switch between polling and interrupt > modes. This was if the load is load you use interrupts, and as mitigation, > you switch to poll mode, until the load drops again. Yes... I believe this is part of

[dpdk-dev] [PATCH 0/8] Dynamic RSS Configuration for Bonding

2015-06-25 Thread Kulasek, TomaszX
There's a bug in bonding itself, which prevents the bonding, made of Fortville NICs, start and is not related to Dynamic RSS Configuration. This problem solves separate patch "bond: fix check initial link status of slave". -Original Message- From: Xu, HuilongX Sent: Friday, June 12, 2

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Vass, Sandor (Nokia - HU/Budapest)
Hello, I would like to create an IP packet processor program and I choose to use DPDK because it is promising wrt its speed aspect. I am trying to build a test environment to make the development a cheaper (not to buy HW for each developer), so I created a test setup in - VMWare Workstation 11 -

[dpdk-dev] [PATCH v6] e1000: igb and em1000 PCI Port Hotplug changes

2015-06-25 Thread Iremonger, Bernard
> -Original Message- > From: Zhang, Helin > Sent: Thursday, June 25, 2015 3:34 AM > To: Iremonger, Bernard; dev at dpdk.org > Subject: RE: [PATCH v6] e1000: igb and em1000 PCI Port Hotplug changes > > Hi Bernard > > > -Original Message- > > From: Iremonger, Bernard > > Sent: Mond

[dpdk-dev] [PATCHv2 2/2] ABI: Add some documentation

2015-06-25 Thread Gonzalez Monroy, Sergio
On 25/06/2015 08:42, Gonzalez Monroy, Sergio wrote: > On 25/06/2015 08:19, Zhang, Helin wrote: >> >>> -Original Message- >>> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman >>> Sent: Thursday, June 25, 2015 2:35 AM >>> To: dev at dpdk.org >>> Subject: [dpdk-dev] [PATCHv2

[dpdk-dev] [PATCHv2 2/2] ABI: Add some documentation

2015-06-25 Thread Gonzalez Monroy, Sergio
On 25/06/2015 08:19, Zhang, Helin wrote: > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman >> Sent: Thursday, June 25, 2015 2:35 AM >> To: dev at dpdk.org >> Subject: [dpdk-dev] [PATCHv2 2/2] ABI: Add some documentation >> >> People have been ask

[dpdk-dev] Can't compile examples

2015-06-25 Thread Liu, Jijiang
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, June 25, 2015 4:27 PM > To: Liu, Jijiang > Cc: dev at dpdk.org; Tetsuya Mukawa > Subject: Re: [dpdk-dev] Can't compile examples > > 2015-06-25 11:31, Tetsuya Mukawa: > > Hi Jijiang, > > >

[dpdk-dev] [PATCH v3 2/7] mbuf: use the reserved 16 bits for double vlan

2015-06-25 Thread Zhang, Helin
Hi Neil > -Original Message- > From: Zhang, Helin > Sent: Thursday, June 11, 2015 3:04 PM > To: dev at dpdk.org > Cc: Cao, Min; Liu, Jijiang; Wu, Jingjing; Ananyev, Konstantin; Richardson, > Bruce; > olivier.matz at 6wind.com; Zhang, Helin > Subject: [PATCH v3 2/7] mbuf: use the reserved

[dpdk-dev] [PATCH 1/2] rte_compat.h : Clean up some typos

2015-06-25 Thread Neil Horman
On Thu, Jun 25, 2015 at 07:37:43AM +, Gajdzica, MaciejX T wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > > Sent: Tuesday, June 23, 2015 9:34 PM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH 1/2] rte_compat.h : Clean

[dpdk-dev] [PATCHv2 2/2] ABI: Add some documentation

2015-06-25 Thread Neil Horman
On Thu, Jun 25, 2015 at 07:19:49AM +, Zhang, Helin wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > > Sent: Thursday, June 25, 2015 2:35 AM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCHv2 2/2] ABI: Add some documentat

[dpdk-dev] VMXNET3 on vmware, ping delay

2015-06-25 Thread Matthew Hall
On Thu, Jun 25, 2015 at 09:14:53AM +, Vass, Sandor (Nokia - HU/Budapest) wrote: > According to my understanding each packet should go > through BR as fast as possible, but it seems that the rte_eth_rx_burst > retrieves packets only when there are at least 2 packets on the RX queue of > the

[dpdk-dev] [PATCH 1/2] rte_compat.h : Clean up some typos

2015-06-25 Thread Gajdzica, MaciejX T
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > Sent: Tuesday, June 23, 2015 9:34 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/2] rte_compat.h : Clean up some typos > > Clean up some macro definition typos and comments > > Signed-o

  1   2   >