[dpdk-dev] [PATCH 6/6] virtio: arm/arm64: memory mapped IO support in pmd driver

2015-12-10 Thread Santosh Shukla
On Tue, Dec 8, 2015 at 6:23 PM, Santosh Shukla wrote: > > > On Mon, Dec 7, 2015 at 10:38 PM, Stephen Hemminger > wrote: >> >> On Fri, 4 Dec 2015 23:05:19 +0530 >> Santosh Shukla wrote: >> >> > >> > +#ifdef RTE_EXEC_ENV_LINUXAPP >> > +/* start address of first pci_iobar slot (user-space

[dpdk-dev] [PATCH 6/6] virtio: arm/arm64: memory mapped IO support in pmd driver

2015-12-10 Thread Santosh Shukla
On Thu, Dec 10, 2015 at 12:34 AM, Stephen Hemminger wrote: > On Thu, 10 Dec 2015 00:29:30 +0530 > Santosh Shukla wrote: > >> On Tue, Dec 8, 2015 at 6:23 PM, Santosh Shukla wrote: >> > >> > >> > On Mon, Dec 7, 2015 at 10:38 PM, Stephen Hemminger >> > wrote: >> >> >> >> On Fri, 4 Dec 2015

[dpdk-dev] [PATCH] virtio: fix wrong queue index for VIRTIO_PCI_QUEUE_SEL

2015-12-10 Thread Yuanhan Liu
On Wed, Dec 09, 2015 at 09:09:27PM +0100, Thomas Monjalon wrote: > 2015-12-08 11:05, Yuanhan Liu: > > We should provide VIRTIO_PCI_QUEUE_SEL with vq->vq_queue_idx, > > but not vq->queue_id. > > > > vq->queue_id is the queue id from rte_eth_rx/tx_queue_setup(), > > which always starts from 0 no

[dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling

2015-12-10 Thread Yuanhan Liu
Hi, Here is an initial virtio 1.0 pmd driver enabling. Almost all difference comes from virtio 1.0 are the PCI layout change: the major configuration structures are stored at bar space, and their location is stored at corresponding pci cap structure. Reading/parsing them is one of the major work

[dpdk-dev] [PATCH 1/6] virtio: don't set vring address again at queue startup

2015-12-10 Thread Yuanhan Liu
As we have already set up it at virtio_dev_queue_setup(), and a vq restart will not reset the settings. Signed-off-by: Yuanhan Liu --- drivers/net/virtio/virtio_rxtx.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c

[dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops

2015-12-10 Thread Yuanhan Liu
Introduce struct virtio_pci_ops, to let legacy virtio (v0.95) and modern virtio (1.0) have different implementation regarding to a specific pci action, such as read host status. With that, this patch reimplements all exported pci functions, in a way like: vtpci_foo_bar(struct virtio_hw

[dpdk-dev] [PATCH 3/6] virtio: move left pci stuff to virtio_pci.c

2015-12-10 Thread Yuanhan Liu
virtio_pci.c is a more proper place for pci stuff; virtio_ethdev is not. Signed-off-by: Yuanhan Liu --- drivers/net/virtio/virtio_ethdev.c | 265 +--- drivers/net/virtio/virtio_pci.c| 270 - 2 files changed, 270

[dpdk-dev] [PATCH 4/6] viritio: switch to 64 bit features

2015-12-10 Thread Yuanhan Liu
Switch to 64 bit features, which virtio 1.0 supports. While legacy virtio only supports 32 bit features, it complains aloud and quit when trying to setting > 32 bit features. Signed-off-by: Yuanhan Liu --- drivers/net/virtio/virtio_ethdev.c | 8 drivers/net/virtio/virtio_pci.c|

[dpdk-dev] [PATCH 5/6] virtio: set RTE_PCI_DRV_NEED_MAPPING flag

2015-12-10 Thread Yuanhan Liu
We need to to map pci bar space for enabling modern virtio pci device, as all modern configs are stored at pci bar space. Setting RTE_PCI_DRV_NEED_MAPPING flag will let eal do that for us. Signed-off-by: Yuanhan Liu --- drivers/net/virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+),

[dpdk-dev] [PATCH 6/6] virtio: add virtio v1.0 support

2015-12-10 Thread Yuanhan Liu
Modern (v1.0) virtio pci device defines several pci capabilities. Each cap has a configure structure corresponding to it, and the cap.bar and cap.offset fields tell us where to find it. And thanks to the RTE_PCI_DRV_NEED_MAPPING, which already maps all the bar space for us, we could easily locate

[dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling

2015-12-10 Thread Yuanhan Liu
Michael, Sorry that I forgot to CC you. (In fact, I intended to, but there is a tiny bug at my send-email script :( It'd be great if you could take some time to review it. Thanks. --yliu On Thu, Dec 10, 2015 at 11:54:04AM +0800, Yuanhan Liu wrote: > Hi, > > Here is an initial virtio

[dpdk-dev] building LIBRTE_PMD_XENVIRT in 32bit triggers some errors

2015-12-10 Thread Xie, Huawei
On 12/10/2015 6:49 AM, Martinx - ? wrote: > On 9 December 2015 at 18:05, Thomas Monjalon > wrote: >> 2015-12-09 15:54, Martinx - ?: >>> Sorry to insist on this subject but, the time for releasing DPDK 2.2 >>> is near and DPDK build with Xen 32-bit is broken. >>> >>> If DPDK doesn't fix

[dpdk-dev] [PATCH 0/6] Add virtio support in arm/arm64

2015-12-10 Thread Santosh Shukla
On Tue, Dec 8, 2015 at 6:29 PM, Xie, Huawei wrote: > > >> -Original Message- >> From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] >> Sent: Monday, December 07, 2015 10:12 AM >> To: Santosh Shukla >> Cc: dev at dpdk.org; thomas.monjalon at 6wind.com; Xie, Huawei >> Subject: Re:

[dpdk-dev] [PATCH 0/6] Add virtio support in arm/arm64

2015-12-10 Thread Yuanhan Liu
On Thu, Dec 10, 2015 at 11:46:50AM +0530, Santosh Shukla wrote: > On Tue, Dec 8, 2015 at 6:29 PM, Xie, Huawei wrote: > > > > > >> -Original Message- > >> From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > >> Sent: Monday, December 07, 2015 10:12 AM > >> To: Santosh Shukla > >>

[dpdk-dev] [PATCH] doc: add fm10k driver

2015-12-10 Thread Chen, Jing D
Hi, John, Best Regards, Mark > -Original Message- > From: Mcnamara, John > Sent: Wednesday, December 09, 2015 10:21 PM > To: Chen, Jing D; dev at dpdk.org > Subject: RE: [PATCH] doc: add fm10k driver > > > -Original Message- > > From: Chen, Jing D > > Sent: Wednesday, December

[dpdk-dev] [PATCH 1/1] doc: correct Vhost Sample Application guide

2015-12-10 Thread Yuanhan Liu
On Wed, Dec 09, 2015 at 04:14:01PM +, Iremonger, Bernard wrote: > Hi John, > > > > 2015-12-09 14:50, Mcnamara, John: > > > Also, as a general note, not just to this document/patch. > > > > > > I don't think the "user at target:~$" prefixes used in some DPDK Doc > > > commandlines is useful.

[dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample Application guide

2015-12-10 Thread Yuanhan Liu
On Wed, Dec 09, 2015 at 05:18:38PM +, Bernard Iremonger wrote: > correct sample console commands You'd state what exactly this patch corrects here, and why is that needed. > > changes in v2: > remove "user at target:~$" prefixes in command lines. > use continuation character to stay within

[dpdk-dev] [PATCH v2] doc: add fm10k driver

2015-12-10 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" This documentation covers introdutions and limitations on Intel FM1 series products. Signed-off-by: Chen Jing D(Mark) --- v2 changes: - sync with latest repo. - Fix some format and syntax issues. - Add descriptions on Testpoint.

[dpdk-dev] building LIBRTE_PMD_XENVIRT in 32bit triggers some errors

2015-12-10 Thread Thomas Monjalon
2015-12-10 04:45, Xie, Huawei: > This xen PMD is based on grant table mechanism and virtio interface. > Worth to note is it needs customized backend, which now resides in > examples/vhost_xen. > Another approach is netfront based PMD, which has kernel netback backend > in place, but i guess it

[dpdk-dev] Compilation error on Power8 with RC3

2015-12-10 Thread Olga Shern
Hi, We see the following compilation error on Power8, Ubuntu15.04 with DPDK2.2 RC3: In file included from /download/dpdk/app/test/test_hash_scaling.c:35:0: /download/dpdk/ppc_64-power8-linuxapp-gcc/include/rte_hash.h:70:70: error: unknown type name 'size_t' typedef int

[dpdk-dev] [PATCH] app/testpmd: swap mac in IEEE1588 forwarding

2015-12-10 Thread Pablo de Lara
IEEE1588 forwarding mode uses same port to receive and transmit packets. In this mode, the MAC address in the packets are not touched, and therefore, packets could be sent with the same destination MAC address as the MAC address of the port that is transmitting, which causes the packet to be

[dpdk-dev] Compilation error on Power8 with RC3

2015-12-10 Thread De Lara Guarch, Pablo
Hi Olga, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Olga Shern > Sent: Thursday, December 10, 2015 9:08 AM > To: dev at dpdk.org > Subject: [dpdk-dev] Compilation error on Power8 with RC3 > > Hi, > > We see the following compilation error on Power8,

[dpdk-dev] [PATCH v1 0/2] Fix various Coverity warnings

2015-12-10 Thread Remy Horton
Remy Horton (2): examples/ethtool: Fix uninitialised variable in structure examples/l2fwd-keepalive: Fix integer overflow examples/ethtool/ethtool-app/ethapp.c | 3 +++ examples/l2fwd-keepalive/main.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) -- 1.9.3

[dpdk-dev] [PATCH v1 1/2] examples/ethtool: Fix uninitialised variable

2015-12-10 Thread Remy Horton
Fix Coverity warning with uninitialised field in structure being used. Zero out all the other unused ones. >>> CID 120413 (#1 of 1): Uninitialized scalar variable (UNINIT) Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application") Signed-off-by: Remy Horton ---

[dpdk-dev] [PATCH v1 2/2] examples/l2fwd-keepalive: Fix integer overflow

2015-12-10 Thread Remy Horton
Fix Coverity warning with potential 32-bit integer multiplication overflow where final result is expected to be 64-bit. >>> CID 120144 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) Fixes: e64833f2273a ("examples/l2fwd-keepalive: add sample application") Signed-off-by: Remy

[dpdk-dev] [PATCH] vfio: support iommu group zero

2015-12-10 Thread Burakov, Anatoly
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen > Hemminger > Sent: Wednesday, December 9, 2015 5:56 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] vfio: support iommu group zero > > The current implementation of VFIO will not with the new

[dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample Application guide

2015-12-10 Thread Iremonger, Bernard
Hi Yuanhan, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Thursday, December 10, 2015 6:53 AM > To: Iremonger, Bernard > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample > Application guide > > On Wed, Dec

[dpdk-dev] [PATCH v2] af_packet: fix mbuf->port for eth_af_packet

2015-12-10 Thread xkr
Fixes port number in mbuf structure when using with eth_af_packet Signed-off-by: xkr --- v2: * properly formated for git drivers/net/af_packet/rte_eth_af_packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c

[dpdk-dev] [PATCH v2] af_packet: fix mbuf->port for eth_af_packet

2015-12-10 Thread Thomas Monjalon
2015-12-10 11:10, xkr: > Fixes port number in mbuf structure when using with eth_af_packet > > Signed-off-by: xkr We use real names in the git history. Is it OK to use "Pavel Krauz" in author name and signed-off?

[dpdk-dev] [PATCH] app/testpmd: swap mac in IEEE1588 forwarding

2015-12-10 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara > Sent: Thursday, December 10, 2015 9:28 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] app/testpmd: swap mac in IEEE1588 forwarding > > IEEE1588 forwarding mode uses same port to receive

[dpdk-dev] [PATCH v1 1/2] examples/ethtool: Fix uninitialised variable

2015-12-10 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Remy Horton > Sent: Thursday, December 10, 2015 9:50 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v1 1/2] examples/ethtool: Fix uninitialised > variable > > Fix Coverity warning with uninitialised

[dpdk-dev] [PATCH v1 2/2] examples/l2fwd-keepalive: Fix integer overflow

2015-12-10 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Remy Horton > Sent: Thursday, December 10, 2015 9:50 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v1 2/2] examples/l2fwd-keepalive: Fix integer > overflow > > Fix Coverity warning with potential 32-bit

[dpdk-dev] [PATCH v2] doc: add fm10k driver

2015-12-10 Thread Mcnamara, John
> -Original Message- > From: Chen, Jing D > Sent: Thursday, December 10, 2015 7:00 AM > To: dev at dpdk.org > Cc: Mcnamara, John; Chen, Jing D > Subject: [PATCH v2] doc: add fm10k driver > > From: "Chen Jing D(Mark)" > > This documentation covers introdutions and limitations on Intel >

[dpdk-dev] Vmxnet3 activation of device fails in DPDK1.7

2015-12-10 Thread Dey, Souvik
Hi, In DPDK 1.7 , while using the vmxnet3 pmd on vmware Esxi 5.5 update 3 we are seeing that activation of the device fails. status = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_CMD); return a non zero status. Though the normal vmxnet3.ko works fine in the same system. Any idea if

[dpdk-dev] [PATCH v3] af_packet: fix mbuf->port for eth_af_packet

2015-12-10 Thread Pavel Krauz
Fixes port number in mbuf structure when using with eth_af_packet Signed-off-by: Pavel Krauz --- v3: * corrected signed-off display name v2: * properly formated for git drivers/net/af_packet/rte_eth_af_packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[dpdk-dev] [PATCH] i40e: fix issue of setting input set for (double) vlan

2015-12-10 Thread Helin Zhang
It corrects the input set values to be set for vlan or double vlan. Fixes: 98f055707685 ("i40e: configure input fields for RSS or flow director") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH v3] doc: correct Vhost Sample Application guide

2015-12-10 Thread Bernard Iremonger
Fix typos in sample console commands. Add --socket-mem 1024 to vhost-switch command lines. Without the --socket-mem parameter all hugepages will be allocated to vhost-switch, leaving no memory for the VM. Add --disable-hw-vlan-filter parameter to testpmd command lines. Without this parameter

[dpdk-dev] [PATCH v3] doc: correct Vhost Sample Application guide

2015-12-10 Thread Bernard Iremonger
Fix typos in sample console commands. Add --socket-mem 1024 to vhost-switch command lines. Without the --socket-mem parameter all hugepages will be allocated to vhost-switch, leaving no memory for the VM. Add --disable-hw-vlan-filter parameter to testpmd command lines. Without this parameter

[dpdk-dev] [PATCH] example/ip_pipeline: fix config file parse defect

2015-12-10 Thread Fan Zhang
Coverity issue: 120143 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 4 1 file changed, 4 insertions(+) diff --git a/examples/ip_pipeline/config_parse.c

[dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Bernard Iremonger
Change MAX_QUEUES to 128 to reduce the number of hugepages required by the vhost-switch program. Signed-off-by: Bernard Iremonger --- examples/vhost/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index

[dpdk-dev] [PATCH] examples: mark performance-thread example as experimental

2015-12-10 Thread Ian Betts
This commit removes the performance thread example from examples/Makefile, and marks the example as "experimental" in the release note, and it its API headers files. Signed-off-by: Ian Betts --- doc/guides/rel_notes/release_2_2.rst | 8 examples/Makefile

[dpdk-dev] [PATCH v3] doc: correct Vhost Sample Application guide

2015-12-10 Thread Yuanhan Liu
On Thu, Dec 10, 2015 at 12:16:13PM +, Bernard Iremonger wrote: > Fix typos in sample console commands. > > Add --socket-mem 1024 to vhost-switch command lines. > Without the --socket-mem parameter all hugepages will be allocated > to vhost-switch, leaving no memory for the VM. > > Add

[dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Yuanhan Liu
On Thu, Dec 10, 2015 at 12:19:31PM +, Bernard Iremonger wrote: > Change MAX_QUEUES to 128 to reduce the number of hugepages required > by the vhost-switch program. > > Signed-off-by: Bernard Iremonger > --- > examples/vhost/main.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-)

[dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Iremonger, Bernard
Hi Yuanhan, > > /*- > > * BSD LICENSE > > * > > - * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. > > + * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. > > * All rights reserved. > > * > > * Redistribution and use in source and binary

[dpdk-dev] [PATCH] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Yuanhan Liu
On Thu, Dec 10, 2015 at 01:26:14PM +, Iremonger, Bernard wrote: > Hi Yuanhan, > > > > > > /*- > > > * BSD LICENSE > > > * > > > - * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. > > > + * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. > > > *

[dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample Application guide

2015-12-10 Thread Xie, Huawei
> -Original Message- > From: Iremonger, Bernard > Sent: Thursday, December 10, 2015 9:20 PM > To: Xie, Huawei; Yuanhan Liu > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample > Application guide > > Hi Huawei, > > > > > > > I don't think that's a

[dpdk-dev] [PATCH v2] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Bernard Iremonger
Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages required by the vhost-switch program. Changes in v2: remove comment added before #define MAX_QUEUES in v1 patch. Signed-off-by: Bernard Iremonger Acked-by: Yuanhan Liu --- examples/vhost/main.c | 4 ++-- 1 file changed, 2

[dpdk-dev] [RFC 0/3] ethdev: Enhancements to flow director filter

2015-12-10 Thread Rahul Lakkireddy
This RFC series of patches attempt to extend the flow director filter to add support for Chelsio T5 hardware filtering capabilities. Chelsio T5 supports carrying out filtering in hardware which supports 3 actions to carry out on a packet which hit a filter viz. 1. Action Pass - Packets hitting a

[dpdk-dev] [RFC 1/3] ethdev: add packet filter flow and new behavior switch to fdir

2015-12-10 Thread Rahul Lakkireddy
Add a new packet filter flow that allows filtering a packet based on matching ingress port, ethertype, vlan, ip, and tcp/udp fields, i.e. matching based on any or all fields at the same time. Add the ability to provide masks for fields in flow to allow range of values. Add a new vlan flow

[dpdk-dev] [RFC 2/3] testpmd: add an example to show packet filter flow

2015-12-10 Thread Rahul Lakkireddy
Extend the existing flow_director_filter to add support for packet filter flow. Also shows how to pass the extra behavior arguments to rewrite fields in matched filter rules. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- app/test-pmd/cmdline.c | 435

[dpdk-dev] [RFC 3/3] doc: announce ABI change for filtering support

2015-12-10 Thread Rahul Lakkireddy
Current filtering support will be enhanced to accommodate support for Chelsio T5 hardware filtering support. Signed-off-by: Rahul Lakkireddy Signed-off-by: Kumar Sanghvi --- doc/guides/rel_notes/deprecation.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git

[dpdk-dev] [PATCH v2] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bernard Iremonger > Sent: Thursday, December 10, 2015 1:53 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] examples/vhost: reduce number of hugepages > needed > > Change MAX_QUEUES from 512 to 128

[dpdk-dev] [PATCH v2] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Iremonger, Bernard
Hi Konstantin, > > Subject: [dpdk-dev] [PATCH v2] examples/vhost: reduce number of > > hugepages needed > > > > Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages > > required by the vhost-switch program. > > > > Changes in v2: > > remove comment added before #define MAX_QUEUES

[dpdk-dev] [RFC 1/3] ethdev: add packet filter flow and new behavior switch to fdir

2015-12-10 Thread Chilikin, Andrey
Hi Rahul, If ABI for fdir is going to be changed should we then take more general approach to accommodate other NICs as well? For example, for "rte_eth_ipv4_flow" you have "tos" and "proto" fields added, but "ttl" was left out of scope. I believe that "rte_eth_udpv6_flow" should be compatible

[dpdk-dev] [PATCH v3] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Bernard Iremonger
Add #ifndef MAX_QUEUES to change MAX_QUEUES at compile time if needed. Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages required by the vhost-switch program. To change MAX_QUEUES add '-D MAX_QUEUES=512' to the EXTRA_CFLAGS variable, before building the application. Changes in

[dpdk-dev] [PATCH v3] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Ananyev, Konstantin
> -Original Message- > From: Iremonger, Bernard > Sent: Thursday, December 10, 2015 3:49 PM > To: dev at dpdk.org > Cc: Xie, Huawei; yuanhan.liu at linux.intel.com; Ananyev, Konstantin; > Iremonger, Bernard > Subject: [PATCH v3] examples/vhost: reduce number of hugepages needed > > Add

[dpdk-dev] [PATCH v2 0/4] fix performance/cache resource issues with 128-byte cache line targets

2015-12-10 Thread Jerin Jacob
This patchset fixes performance/cache resource issues with 128-byte cache line targets found in mbuf and bitmap DPDK libraries Currently, we have two DPDK targets(ThunderX and ppc_64) which are based on 128-bytes cache line size target. This patchset doesn't introduce any performance

[dpdk-dev] [PATCH v2 2/4] mbuf: fix performance/cache resource issue with 128-byte cache line targets

2015-12-10 Thread Jerin Jacob
No need to split mbuf structure to two cache lines for 128-byte cache line size targets as it can fit on a single 128-byte cache line. Signed-off-by: Jerin Jacob --- app/test/test_mbuf.c | 2 +-

[dpdk-dev] [PATCH v2 3/4] bitmap: optimize for 128-bytes cache line targets

2015-12-10 Thread Jerin Jacob
existing rte_bitmap library implementation optimally configured to run on 64-bytes cache line, extending to 128-bytes cache line targets. Signed-off-by: Jerin Jacob --- lib/librte_sched/rte_bitmap.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[dpdk-dev] [PATCH v2 4/4] cache/slow-path: reduce cache align requirement for 128-byte cache targets

2015-12-10 Thread Jerin Jacob
slow-path data structures need not be 128-byte cache aligned. Reduce the alignment to 64-byte to save the memory. No behavior change for 64-byte cache aligned systems as minimum cache line size as 64. Signed-off-by: Jerin Jacob --- lib/librte_ether/rte_ethdev.h| 4 ++--

[dpdk-dev] Vmxnet3 activation of device fails in DPDK1.7

2015-12-10 Thread Stephen Hemminger
On Thu, 10 Dec 2015 10:22:30 + "Dey, Souvik" wrote: > Hi, > In DPDK 1.7 , while using the vmxnet3 pmd on vmware Esxi 5.5 > update 3 we are seeing that activation of the device fails. Please try something more recent. DPDK 1.7 had a version of vmxnet3 which was brand new at

[dpdk-dev] Vmxnet3 activation of device fails in DPDK1.7

2015-12-10 Thread Yong Wang
On 12/10/15, 2:22 AM, "dev on behalf of Dey, Souvik" wrote: >Hi, >In DPDK 1.7 , while using the vmxnet3 pmd on vmware Esxi 5.5 > update 3 we are seeing that activation of the device fails. > >status = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_CMD); return a non zero status.

[dpdk-dev] [PATCH] vfio: support iommu group zero

2015-12-10 Thread Thomas Monjalon
> > The current implementation of VFIO will not with the new no-IOMMU mode > > in 4.4 kernel. The original code assumed that IOMMU group zero would > > never be used. Group numbers are assigned starting at zero, and up until > > now the group numbers came from the hardware which is likely to use

[dpdk-dev] [PATCH] i40e: fix issue of setting input set for (double) vlan

2015-12-10 Thread Thomas Monjalon
2015-12-10 18:44, Helin Zhang: > It corrects the input set values to be set for vlan or > double vlan. > > Fixes: 98f055707685 ("i40e: configure input fields for RSS or flow director") > > Signed-off-by: Helin Zhang Applied, thanks

[dpdk-dev] [PATCH] app/testpmd: swap mac in IEEE1588 forwarding

2015-12-10 Thread Thomas Monjalon
> > IEEE1588 forwarding mode uses same port to receive and transmit packets. > > In this mode, the MAC address in the packets are not touched, and > > therefore, packets could be sent with the same destination MAC address as > > the MAC address of the port that is transmitting, which causes the

[dpdk-dev] [PATCH] ip_pipeline: add sample configuration/script files

2015-12-10 Thread Jasvinder Singh
This patch includes the configuration and script files of the some applications which can be built using DPDK Packet Framework. A configuration file defines the application structure which include packet processing stages (knowns as pipelines), their connectivity and other parameters necessary to

[dpdk-dev] [PATCH v1 0/2] Fix various Coverity warnings

2015-12-10 Thread Thomas Monjalon
2015-12-10 09:50, Remy Horton: > Remy Horton (2): > examples/ethtool: Fix uninitialised variable in structure > examples/l2fwd-keepalive: Fix integer overflow Applied, thanks

[dpdk-dev] [PATCH] example/ip_pipeline: fix config file parse defect

2015-12-10 Thread Thomas Monjalon
2015-12-10 12:19, Fan Zhang: > Coverity issue: 120143 > Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") > > Signed-off-by: Fan Zhang > Acked-by: Cristian Dumitrescu Applied, thanks

[dpdk-dev] [PATCH v3] examples/vhost: reduce number of hugepages needed

2015-12-10 Thread Thomas Monjalon
> > Add #ifndef MAX_QUEUES to change MAX_QUEUES at compile time if needed. > > Change MAX_QUEUES from 512 to 128 to reduce the number of hugepages > > required by the vhost-switch program. > > > > To change MAX_QUEUES add '-D MAX_QUEUES=512' to the EXTRA_CFLAGS variable, > > before building the

[dpdk-dev] [PATCH] bond: fix LACP mempool size

2015-12-10 Thread Thomas Monjalon
Please Declan, Could you check these patches from Andriy and tell how safe it is for 2.2? Thanks 2015-12-08 14:23, Andriy Berestovskyy: > The following messages might appear after some idle time: > "PMD: Failed to allocate LACP packet from pool" > > The fix ensures the mempool size is greater

[dpdk-dev] DPDK Community Call - Linux Foundation

2015-12-10 Thread O'Driscoll, Tim
One of the actions resulting from the discussion we had on project governance at the Userspace event was to engage with the Linux Foundation to see if they can provide a lightweight model for DPDK. This would cover things like managing a marketing budget, event planning, trademarks etc. Scott

[dpdk-dev] [PATCH] doc: announce API change for rte_ether.h

2015-12-10 Thread Stephen Hemminger
Plan to change to version of struct ether_addr in DPDK 2.3. The change in DPDK source is trivial but it will impact source compatablilty therefore notification is necessary. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+)

[dpdk-dev] [PATCH v4 0/9] bnx2x: Enhancement, fixes, licensing and doumentation

2015-12-10 Thread Rasesh Mody
Hi Thomas, This patch set consists of enhancements, fixes, licensing and documentation changes for the QLogic bnx2x Poll Mode Driver. The patches addresses the latets review feedback and have been generated and tested against latest dpdk tree. This patch set versions bnx2x PMD driver

[dpdk-dev] [PATCH v4 1/9] bnx2x: Update VF to support newer PF drivers

2015-12-10 Thread Rasesh Mody
From: Harish Patil SR-IOV is supported using bnx2x poll mode driver running as VF driver and native linux driver running as PF (in host/hypervisor). There is no issue while running with the PF driver which is at the base version as that of PMD. However, there is a

[dpdk-dev] [PATCH v4 2/9] bnx2x: Fix x86_64-native-linuxapp-clang build error

2015-12-10 Thread Rasesh Mody
From: Harish Patil Fix for the following clang build error: drivers/net/bnx2x/elink.c:10384:41: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] vars->eee_status &= ~SHMEM_EEE_1G_ADV <<

[dpdk-dev] [PATCH v4 3/9] bnx2x: Add periodic debug option

2015-12-10 Thread Rasesh Mody
From: Harish Patil The periodic debug option is used to collect periodic events like statistics, register access etc and won't interfere with user-level messages. Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- config/common_bsdapp |1 +

[dpdk-dev] [PATCH v4 4/9] doc: Add BNX2X PMD documentation

2015-12-10 Thread Rasesh Mody
Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- MAINTAINERS |1 + doc/guides/nics/bnx2x.rst | 314 + doc/guides/nics/index.rst |1 + 3 files changed, 316 insertions(+) create mode 100644 doc/guides/nics/bnx2x.rst

[dpdk-dev] [PATCH v4 5/9] bnx2x: Add LICENSE.bnx2x_pmd and update source files

2015-12-10 Thread Rasesh Mody
Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/LICENSE.bnx2x_pmd | 28 drivers/net/bnx2x/bnx2x.c | 29 - drivers/net/bnx2x/bnx2x.h | 29 - drivers/net/bnx2x/bnx2x_ethdev.c|4

[dpdk-dev] [PATCH v4 6/9] bnx2x: FreeBSD enablement

2015-12-10 Thread Rasesh Mody
Compile tested. Signed-off-by: Rasesh Mody --- doc/guides/nics/bnx2x.rst|8 drivers/net/bnx2x/bnx2x.c|9 + drivers/net/bnx2x/bnx2x.h| 36 +++- drivers/net/bnx2x/ecore_sp.h | 18 ++ 4 files changed, 46

[dpdk-dev] [PATCH v4 7/9] bnx2x: Linux 32bit enablement

2015-12-10 Thread Rasesh Mody
Compile tested. Signed-off-by: Rasesh Mody --- doc/guides/nics/bnx2x.rst|8 drivers/net/bnx2x/bnx2x.h| 12 ++-- drivers/net/bnx2x/bnx2x_ethdev.c |2 +- drivers/net/bnx2x/bnx2x_rxtx.c | 11 +++ drivers/net/bnx2x/bnx2x_vfpf.c |4 ++-- 5

[dpdk-dev] [PATCH v4 8/9] maintainers: Add maintainers for BNX2X PMD

2015-12-10 Thread Rasesh Mody
Add maintainers for BNX2X PMD. Add file path to BNX2X PMD guide. Signed-off-by: Rasesh Mody --- MAINTAINERS |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8b406b2..e97d0f5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -329,7 +329,10 @@

[dpdk-dev] [PATCH v4 9/9] bnx2x: Add BNX2X PMD versioning

2015-12-10 Thread Rasesh Mody
Add BNX2X PMD version, print it as part of adapter info. Adjusted print adapter info output formatting. This patch versions BNX2X PMD at 1.0.0. Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x.c | 101 + 1 file changed, 65 insertions(+), 36

[dpdk-dev] [PATCH] xenvirt: fix compilation issues

2015-12-10 Thread Huawei
Reported-by: Christian Ehrhardt Signed-off-by: Huawei Xie --- drivers/net/xenvirt/rte_mempool_gntalloc.c | 6 +++--- drivers/net/xenvirt/rte_xen_lib.c | 4 ++-- drivers/net/xenvirt/virtqueue.h| 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git