[dpdk-dev] Vhost user no connection vm2vm

2015-05-22 Thread Maciej Grochowski
Thank You Andriy, You are right Below I put tested KVM configuration that put packets into vhost dpdk plane space: export TLBFS_DIR=/mnt/huge export UVH_PREFIX=/home/ubuntu/esi_ee/dpdk/examples/vhost/usvhost export VM1_MAC=00:01:04:00:01:00 kvm -cpu host -smp 2 -enable-kvm \ -drive

[dpdk-dev] [PATCH v2] app/testpmd: compute checksum in icmpecho replies

2015-05-22 Thread Adrien Mazarguil
ICMP echo replies with invalid checksums may be dropped by network nodes or ignored by the ping utility. Signed-off-by: Adrien Mazarguil Acked-by: Ivan Boule --- v2: - Compute correct checksum value by taking overflow into account. app/test-pmd/icmpecho.c | 11 +-- 1 file changed, 9

[dpdk-dev] Vhost user no connection vm2vm

2015-05-22 Thread Tetsuya Mukawa
Hi Maciej, I guess it's nice to make sure guest memory is actually allocated by hugepages. So please check like below. $ cat /sys/kernel/mm/hugepage/x/free_hugepages $ ./start_qemu.sh $ cat /sys/kernel/mm/hugepage/x/free_hugepages If qemu guest allocates memory from hugepages, 2nd cat

[dpdk-dev] [PATCH 5/5] maintainers: claim responsibility for cxgbe PMD.

2015-05-22 Thread Rahul Lakkireddy
Update MAINTAINERS file to claim responsibility for the cxgbe PMD. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0477e7d..37b7472 100644 --- a/MAINTAINERS

[dpdk-dev] [PATCH 4/5] config: enable cxgbe PMD for compilation and linking.

2015-05-22 Thread Rahul Lakkireddy
Changes to: 1. config/common_linuxapp to add macros for cxgbe pmd. 2. lib/Makefile to add cxgbe pmd to the compile list. 3. mk/rte.app.mk to add cxgbe pmd to link. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- config/common_linuxapp | 10 ++ lib/Makefile

[dpdk-dev] [PATCH 3/5] doc: add cxgbe PMD documentation under doc/guides/nics/cxgbe.rst

2015-05-22 Thread Rahul Lakkireddy
Adds cxgbe poll mode driver documentation under the usual doc/guides/nics/ directory with the rest of the drivers. The documentation covers cxgbe implementation details, features and limitations, prerequisites, configuration, and a sample application usage. Signed-off-by: Rahul Lakkireddy

[dpdk-dev] [PATCH 2/5] cxgbe: add cxgbe poll mode driver.

2015-05-22 Thread Rahul Lakkireddy
Adds cxgbe poll mode driver for DPDK under lib/librte_pmd_cxgbe directory. This patch: 1. Adds the Makefile to compile cxgbe pmd. 2. Registers and initializes the cxgbe pmd driver. 3. Implements the necessary eth_dev_ops. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi ---

[dpdk-dev] [PATCH 1/5] cxgbe: add hardware specific api for all supported Chelsio T5 series adapters.

2015-05-22 Thread Rahul Lakkireddy
Adds hardware specific api for all the Chelsio T5 adapters under lib/librte_pmd_cxgbe/cxgbe directory. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- lib/librte_pmd_cxgbe/cxgbe/adapter.h| 560 ++ lib/librte_pmd_cxgbe/cxgbe/common.h | 401

[dpdk-dev] [PATCH 0/5] Chelsio Terminator 5 (T5) 10G/40G Poll Mode Driver

2015-05-22 Thread Rahul Lakkireddy
This series of patches add the CXGBE Poll Mode Driver support for Chelsio Terminator 5 series of 10G/40G adapters. The CXGBE PMD is split into two patches. The first patch adds the hardware specific api for all supported Chelsio T5 adapters and the second patch adds the actual DPDK CXGBE PMD.

[dpdk-dev] [PATCH 3/3] ACL: remove subtree_id calculations at build stage

2015-05-22 Thread Konstantin Ananyev
As now subtree_id is not used acl_merge_trie() any more, there is no point to calculate and maintain that information. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl.h | 7 --- lib/librte_acl/acl_bld.c | 119 +-- 2 files changed, 12

[dpdk-dev] [PATCH 2/3] ACL: add new test case for ranges build

2015-05-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test/test_acl.c | 147 ++-- 1 file changed, 143 insertions(+), 4 deletions(-) diff --git a/app/test/test_acl.c b/app/test/test_acl.c index 7119ad3..6a032f9 100644 --- a/app/test/test_acl.c +++

[dpdk-dev] [PATCH 1/3] ACL: fix a problem in acl_merge_trie

2015-05-22 Thread Konstantin Ananyev
Reported by Zi Hu : "... cat test_data/rule1 @192.168.0.0/24 192.168.0.0/24 400 : 500 0 : 52 6/0xff @192.168.0.0/24 192.168.0.0/24 400 : 500 54 : 65280 6/0xff @192.168.0.0/24 192.168.0.0/24 400 : 500 0 : 65535 6/0xff cat test_data/trace1 0xc0a80005 0xc0a80009 450 53 0x06 I run the test by: sudo

[dpdk-dev] [PATCH 0/3] ACL: Fix bug in acl_merge_trie() and add a new test-case for it to the UT

2015-05-22 Thread Konstantin Ananyev
ACL: fix a problem in acl_merge_trie ACL: add new test case for ranges build ACL: remove subtree_id calculations at build stage app/test/test_acl.c | 147 +-- lib/librte_acl/acl.h | 7 --- lib/librte_acl/acl_bld.c | 121

[dpdk-dev] [PATCH v2 12/12] mk: introduce Tilera Tile architecture

2015-05-22 Thread Thomas Monjalon
Hi, 2015-01-06 14:53, Zhigang Lu: > Add defconfig and rte.vars.mk files for Tile architecture. > > Signed-off-by: Zhigang Lu > Signed-off-by: Cyril Chemparathy This series is pending without having any comments. So it should be accepted and merged. Do you accept to be the maintainer of Tile

[dpdk-dev] [PATCH v2 00/19] Move PMDs to drivers directory

2015-05-22 Thread Bruce Richardson
On Fri, May 22, 2015 at 04:09:45PM +0200, Thomas Monjalon wrote: > > Series Acked-by: John McNamara > > Acked-by: Thomas Monjalon > > Applied with the changes discussed in this thread. > Some patches were split/merge to make each driver move more atomic. > Thanks Thomas.

[dpdk-dev] [PATCH v5 18/18] mbuf: remove old packet type bit masks

2015-05-22 Thread Helin Zhang
As unified packet types are used instead, those old bit masks and the relevant macros for packet type indication need to be removed. Signed-off-by: Helin Zhang --- lib/librte_mbuf/rte_mbuf.c | 6 -- lib/librte_mbuf/rte_mbuf.h | 6 -- 2 files changed, 12 deletions(-) v2 changes: * Used

[dpdk-dev] [PATCH v5 17/18] examples/l3fwd: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- examples/l3fwd/main.c | 71 +-- 1 file changed, 40 insertions(+), 31 deletions(-) v2 changes: * Used

[dpdk-dev] [PATCH v5 16/18] examples/l3fwd-power: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- examples/l3fwd-power/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) v2 changes: * Used redefined packet types and enlarged

[dpdk-dev] [PATCH v5 15/18] examples/l3fwd-acl: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- examples/l3fwd-acl/main.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) v2 changes: * Used redefined packet types and

[dpdk-dev] [PATCH v5 14/18] examples/ip_reassembly: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- examples/ip_reassembly/main.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) v2 changes: * Used redefined packet types and enlarged

[dpdk-dev] [PATCH v5 13/18] examples/ip_fragmentation: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- examples/ip_fragmentation/main.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) v2 changes: * Used redefined packet types and enlarged

[dpdk-dev] [PATCH v5 12/18] app/test: Remove useless code

2015-05-22 Thread Helin Zhang
Severl useless code lines are added accidently, which blocks packet type unification. They should be deleted at all. Signed-off-by: Helin Zhang --- app/test/packet_burst_generator.c | 10 -- 1 file changed, 10 deletions(-) v4 changes: * Removed several useless code lines which block

[dpdk-dev] [PATCH v5 11/18] app/testpmd: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang Signed-off-by: Jijiang Liu --- app/test-pmd/csumonly.c | 10 +-- app/test-pmd/rxonly.c | 178 ++-- 2

[dpdk-dev] [PATCH v5 10/18] app/test-pipeline: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- app/test-pipeline/pipeline_hash.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) v2 changes: * Used redefined packet types and

[dpdk-dev] [PATCH v5 09/18] fm10k: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_fm10k/fm10k_rxtx.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) v4 changes: * Supported

[dpdk-dev] [PATCH v5 08/18] vmxnet3: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) v2 changes: * Used redefined packet types and

[dpdk-dev] [PATCH v5 07/18] enic: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_enic/enic_main.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) v2 changes: * Used redefined packet types and

[dpdk-dev] [PATCH v5 06/18] i40e: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_rxtx.c | 786 ++-- 1 file changed, 512 insertions(+), 274 deletions(-) v2 changes: *

[dpdk-dev] [PATCH v5 05/18] ixgbe: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet type among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Note that around 2.5% performance drop (64B) was observed of doing 4 ports (1 port per 82599 card) IO forwarding on the same SNB core. Signed-off-by: Helin Zhang ---

[dpdk-dev] [PATCH v5 04/18] e1000: replace bit mask based packet type with unified packet type

2015-05-22 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. Signed-off-by: Helin Zhang --- lib/librte_pmd_e1000/igb_rxtx.c | 98 ++--- 1 file changed, 83 insertions(+), 15 deletions(-) v2 changes: * Used

[dpdk-dev] [PATCH v5 03/18] mbuf: add definitions of unified packet types

2015-05-22 Thread Helin Zhang
As there are only 6 bit flags in ol_flags for indicating packet types, which is not enough to describe all the possible packet types hardware can recognize. For example, i40e hardware can recognize more than 150 packet types. Unified packet type is composed of L2 type, L3 type, L4 type, tunnel

[dpdk-dev] [PATCH v5 02/18] ixgbe: support unified packet type in vectorized PMD

2015-05-22 Thread Helin Zhang
To unify the packet type, bit masks of packet type for ol_flags are replaced. In addition, more packet types (UDP, TCP and SCTP) are supported in vectorized ixgbe PMD. Note that around 2% performance drop (64B) was observed of doing 4 ports (1 port per 82599 card) IO forwarding on the same SNB

[dpdk-dev] [PATCH v5 01/18] mbuf: redefine packet_type in rte_mbuf

2015-05-22 Thread Helin Zhang
In order to unify the packet type, the field of 'packet_type' in 'struct rte_mbuf' needs to be extended from 16 to 32 bits. Accordingly, some fields in 'struct rte_mbuf' are re-organized to support this change for Vector PMD. As 'struct rte_kni_mbuf' for KNI should be right mapped to 'struct

[dpdk-dev] [PATCH v5 00/18] unified packet type

2015-05-22 Thread Helin Zhang
Currently only 6 bits which are stored in ol_flags are used to indicate the packet types. This is not enough, as some NIC hardware can recognize quite a lot of packet types, e.g i40e hardware can recognize more than 150 packet types. Hiding those packet types hides hardware offload capabilities

[dpdk-dev] [PATCH] mlx4: fix compilation warnings for 32 bit

2015-05-22 Thread Nelio Laranjeiro
Fix warning messages "cast to pointer from integer of different size" when compiling DPDK in 32 bit with Mellanox PMD. SGE addresses are 64 bit integers, converting them to pointers must be done through uintptr_t to avoid compilation warnings when those have a different size. Signed-off-by:

[dpdk-dev] [PATCH v2 00/19] Move PMDs to drivers directory

2015-05-22 Thread Thomas Monjalon
> Series Acked-by: John McNamara Acked-by: Thomas Monjalon Applied with the changes discussed in this thread. Some patches were split/merge to make each driver move more atomic.

[dpdk-dev] [PATCH 2/2] app/testpmd: compute checksum in icmpecho replies

2015-05-22 Thread Adrien Mazarguil
On Fri, May 22, 2015 at 02:42:08PM +0200, Olivier MATZ wrote: > Hi Adrien, Hi Olivier, > On 05/22/2015 01:07 PM, Adrien Mazarguil wrote: > > ICMP echo replies with invalid checksums may be dropped by network nodes or > > ignored by the ping utility. > > > > Signed-off-by: Adrien Mazarguil > >

[dpdk-dev] DPDK LPM table thread safety

2015-05-22 Thread Bruce Richardson
On Thu, May 21, 2015 at 05:51:34PM +, Shyam Sundar Govindaraj wrote: > Hi > > I am interested in DPDK LPM implementation. I understand the high > performance of this LPM table but, when it comes to multithreaded > application, I read the following safety issue in DPDK documentation. I >

[dpdk-dev] [PATCH 2/2] app/testpmd: compute checksum in icmpecho replies

2015-05-22 Thread Olivier MATZ
Hi Adrien, On 05/22/2015 01:07 PM, Adrien Mazarguil wrote: > ICMP echo replies with invalid checksums may be dropped by network nodes or > ignored by the ping utility. > > Signed-off-by: Adrien Mazarguil > Acked-by: Ivan Boule > --- > app/test-pmd/icmpecho.c | 5 +++-- > 1 file changed, 3

[dpdk-dev] [PATCH v8 05/11] eal/linux: add interrupt vectors handling on VFIO

2015-05-22 Thread Stephen Hemminger
On Thu, 21 May 2015 16:55:57 +0800 Cunming Liang wrote: > This patch does below: > - Create VFIO eventfds for each interrupt vector (move to next) > - Assign per interrupt vector's eventfd to VFIO by ioctl > > Signed-off-by: Danny Zhou > Signed-off-by: Cunming Liang One non-trivial

[dpdk-dev] [PATCH 2/2] app/testpmd: compute checksum in icmpecho replies

2015-05-22 Thread Adrien Mazarguil
ICMP echo replies with invalid checksums may be dropped by network nodes or ignored by the ping utility. Signed-off-by: Adrien Mazarguil Acked-by: Ivan Boule --- app/test-pmd/icmpecho.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/icmpecho.c

[dpdk-dev] [PATCH 1/2] app/testpmd: use correct hardware address in ARP replies

2015-05-22 Thread Adrien Mazarguil
In the icmpecho forwarding mode, ARP replies from testpmd contain invalid zero-filled MAC addresses. This is broken since the commit below. Fixes: 31db4d38de72 ("net: change arp header struct declaration") Signed-off-by: Adrien Mazarguil Acked-by: Ivan Boule --- app/test-pmd/icmpecho.c | 2 +-

[dpdk-dev] Vhost user no connection vm2vm

2015-05-22 Thread Andriy Berestovskyy
Hi guys, I guess you just miss the qemu flag to map the memory as shared, i.e.: -object memory-backend-file,id=mem,size=1024M,mem-path=/mnt/huge,share=on (the keyword is share=on) Here is an example script:

[dpdk-dev] [PATCH v2 12/12] mk: introduce Tilera Tile architecture

2015-05-22 Thread Cyril Chemparathy
On Fri, 22 May 2015 18:03:04 +0200 Thomas Monjalon wrote: > Hi, > > 2015-01-06 14:53, Zhigang Lu: > > Add defconfig and rte.vars.mk files for Tile architecture. > > > > Signed-off-by: Zhigang Lu > > Signed-off-by: Cyril Chemparathy > > This series is pending without having any comments. >

[dpdk-dev] Vhost user no connection vm2vm

2015-05-22 Thread Maciej Grochowski
I checked this, results below #before script: root@# cat /sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages 494 #after 1 qemu script root@# cat /sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages 366 So qemu consume 262144k~262MB that is correct with script On Fri, May 22, 2015 at

[dpdk-dev] Vhost user no connection vm2vm

2015-05-22 Thread Maciej Grochowski
"Do you use some command I suggest before, In case of you miss the previous mail, just copy it again:" -Yes but it didn't help me ;/ I will describe step by step to esure that configuration is made by right way I started vhost: ./build/app/vhost-switch -c f -n 4 --huge-dir /mnt/huge

[dpdk-dev] FW: Vhost user no connection vm2vm

2015-05-22 Thread Luke Gorrie
On 22 May 2015 at 10:05, Maciej Grochowski wrote: > What I'm going to do today is to compile newest kernel for vhost and guest > and debug where packet flow stuck, I will report the result > Compiling the guest virtio-net driver with debug printouts enabled can be really helpful in these

[dpdk-dev] [PATCH v5 10/10] test/hash: verify rte_jhash_1word/2words/3words

2015-05-22 Thread Pablo de Lara
Added new test that verifies that rte_jhash_1words, rte_jhash_2words and rte_jhash_3words return the same values as rte_jhash. Note that this patch has been added after the update of the jhash function because these 3 functions did not return the same values as rte_jhash before Signed-off-by:

[dpdk-dev] [PATCH v5 09/10] hash: rename rte_jhash2 to rte_jhash_32b

2015-05-22 Thread Pablo de Lara
Changed name to something more meaningful, and mark rte_jhash2 as deprecated. Signed-off-by: Pablo de Lara --- app/test/test_func_reentrancy.c |2 +- app/test/test_hash.c|4 ++-- app/test/test_hash_functions.c |6 +++--- lib/librte_hash/rte_jhash.h | 17

[dpdk-dev] [PATCH v5 08/10] hash: remove duplicated code

2015-05-22 Thread Pablo de Lara
rte_jhash is basically like _rte_jhash_2hashes but it returns only 1 hash, instead of 2. In order to remove duplicated code, rte_jhash calls _rte_jhash_2hashes, passing 0 as the second seed and returning just the first hash value. (performance penalty is negligible) The same is done with

[dpdk-dev] [PATCH v5 07/10] hash: add two new functions to jhash library

2015-05-22 Thread Pablo de Lara
From: De Lara Guarch, Pablo With the jhash update, two new functions were introduced: - rte_jhash_2hashes: Same as rte_jhash, but takes two seeds and return two hashes (uint32_ts) - rte_jhash2_2hashes: Same as rte_jhash2, but takes two seeds

[dpdk-dev] [PATCH v5 06/10] hash: update jhash function with the latest available

2015-05-22 Thread Pablo de Lara
Jenkins hash function was developed originally in 1996, and was integrated in first versions of DPDK. The function has been improved in 2006, achieving up to 60% better performance, compared to the original one. This patch integrates that code into the rte_jhash library. It also updates the

[dpdk-dev] [PATCH v5 05/10] test/hash: add new functional tests for hash functions

2015-05-22 Thread Pablo de Lara
In order to make sure that the hash functions are returning the correct values, new tests have been added: - First test compares precalculated hash values with values calculated from the existing hash functions. - Second test compares values returned from rte_jhash2 and rte_jhash, expecting same

[dpdk-dev] [PATCH v5 04/10] test/hash: change order of loops in hash function tests

2015-05-22 Thread Pablo de Lara
In order to see more clearly the performance difference between different hash functions, order of the loops have been changed, so it iterates first through initial values, then key sizes and then the hash functions. Signed-off-by: Pablo de Lara --- app/test/test_hash_functions.c | 20

[dpdk-dev] [PATCH v5 03/10] test/hash: update key size range and initial values for testing

2015-05-22 Thread Pablo de Lara
Previous key sizes used for testing did not have much purpose. This patch substitutes them with some more meaninful (standard multiple of 2 key sizes, plus IPv4/v6 tuple and others) Also an arbitrary initial value has been added to increase the test coverage. Signed-off-by: Pablo de Lara ---

[dpdk-dev] [PATCH v5 02/10] test/hash: improve accuracy on cycle measurements

2015-05-22 Thread Pablo de Lara
From: De Lara Guarch, Pablo Cycles per hash calculation were measured per single operation. It is much more accurate to run several iterations between measurements and divide by number of iterations. Signed-off-by: Pablo de Lara ---

[dpdk-dev] [PATCH v5 01/10] test/hash: move hash function perf tests to separate file

2015-05-22 Thread Pablo de Lara
From: De Lara Guarch, Pablo This patch moves hash function performance tests to a separate file, so user can check performance of the existing hash functions quicker, without having to run all the other hash operation performance tests, which takes some time.

[dpdk-dev] [PATCH v5 00/10] update jhash function

2015-05-22 Thread Pablo de Lara
Jenkins hash function was developed originally in 1996, and was integrated in first versions of DPDK. The function has been improved in 2006, achieving up to 60% better performance, compared to the original one. This patchset updates the current jhash in DPDK, including two new functions that

[dpdk-dev] [PATCH v8 08/11] ethdev: add rx intr enable, disable and ctl functions

2015-05-22 Thread Liang, Cunming
On 5/22/2015 2:20 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:56:00 +0800 > Cunming Liang wrote: > >> +int >> +rte_eth_dev_rx_intr_ctl_q(uint8_t port_id, uint16_t queue_id, >> + int epfd, int op, void *data) >> +{ >> +uint32_t vec; >> +struct rte_eth_dev

[dpdk-dev] [PATCH v8 02/11] eal/linux: add rte_epoll_wait/ctl support

2015-05-22 Thread Liang, Cunming
On 5/22/2015 2:17 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:55:54 +0800 > Cunming Liang wrote: > >> +static int >> +eal_epoll_process_event(struct epoll_event *evs, int n, >> +struct rte_epoll_event *events) >> +{ >> +int i; >> +int count = 0; >> +

[dpdk-dev] FW: Vhost user no connection vm2vm

2015-05-22 Thread Maciej Grochowski
Unfortunately not, I have the same issue in rte_vhost_dequeue_burst function. What kernel version are You using on host/guest? In my case on host I had 3.13.0 and on guests old 3.2 debian. I just looked deeper into virtio back-end (vhost) but at first glace it seems like nothing coming from

[dpdk-dev] [PATCH v8 01/11] eal/linux: add interrupt vectors support in intr_handle

2015-05-22 Thread Stephen Hemminger
On Fri, 22 May 2015 00:05:36 + Neil Horman wrote: > On Thu, May 21, 2015 at 11:14:00AM -0700, Stephen Hemminger wrote: > > On Thu, 21 May 2015 13:58:46 -0400 > > Neil Horman wrote: > > > > > On Thu, May 21, 2015 at 10:43:00AM -0700, Stephen Hemminger wrote: > > > > On Thu, 21 May 2015

[dpdk-dev] ...lib/librte_pmd_pcap/rte_eth_pcap.c:47:18: fatal error: pcap.h: No such file or directory

2015-05-22 Thread Masaru Oki
Hi, pcap.h is available by development version of libpcap third-party software. Please install it. e.g. apt-get install libpcap-dev 2015-05-22 7:35 GMT+09:00 Navneet Rao : > Getting the following message when using > > dpdk-2.0.0 version > > to building the libraries and test application using

[dpdk-dev] [PATCH 2/5] cxgbe: add cxgbe poll mode driver.

2015-05-22 Thread Stephen Hemminger
On Fri, 22 May 2015 18:54:20 +0530 Rahul Lakkireddy wrote: > +static int cxgbe_dev_link_update(struct rte_eth_dev *eth_dev, > + __rte_unused int wait_to_complete) > +{ > + struct port_info *pi = (struct port_info *)(eth_dev->data->dev_private); > + struct

[dpdk-dev] [PATCH 2/5] cxgbe: add cxgbe poll mode driver.

2015-05-22 Thread Stephen Hemminger
On Fri, 22 May 2015 18:54:20 +0530 Rahul Lakkireddy wrote: > +/** > + * fls - find last (most-significant) bit set > + * @x: the word to search > + * > + * This is defined the same way as ffs. > + * Note fls(0) = 0, fls(1) = 1, fls(0x8000) = 32. > + */ > +static inline int fls(int x) Isn't

[dpdk-dev] [PATCH 2/5] cxgbe: add cxgbe poll mode driver.

2015-05-22 Thread Stephen Hemminger
On Fri, 22 May 2015 18:54:20 +0530 Rahul Lakkireddy wrote: > +#define pr_err(y, args...) dev_err(0, y, ##args) > +#define pr_warn(y, args...) dev_warn(0, y, ##args) > +#define pr_info(y, args...) dev_info(0, y, ##args) > +#define BUG() pr_err("BUG at %s:%d", __func__, __LINE__) > + > +#define

[dpdk-dev] freeing memzone

2015-05-22 Thread Gonzalez Monroy, Sergio
On 21/05/2015 17:59, Harish Patil wrote: > Hello dpdk-dev, > > I understand that the reserved memzones cannot be freed, as mentioned in > the DPDK specs. But I would like to know why? Is there any limitations? There should be a few threads in the mailing list related to this topic. Last that comes

[dpdk-dev] Vhost user no connection vm2vm

2015-05-22 Thread Gaohaifeng (A)
Hi What kernel version are You using on host/guest? >>I use ubuntu 12.04(3.11.0-15-generic) in host. In vm I use ubuntu 12.04 and >>ubuntu14.04 both, but the result is same. Do you use some command I suggest before, In case of you miss the previous mail, just copy it again: >> I try it but the

[dpdk-dev] [PATCH 4/6] vhost: Add new command line option: rxq

2015-05-22 Thread Thomas F Herbert
On 5/22/15 2:05 AM, Ouyang, Changchun wrote: > Hi Thomas, > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas F Herbert >> Sent: Friday, May 22, 2015 9:39 AM >> To: dpdk >> dev at dpdk.org >> Subject: Re: [dpdk-dev] [PATCH 4/6] vhost: Add new command

[dpdk-dev] FW: Vhost user no connection vm2vm

2015-05-22 Thread Ouyang, Changchun
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Grochowski > Sent: Friday, May 22, 2015 4:06 PM > To: Gaohaifeng (A); dev at dpdk.org > Subject: Re: [dpdk-dev] FW: Vhost user no connection vm2vm > > Unfortunately not, I have the same issue in

[dpdk-dev] ...lib/librte_pmd_pcap/rte_eth_pcap.c:47:18: fatal error: pcap.h: No such file or directory

2015-05-22 Thread Thomas F Herbert
On 5/21/15 6:35 PM, Navneet Rao wrote: > Getting the following message when using > > dpdk-2.0.0 version This isn't a problem with dpdk. You need libpcap which includes the headers, http://www.tcpdump.org/release/libpcap-1.7.3.tar.gz or libpcap-devel package. > > to building the libraries

[dpdk-dev] [PATCH v5 01/18] mbuf: redefine packet_type in rte_mbuf

2015-05-22 Thread Neil Horman
On Fri, May 22, 2015 at 04:44:07PM +0800, Helin Zhang wrote: > In order to unify the packet type, the field of 'packet_type' in > 'struct rte_mbuf' needs to be extended from 16 to 32 bits. > Accordingly, some fields in 'struct rte_mbuf' are re-organized to > support this change for Vector PMD. As

[dpdk-dev] [PATCH 0/6] Support multiple queues in vhost

2015-05-22 Thread Ouyang, Changchun
Hi Thomas, > -Original Message- > From: Thomas F Herbert [mailto:therbert at redhat.com] > Sent: Friday, May 22, 2015 9:13 AM > To: Ouyang, Changchun; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 0/6] Support multiple queues in vhost > > > > On 5/21/15 3:49 AM, Ouyang Changchun

[dpdk-dev] [PATCH 4/6] vhost: Add new command line option: rxq

2015-05-22 Thread Ouyang, Changchun
Hi Thomas, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas F Herbert > Sent: Friday, May 22, 2015 9:39 AM > To: dpdk >> dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 4/6] vhost: Add new command line option: > rxq > > > > On 5/21/15 3:49 AM,