[dpdk-dev] [PATCH] Fixed spam from kni_allocate_mbufs() when no mbufs are free.

2014-12-12 Thread Jay Rolette
Fixed spam from kni_allocate_mbufs() when no mbufs are free. If mbufs exhausted, 'out of memory' message logged at EXTREMELY high rates. Now logs no more than once per 10 mins Signed-off-by: Jay Rolette --- lib/librte_kni/rte_kni.c | 21 - 1 file changed, 20 insertions(+), 1

[dpdk-dev] [PATCH] bond: static analysis issues fix

2014-12-12 Thread Wodkowski, PawelX
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Declan Doherty > Sent: Friday, December 12, 2014 6:40 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] bond: static analysis issues fix > > Fixes for link bonding library identified by static analysis

[dpdk-dev] [PATCH] bond: static analysis issues fix

2014-12-12 Thread Declan Doherty
Fixes for link bonding library identified by static analysis tool - Overflow check for active_slaves array in activate_slave function - Allocation check of pci_id_table in rte_eth_bond_create - Use of eth_dev pointer in mac_address_get/set before NULL check Signed-off-by: Declan Doherty ---

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Thomas Monjalon
2014-12-12 14:50, Nicolas Dichtel: > Le 12/12/2014 14:38, Gonzalez Monroy, Sergio a ?crit : > > Any ideas why patchwork is not showing these patches? > > No ... > Thomas, do you have an idea? The parsemail script is responsible of adding new patches. So I guess the answer (bug?) is in this file:

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2014-12-12 Thread Olivier MATZ
Hello, On 12/12/2014 04:48 AM, Liu, Jijiang wrote: > The 'hw/sw' option is used to set/clear the flag of enabling TX tunneling > packet checksum hardware offload in testpmd application. This is not clear at all. In your command, there is (hw|sw|none). Are you talking about inner or outer? Is

[dpdk-dev] [PATCH v4 00/10] VM Power Management

2014-12-12 Thread Paolo Bonzini
On 12/12/2014 17:10, Thomas Monjalon wrote: > > Ok, this looks specific enough that an out-of-band solution within DPDK > > sounds like the best approach. It seems unnecessary to involve the > > hypervisor (neither KVM nor QEMU). > > Paolo, I don't understand why you don't imagine controlling

[dpdk-dev] [PATCH] lib/librte_table: Fix table array lookup

2014-12-12 Thread Mark Wunderlich
The existing lookup function was returning an unmodified pkts_mask bitmask into lookup_hit_mask. This effectively assumes that all packets would index correctly into one of the array table entries. Also, there was no check that the metadata provided index value was within range of the table max

[dpdk-dev] [PATCH 12/15] eal/tile: add mPIPE buffer stack mempool provider

2014-12-12 Thread Tony Lu
>-Original Message- >From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman >Sent: Tuesday, December 09, 2014 10:07 PM >To: Zhigang Lu >Cc: dev at dpdk.org >Subject: Re: [dpdk-dev] [PATCH 12/15] eal/tile: add mPIPE buffer stack mempool >provider > >On Mon, Dec 08, 2014 at

[dpdk-dev] [PATCH 0/2 v4] Fix two compile issues with i686 platform

2014-12-12 Thread Thomas Monjalon
2014-12-12 06:38, Neil Horman: > On Thu, Dec 11, 2014 at 10:21:44PM +0100, Thomas Monjalon wrote: > > 2014-12-11 15:28, Qiu, Michael: > > > On 2014/12/11 21:26, Neil Horman wrote: > > > > On Thu, Dec 11, 2014 at 01:56:06AM +0100, Thomas Monjalon wrote: > > > >>> These two issues are both

[dpdk-dev] [PATCH v4 00/10] VM Power Management

2014-12-12 Thread Paolo Bonzini
On 12/12/2014 14:00, Carew, Alan wrote: > The problem is deterministic control of host CPU frequency and the DPDK usage > model. > A hands-off power governor will scale based on workload, whether this is a > host > application or VM, so no problems or bug there. > > Where this solution fits is

[dpdk-dev] How to add veth interfaces in dpdk

2014-12-12 Thread Zhou, Danny
DPDK does not have PMD to support veth. I guess you might want to try to run DPDK in container, right? If that is the case, you have to assign a NIC's PF or VF to container to be driven by DPDK PMD. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Sachin

[dpdk-dev] [PATCH] examples: fix unchecked malloc return value in ip_pipeline

2014-12-12 Thread Dumitrescu, Cristian
Acked by: -Original Message- From: Richardson, Bruce Sent: Friday, December 12, 2014 12:24 PM To: dev at dpdk.org; Dumitrescu, Cristian Cc: Richardson, Bruce Subject: [PATCH] examples: fix unchecked malloc return value in ip_pipeline Static analysis shows that once instance of

[dpdk-dev] How to add veth interfaces in dpdk

2014-12-12 Thread Marc Sune
On 12/12/14 14:57, Sachin Sharma wrote: > Hi Marc, > I have limited number of nodes (Linux nodes) in my testbed. So, I wanted to > use veth interfaces for creating some of dpdk nodes in my nodes. You said > that I can use KNI interfaces for this purpose. I am very new to KNI > terminology.

[dpdk-dev] [PATCH] Fix linuxapp/kni Makefile

2014-12-12 Thread r k
Subject: [PATCH] Fix linuxapp/kni Makefile When "make clean" is performed following message is seen tr: missing operand after '.-' Two strings must be given when translating. Try 'tr --help' for more information due to 'comma' not defined. Include appropriate .mk file. Signed-off-by: Ravi Kerur

[dpdk-dev] [PATCH] Minor fixes in rte_common.h file.

2014-12-12 Thread r k
Subject: [PATCH] Minor fixes in rte_common.h file. Fix rte_is_power_of_2 since 0 is not. Avoid branching instructions in RTE_MAX and RTE_MIN. Signed-off-by: Ravi Kerur --- lib/librte_eal/common/include/rte_common.h | 6 +++--- lib/librte_pmd_e1000/igb_pf.c | 4 ++--

[dpdk-dev] [PATCH] Fix linuxapp/kni makefile

2014-12-12 Thread r k
Re-sending as per guidelines. Subject: [PATCH] Fix linuxapp/kni makefile *** BLURB HERE *** Ravi Kerur (1): Fix linuxapp/kni Makefile lib/librte_eal/linuxapp/kni/Makefile | 1 + 1 file changed, 1 insertion(+) -- 1.9.1

[dpdk-dev] How to add veth interfaces in dpdk

2014-12-12 Thread Sachin Sharma
Hi Marc, I have limited number of nodes (Linux nodes) in my testbed. So, I wanted to use veth interfaces for creating some of dpdk nodes in my nodes. You said that I can use KNI interfaces for this purpose. I am very new to KNI terminology. Could you please redirect me to a tutorial to create

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Nicolas Dichtel
Le 12/12/2014 14:38, Gonzalez Monroy, Sergio a ?crit : >> From: Nicolas Dichtel [mailto:nicolas.dichtel at 6wind.com] >> Sent: Friday, December 12, 2014 1:28 PM >> >> Le 12/12/2014 14:20, Gonzalez Monroy, Sergio a ?crit : From: Nicolas Dichtel [mailto:nicolas.dichtel at 6wind.com] Sent:

[dpdk-dev] [PATCH v3] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Sergio Gonzalez Monroy
Known issue regarding iommu/VT-d and igb_uio on Linux kernel version 3.15 to 3.17 where unbinding the device from the driver removes the 1:1 mapping for the device on the iommu resulting in memory access errors. Signed-off-by: Sergio Gonzalez Monroy --- v3: Remove reference number Add Linux

[dpdk-dev] How to add veth interfaces in dpdk

2014-12-12 Thread Marc Sune
On 12/12/14 14:34, Sachin Sharma wrote: > Hi all, > > I have created veth interfaces using command "sudo ip link add veth1 type > veth peer name veth2". However, when I use command "sudo > ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into > dpdk. It gives me an error that

[dpdk-dev] How to add veth interfaces in dpdk

2014-12-12 Thread Sachin Sharma
Hi all, I have created veth interfaces using command "sudo ip link add veth1 type veth peer name veth2". However, when I use command "sudo ./tools/igb_uio_bind.py --force --bind=igb_uio veth1" to add veth into dpdk. It gives me an error that "Unknown device: veth1. Please specify device in

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Nicolas Dichtel
Le 12/12/2014 14:20, Gonzalez Monroy, Sergio a ?crit : >> From: Nicolas Dichtel [mailto:nicolas.dichtel at 6wind.com] >> Sent: Friday, December 12, 2014 1:00 PM >> >> Le 12/12/2014 13:06, Sergio Gonzalez Monroy a ?crit : >>> Known issue regarding iommu/VT-d and igb_uio on Linux kernel version >>>

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Nicolas Dichtel
Le 12/12/2014 13:06, Sergio Gonzalez Monroy a ?crit : > Known issue regarding iommu/VT-d and igb_uio on Linux kernel version > 3.15 to 3.17 where unbinding the device from the driver removes the 1:1 Do you mean that the problem doesn't exist with a linux 3.18? > mapping for the device on the

[dpdk-dev] [PATCH] enic: corrected the usage of VFIO_PRESENT

2014-12-12 Thread Sujith Sankar
This patch corrects the usage of the flag VFIO_PRESENT in enic driver. This has uncovered a few warnings, and this patch corrects those too. Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/Makefile| 1 + lib/librte_pmd_enic/enic.h | 1 + lib/librte_pmd_enic/enic_main.c | 12

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Gonzalez Monroy, Sergio
> From: Nicolas Dichtel [mailto:nicolas.dichtel at 6wind.com] > Sent: Friday, December 12, 2014 1:28 PM > > Le 12/12/2014 14:20, Gonzalez Monroy, Sergio a ?crit : > >> From: Nicolas Dichtel [mailto:nicolas.dichtel at 6wind.com] > >> Sent: Friday, December 12, 2014 1:00 PM > >> > >> Le 12/12/2014

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Gonzalez Monroy, Sergio
> From: Nicolas Dichtel [mailto:nicolas.dichtel at 6wind.com] > Sent: Friday, December 12, 2014 1:00 PM > > Le 12/12/2014 13:06, Sergio Gonzalez Monroy a ?crit : > > Known issue regarding iommu/VT-d and igb_uio on Linux kernel version > > 3.15 to 3.17 where unbinding the device from the driver

[dpdk-dev] [PATCH v4 00/10] VM Power Management

2014-12-12 Thread Carew, Alan
Hi Paolo, > 2014-12-09 18:35, Paolo Bonzini: > > Did you make any progress in Qemu/KVM community? > > We need to be sync'ed up with them to be sure we share the same > goal. > > I want also to avoid using a solution which doesn't fit with > > their plan. > > Remember that

[dpdk-dev] [PATCH] igb_uio: fix Xen compatibility with kernel 3.18

2014-12-12 Thread Jincheng Miao
ACK, kernel-3.18.0 drops _PAGE_IOMAP. On 12/12/2014 03:33 AM, Shu Shen wrote: > This patch fixes build failing with undefined symbol _PAGE_IOMAP with > kernel 3.18. > > The Xen-specific _PAGE_IOMAP PTE flag was removed in kernel 3.18 and > could be used for other purpose in future. This patch

[dpdk-dev] [PATCH] examples: fix unchecked malloc return value in ip_pipeline

2014-12-12 Thread Bruce Richardson
Static analysis shows that once instance of rte_zmalloc is missing a return value check in the code. This is fixed by adding a return value check. The malloc call itself is moved to earlier in the function so that no work is done unless all memory allocation requests have succeeded - thereby

[dpdk-dev] [PATCH] examples/vhost: Fix vlan offload issue

2014-12-12 Thread Ouyang Changchun
The following commit break vm2vm hard mode test cases: commit db4014f2b65cb31bf209cadd5bcec778ca137fe2 Author: Huawei Xie Date: Thu Nov 13 06:34:07 2014 +0800 examples/vhost: use factorized default Rx/Tx configuration Investigation show that it needs enabling vlan offload since it is turn

[dpdk-dev] [PATCH v2] doc: add known issue for iommu and igb_uio

2014-12-12 Thread Sergio Gonzalez Monroy
Known issue regarding iommu/VT-d and igb_uio on Linux kernel version 3.15 to 3.17 where unbinding the device from the driver removes the 1:1 mapping for the device on the iommu resulting in memory access errors. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/known_issues.rst |

[dpdk-dev] [PATCH v2 2/2] doc: Updated image files for rte_mbuf changes in 1.8

2014-12-12 Thread Bruce Richardson
The two image files showing the structure of the rte_mbuf data structure required some minor updates to take account of the changes introduced to the structure in the 1.8 release Signed-off-by: Bruce Richardson --- Change in V2: * Made minor changes to the position of some text to try and work

[dpdk-dev] [PATCH] doc: Add known issue for iommu and igb_uio

2014-12-12 Thread Sergio Gonzalez Monroy
Known issue regarding iommu/VT-d and igb_uio on Linux kernel version 3.15 to 3.17 where unbinding the device from the driver removes the 1:1 mapping for the device on the iommu resulting in memory access errors. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/rel_notes/known_issues.rst |

[dpdk-dev] [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user support

2014-12-12 Thread Linhaifeng
On 2014/12/12 1:13, Xie, Huawei wrote: >> >> Only support one vhost-user port ? > > Do you mean vhost server by "port"? > If that is the case, yes, now only one vhost server is supported for multiple > virtio devices. > As stated in the cover letter, we have requirement and plan for multiple

[dpdk-dev] [PATCH 2/3] PMD ring MAC management, fix initialization, link up/down

2014-12-12 Thread Michal Jastrzebski
* add MAC management per device * fix initialization procedure * add link up/down functions Signed-off-by: Pawel Wodkowski Signed-off-by: Tomasz Kulasek --- lib/librte_pmd_ring/rte_eth_ring.c | 62 +--- 1 file changed, 57 insertions(+), 5 deletions(-)

[dpdk-dev] [PATCH 1/3] bond change warning

2014-12-12 Thread Michal Jastrzebski
Remove function name from warning. Signed-off-by: Pawel Wodkowski --- lib/librte_pmd_bond/rte_eth_bond_pmd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_bond/rte_eth_bond_pmd.c b/lib/librte_pmd_bond/rte_eth_bond_pmd.c index 539baa4..9169040 100644

[dpdk-dev] [PATCH 0/3] bond mode 4: add unit tests

2014-12-12 Thread Michal Jastrzebski
These patches add unit tests for mode 4. They also changes ring pmd to behave more like ordinary pmd device. Pawel Wodkowski (3): bond-change-warning PMD-ring-MAC-management-fix-initialization-link-up-d unit-tests-add-mode-4-unit-test app/test/Makefile |1 +

[dpdk-dev] [PATCH 14/15] app/test: turn off cpu flag checks for tile architecture

2014-12-12 Thread Neil Horman
On Fri, Dec 12, 2014 at 04:10:21PM +0800, Tony Lu wrote: > >-Original Message- > >From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > >Sent: Thursday, December 11, 2014 9:39 PM > >To: Tony Lu > >Cc: dev at dpdk.org > >Subject: Re: [dpdk-dev] [PATCH 14/15] app/test: turn

[dpdk-dev] [PATCH 12/15] eal/tile: add mPIPE buffer stack mempool provider

2014-12-12 Thread Neil Horman
On Fri, Dec 12, 2014 at 04:30:27PM +0800, Tony Lu wrote: > >-Original Message- > >From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > >Sent: Tuesday, December 09, 2014 10:07 PM > >To: Zhigang Lu > >Cc: dev at dpdk.org > >Subject: Re: [dpdk-dev] [PATCH 12/15] eal/tile: add

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-12 Thread Qiu, Michael
On 2014/12/12 1:51, r k wrote: Thomas, Michael, Wouldn't it cause unaligned memory access (new changes as well as the previous code)? Wondering if get_unaligned/put_unaligned macros similar to the ones used in kernel be ported to user-space? I think it will not, as all buf point to are struct

[dpdk-dev] [PATCH] vmxnet3: set txq_flags in default TX conf

2014-12-12 Thread Zhang, XiaonanX
Tested-by: Xiaonan Zhang - Tested Commit: Pablo - OS: Fedora20 3.15.8-200.fc20.x86_64 - GCC: gcc version 4.8.3 20140624 - CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz - NIC: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] - Default x86_64-native-linuxapp-gcc

[dpdk-dev] [PATCH 0/2 v4] Fix two compile issues with i686 platform

2014-12-12 Thread Neil Horman
On Thu, Dec 11, 2014 at 10:21:44PM +0100, Thomas Monjalon wrote: > 2014-12-11 15:28, Qiu, Michael: > > On 2014/12/11 21:26, Neil Horman wrote: > > > On Thu, Dec 11, 2014 at 01:56:06AM +0100, Thomas Monjalon wrote: > > >>> These two issues are both introuduced by commit b77b5639: > > >>>

[dpdk-dev] [RFC PATCH 0/7] support multi-phtread per lcore

2014-12-12 Thread Liang, Cunming
Thanks Mirek. That's a good point which wasn't mentioned in cover letter. For 'rte_timer', I only expect it be used within the 'legacy per-lcore' pthread. I'm appreciate if you can give me some cases which can't use it to fit. In case have to use 'rte_timer' in multi-pthread, there are some

[dpdk-dev] A question about hugepage initialization time

2014-12-12 Thread László Vadkerti
On Thu, 11 Dec, 2014, Bruce Richardson wrote: > On Wed, Dec 10, 2014 at 07:16:59PM +, L?szl? Vadkerti wrote: > > > > On Wed, 10 Dec 2014, Bruce Richardson wrote: > > > > > On Wed, Dec 10, 2014 at 09:29:26AM -0500, Neil Horman wrote: > > >> On Wed, Dec 10, 2014 at 10:32:25AM +, Bruce

[dpdk-dev] [PATCH v3 3/3] app/testpmd:change tx_checksum command and csum forwarding engine

2014-12-12 Thread Liu, Jijiang
> -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Thursday, December 11, 2014 6:53 PM > To: Liu, Jijiang; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 3/3] app/testpmd:change tx_checksum > command and csum forwarding engine > > Hi Jijiang, > >

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2014-12-12 Thread Liu, Jijiang
Hi Olivier, Thanks for your comments. > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Thursday, December 11, 2014 6:18 PM > To: Liu, Jijiang; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and > csum forwarding

[dpdk-dev] In DPDK 1.7.1, the link status of the interface using virtio driver is always down.

2014-12-12 Thread Fu, Weiyi (NSN - CN/Hangzhou)
Hi, I have ingnored the link status. Rx and tx can't work. I will try the methods Vijay suggested to have a try. Thanks! Brs, Fu Weiyi -Original Message- From: ext Ouyang, Changchun [mailto:changchun.ouy...@intel.com] Sent: Friday, December 12, 2014 9:00 AM To: Fu, Weiyi (NSN -

[dpdk-dev] [PATCH v4 00/10] VM Power Management

2014-12-12 Thread Thomas Monjalon
2014-12-09 18:35, Paolo Bonzini: > Did you make any progress in Qemu/KVM community? > We need to be sync'ed up with them to be sure we share the same goal. > I want also to avoid using a solution which doesn't fit with their > plan. > Remember that we already had this