[dpdk-dev] [PATCH v4 0/7] Add instalation rules for dpdk files.

2015-10-16 Thread Olivier MATZ
Hi Mario, Few last comments here, please see below. On 10/05/2015 10:19 PM, Mario Carrillo wrote: > DPDK package lacks of a mechanism to install libraries, headers > applications, kernel modules and sdk files to a file system tree. > > This patch set allows to install files according to the next

[dpdk-dev] [PATCH v4 6/7] mk: Add rule for installing sdk files

2015-10-16 Thread Olivier MATZ
Hi Panu, On 10/05/2015 10:20 PM, Mario Carrillo wrote: > Add hierarchy-file support to the DPDK makefiles, scripts, > examples, tools, config files and headers. > > When invoking "make install-sdk" makefiles, scripts, > examples, tools, config files will be installed in: > $(DESTDIR)/$(SDK_DIR) >

[dpdk-dev] [PATCH v4 5/7] mk: Add rule for installing documentation

2015-10-16 Thread Olivier MATZ
Hi Mario, On 10/05/2015 10:20 PM, Mario Carrillo wrote: > Add hierarchy-file support to the DPDK documentation. > > When invoking "make install-doc" documentation files will > be installed in: $(DESTDIR)/$(DOC_DIR) where > DOC_DIR=$(DESTDIR)/usr/share/doc/dpdk by default. > > You can override DO

[dpdk-dev] [PATCH v4 2/7] mk: Add rule for installing app files

2015-10-16 Thread Olivier MATZ
Hi Mario, On 10/05/2015 10:20 PM, Mario Carrillo wrote: > Add hierarchy-file support to the DPDK app files, > nic bind file and cpu layout file. > > When invoking "make install-bin" app files will > be installed in: $(DESTDIR)/$(BIN_DIR) > where BIN_DIR=/usr/bin by default. > > You can override

[dpdk-dev] [PATCH v4 1/7] mk: Add rule for installing headers

2015-10-16 Thread Olivier MATZ
Hi Mario, Thank you for this patch series, and thank you Panu for the good comments on this series. Please see some comments below. On 10/05/2015 10:20 PM, Mario Carrillo wrote: > Add hierarchy-file support to the DPDK headers. > > When invoking "make install-headers" headers will > be installe

[dpdk-dev] [PATCH v2 4/4] doc: release notes update for RSS enhancement

2015-10-16 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_2.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..d9d2a3d 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides/rel_no

[dpdk-dev] [PATCH v2 3/4] ixgbe: VF RSS reta/hash query and update

2015-10-16 Thread Wenzhuo Lu
This patch implements the VF RSS reta/hash query and update function on 10G NICs. But the update function is only provided for x550. Because the other NICs don't have the separate registers for VF, we don't want to let a VF NIC change the shared RSS reta/hash registers. It may cause PF and other VF

[dpdk-dev] [PATCH v2 2/4] ixgbe: VF RSS config on x550

2015-10-16 Thread Wenzhuo Lu
On x550, there're separate registers provided for VF RSS while on the other 10G NICs, for example, 82599, VF and PF share the same registers. This patch lets x550 use the VF specific registers when doing RSS configuration on VF. The behavior of other 10G NICs doesn't change. Signed-off-by: Wenzhuo

[dpdk-dev] [PATCH v2 1/4] ixgbe: 512 entries RSS table on x550

2015-10-16 Thread Wenzhuo Lu
Comparing with the older NICs, x550's RSS redirection table is enlarged to 512 entries. As the original code is for the NICs which have a 128 entries RSS table, it means only part of the RSS table is set on x550. So, RSS cannot work as expected on x550, it doesn't redirect the packets evenly. This

[dpdk-dev] [PATCH v2 0/4] RSS enhancement on Intel x550 NIC

2015-10-16 Thread Wenzhuo Lu
This patch set implements the RSS enhancement on x550. The enhancement includes, the PF RSS redirection table is enlarged from 128 entries to 512 entries, the VF doesn't share the same registers with PF and per VF RSS redirection table is provided. V2: Condense the code. Add release notes. Wenzhu

[dpdk-dev] [PATCH 2/2] uio: new driver to support PCI MSI-X

2015-10-16 Thread Thomas Monjalon
To sum it up, We want to remove the need of the out-of-tree module igb_uio. 3 possible implementations were discussed so far: - new UIO driver - extend uio_pci_generic - VFIO without IOMMU It is preferred to avoid creating yet another module to support. That's why the uio_pci_generic extension wou

[dpdk-dev] [RFC PATCH v2] vhost: Add VHOST PMD

2015-10-16 Thread Tetsuya Mukawa
On 2015/09/24 2:47, Loftus, Ciara wrote: >> The patch introduces a new PMD. This PMD is implemented as thin wrapper >> of librte_vhost. It means librte_vhost is also needed to compile the PMD. >> The PMD can have 'iface' parameter like below to specify a path to connect >> to a virtio-net device. >

[dpdk-dev] RSS API discussion

2015-10-16 Thread Nélio Laranjeiro
On Fri, Oct 16, 2015 at 01:40:00PM +, Lu, Wenzhuo wrote: > Hi N?lio, > > > Hi Wenzhuo, > > > > We should discuss about this API for a future release of DPDK because this > > one > > lacks in flexibility. Some other NICs have indirection tables with a > > different/configurable size, and th

[dpdk-dev] [PATCH 9/9] rte_ether: mark deprecated statistics with attribute

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger Use deprecated attribute to highlight any use of fields that are marked as going away in the rte_ether device statistics. Signed-off-by: Stephen Hemminger --- lib/librte_eal/common/include/rte_common.h | 3 +++ lib/librte_ether/rte_ethdev.h | 22 ++

[dpdk-dev] [PATCH 8/9] test-pmd: don't check deprecated ethernet statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger Several fields in ether stats are marked deprecated, just ignore them. Signed-off-by: Stephen Hemminger --- app/test-pmd/config.c| 30 + app/test-pmd/testpmd.c | 50 +--- app/test/test_pmd_per

[dpdk-dev] [PATCH 7/9] e1000: don't report deprecated statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger These fields are marked deprecated don't use them. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/em_ethdev.c | 15 +++ drivers/net/e1000/igb_ethdev.c | 15 ++- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/net/

[dpdk-dev] [PATCH 6/9] enic: don't fill in deprecated statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger Some fields in rte_ethdev statistics are marked deprecated and should not be reported by drivers. Signed-off-by: Stephen Hemminger --- drivers/net/enic/enic_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_ma

[dpdk-dev] [PATCH 5/9] i40e: don't report deprecated statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger The fields in ethernet statistics that are marked deprecated should not be filled in. Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_ethdev.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/dri

[dpdk-dev] [PATCH 4/9] cxgbe: don't report deprecated statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger Some of the ethernet device statistics are marked deprecated and should not be reported. Signed-off-by: Stephen Hemminger --- drivers/net/cxgbe/cxgbe_ethdev.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/net/cxgbe/cxgbe_e

[dpdk-dev] [PATCH 3/9] bond: don't sum deprecated statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger These statistics are marked deprecated, leave them alone. Signed-off-by: Stephen Hemminger --- drivers/net/bonding/rte_eth_bond_pmd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd

[dpdk-dev] [PATCH 2/9] ixgbe: drop statistics marked for deprecation

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger The statistics fields that are marked deprecated should not be reported. Signed-off-by: Stephen Hemminger --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index

[dpdk-dev] [PATCH 1/9] vmxnet3: drop deprecated statistics

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger Don't report statistic values marked for deprecation Signed-off-by: Stephen Hemminger --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c..

[dpdk-dev] [PATCH 0/9] deprecate fields in rte_ethdev

2015-10-16 Thread Stephen Hemminger
From: Stephen Hemminger Complete the work that was started by Maryam Tahhan to deprecate driver specific fields in Ethernet statistics. This fixes all the drivers, then tests, and finally actually marks them as deprecated. Stephen Hemminger (9): vmxnet3: drop deprecated statistics ixgbe: dr

[dpdk-dev] [PATCH 4/5] eal: add an error code to plugin init for the next step

2015-10-16 Thread Panu Matilainen
On 10/16/2015 04:14 PM, Panu Matilainen wrote: > On 10/16/2015 03:59 PM, Bruce Richardson wrote: >> On Fri, Oct 16, 2015 at 02:58:16PM +0300, Panu Matilainen wrote: >>> Signed-off-by: Panu Matilainen >>> --- >>> lib/librte_eal/bsdapp/eal/eal.c| 3 ++- >>> lib/librte_eal/common/eal_c

[dpdk-dev] [PATCH 4/5] eal: add an error code to plugin init for the next step

2015-10-16 Thread Panu Matilainen
On 10/16/2015 03:59 PM, Bruce Richardson wrote: > On Fri, Oct 16, 2015 at 02:58:16PM +0300, Panu Matilainen wrote: >> Signed-off-by: Panu Matilainen >> --- >> lib/librte_eal/bsdapp/eal/eal.c| 3 ++- >> lib/librte_eal/common/eal_common_options.c | 3 ++- >> lib/librte_eal/common/eal

[dpdk-dev] [PATCH 1/5] eal: refactor plugin list append from eal_parse_args() to a helper function

2015-10-16 Thread Panu Matilainen
On 10/16/2015 03:57 PM, Bruce Richardson wrote: > On Fri, Oct 16, 2015 at 02:58:13PM +0300, Panu Matilainen wrote: >> Signed-off-by: Panu Matilainen >> --- >> lib/librte_eal/linuxapp/eal/eal.c | 28 +++- >> 1 file changed, 19 insertions(+), 9 deletions(-) >> >> diff --gi

[dpdk-dev] Unsafe array accesses in rte_sched.c

2015-10-16 Thread Simon Kågström
On 2015-10-16 15:39, Dumitrescu, Cristian wrote: >> port->qsize_add[12] = port->qsize_add[11] + port->qsize[2]; >> port->qsize_add[13] = port->qsize_add[12] + port->qsize[3]; >> port->qsize_add[14] = port->qsize_add[13] + port->qsize[3]; >> port->qsize_add[15] = port

[dpdk-dev] [PATCH] vhost-user: enable virtio 1.0

2015-10-16 Thread Yuanhan Liu
On Fri, Oct 16, 2015 at 09:43:09AM +0200, Andriy Berestovskyy wrote: > Hi guys, > Just a minor note: ARM is bi-endian in fact. Thank you for clarifying that my old memory is right :) --yliu > For instance, there are > both endians tool chains available on Linaro. > > Andriy > > > On F

[dpdk-dev] dpdk/vhost-user and VM migration

2015-10-16 Thread Yuanhan Liu
On Wed, Oct 14, 2015 at 12:16:29AM +0300, Michael S. Tsirkin wrote: > Hello! > I am currently looking at how using dpdk on host, accessing VM memory > using the vhost-user interface, interacts with VM migration. > > The issue is that any changes made to VM memory need to be tracked so > that updat

[dpdk-dev] Would you check if there is deadlock in rte_distributor_process() librte_distributor?

2015-10-16 Thread 최익성
Dear DPDK experts. Thank you very much for your excellent work and great contributions. I have a question about distributor library source code. /dpdk/lib/librte_distributor/rte_distributor.c In rte_distributor_process(), rte_distributor_process() { mbufs[] -> d->backlog -> d->bufs } =>

[dpdk-dev] New mailing list for users

2015-10-16 Thread Dave Neary
Thanks Thomas! Great news, I'm signed up and spreading the word via the tweets. Dave. On 10/15/2015 12:26 AM, Thomas Monjalon wrote: > Hello, > > Following this discussion: > http://dpdk.org/ml/archives/dev/2015-October/025032.html > the mailing-list users at dpdk.org has been created. >

[dpdk-dev] Why rte_eal_ivshmem_obj_initd() does not add memory pools to rte_mempool_tailq list?

2015-10-16 Thread Mauricio Vásquez
Hi Anatoly, Thank you very much for your answer, it clarifies it for me. I absolutely agree with you that adding mempools support should not be implemented until a solution for mempool cache corruption is found. Mauricio, On 16 October 2015 at 15:00, Burakov, Anatoly wrote: > Hi Mauricio > > >

[dpdk-dev] [PATCH v2 0/4] RSS enhancement on Intel x550 NIC

2015-10-16 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Friday, October 16, 2015 2:06 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 0/4] RSS enhancement on Intel x550 NIC > > This patch set implements the RSS enhancement on x550. > The

[dpdk-dev] Question about zero length segments in received mbuf

2015-10-16 Thread Bruce Richardson
On Fri, Oct 16, 2015 at 02:32:15PM +0100, Tom Kiely wrote: > Hi, > I am currently experiencing a serious issue and was hoping someone else > might have encountered it. > > I have a KVM VM using two ixgbe interfaces A and B (configured to use PCI > passthrough) and forwarding traffic from inter

[dpdk-dev] [PATCH 5/5] eal: add support for driver directory concept

2015-10-16 Thread Panu Matilainen
Add a new EAL option -D for loading all drivers from a given directory. Additionally a default driver directory can be set in build-time configuration, in which case it will be always be used when EAL is initialized (but can be overridden or disabled with -D). This simplifies usage in shared libra

[dpdk-dev] [PATCH 4/5] eal: add an error code to plugin init for the next step

2015-10-16 Thread Panu Matilainen
Signed-off-by: Panu Matilainen --- lib/librte_eal/bsdapp/eal/eal.c| 3 ++- lib/librte_eal/common/eal_common_options.c | 3 ++- lib/librte_eal/common/eal_options.h| 2 +- lib/librte_eal/linuxapp/eal/eal.c | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff

[dpdk-dev] [PATCH 3/5] eal: move plugin loading to eal/common

2015-10-16 Thread Panu Matilainen
There's no good reason to limit plugins to Linux, make it available on FreeBSD too. Signed-off-by: Panu Matilainen --- lib/librte_eal/bsdapp/eal/eal.c| 2 ++ lib/librte_eal/common/eal_common_options.c | 52 + lib/librte_eal/common/eal_options.h|

[dpdk-dev] [PATCH 2/5] eal: refactor plugin init from eal_parse_args() to a helper function

2015-10-16 Thread Panu Matilainen
Signed-off-by: Panu Matilainen --- lib/librte_eal/linuxapp/eal/eal.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index cc66d9f..d8a53e4 100644 --- a/lib/librte_eal/linuxapp/eal/ea

[dpdk-dev] [PATCH 1/5] eal: refactor plugin list append from eal_parse_args() to a helper function

2015-10-16 Thread Panu Matilainen
Signed-off-by: Panu Matilainen --- lib/librte_eal/linuxapp/eal/eal.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 33e1067..cc66d9f 100644 --- a/lib/librte_eal/linuxapp

[dpdk-dev] [PATCH 0/5 v2] Add support for driver directories

2015-10-16 Thread Panu Matilainen
This series adds support for driver directory concept based on idea by Thomas Monjalon back in February: http://dpdk.org/ml/archives/dev/2015-February/013285.html In the process FreeBSD also gains plugin support (but untested). Panu Matilainen (5): eal: refactor plugin list append from eal_pars

[dpdk-dev] [PATCH] vhost-user: enable virtio 1.0

2015-10-16 Thread Bruce Richardson
On Thu, Oct 15, 2015 at 04:18:59PM +0300, Michael S. Tsirkin wrote: > On Thu, Oct 15, 2015 at 02:08:39PM +0300, Marcel Apfelbaum wrote: > > Make vhost-user virtio 1.0 compatible by adding it to the > > supported features and keeping the header length > > the same as for mergeable RX buffers. > > >

[dpdk-dev] [Q] l2fwd in examples directory

2015-10-16 Thread Bruce Richardson
On Thu, Oct 15, 2015 at 11:08:57AM +0900, Moon-Sang Lee wrote: > There is codes as below in examples/l2fwd/main.c and I think > rte_eth_dev_socket_id(portid) > always returns -1(SOCKET_ID_ANY) since there is no association code between > port and > lcore in the example codes. Can you perhaps clari

[dpdk-dev] [PATCH] vhost-user: enable virtio 1.0

2015-10-16 Thread Yuanhan Liu
Reviewed-by: Yuanhan Liu And thanks for the work. --yliu On Thu, Oct 15, 2015 at 02:08:39PM +0300, Marcel Apfelbaum wrote: > Make vhost-user virtio 1.0 compatible by adding it to the > supported features and keeping the header length > the same as for mergeable RX buffers. > > Signed-o

[dpdk-dev] [PATCH] vhost-user: enable virtio 1.0

2015-10-16 Thread Yuanhan Liu
On Fri, Oct 16, 2015 at 09:20:18AM +0300, Michael S. Tsirkin wrote: > On Fri, Oct 16, 2015 at 10:24:38AM +0800, Yuanhan Liu wrote: > > On Thu, Oct 15, 2015 at 04:18:59PM +0300, Michael S. Tsirkin wrote: > > > On Thu, Oct 15, 2015 at 02:08:39PM +0300, Marcel Apfelbaum wrote: > > > > Make vhost-user

[dpdk-dev] Question about zero length segments in received mbuf

2015-10-16 Thread Tom Kiely
Hi, I am currently experiencing a serious issue and was hoping someone else might have encountered it. I have a KVM VM using two ixgbe interfaces A and B (configured to use PCI passthrough) and forwarding traffic from interface A via B. At about 4 million pps of 64 byte frames, the rx drive

[dpdk-dev] [PATCHv5 1/8] ethdev: add new API to retrieve RX/TX queue information

2015-10-16 Thread Bruce Richardson
On Wed, Oct 14, 2015 at 06:44:38PM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > > Sent: Wednesday, October 14, 2015 5:09 PM > > To: Ananyev, Konstantin > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev]

[dpdk-dev] [PATCH 4/5] eal: add an error code to plugin init for the next step

2015-10-16 Thread Bruce Richardson
On Fri, Oct 16, 2015 at 02:58:16PM +0300, Panu Matilainen wrote: > Signed-off-by: Panu Matilainen > --- > lib/librte_eal/bsdapp/eal/eal.c| 3 ++- > lib/librte_eal/common/eal_common_options.c | 3 ++- > lib/librte_eal/common/eal_options.h| 2 +- > lib/librte_eal/linuxapp/eal/ea

[dpdk-dev] [PATCH 1/5] eal: refactor plugin list append from eal_parse_args() to a helper function

2015-10-16 Thread Bruce Richardson
On Fri, Oct 16, 2015 at 02:58:13PM +0300, Panu Matilainen wrote: > Signed-off-by: Panu Matilainen > --- > lib/librte_eal/linuxapp/eal/eal.c | 28 +++- > 1 file changed, 19 insertions(+), 9 deletions(-) > > diff --git a/lib/librte_eal/linuxapp/eal/eal.c > b/lib/librte_eal

[dpdk-dev] [RFC PATCH v2] vhost: Add VHOST PMD

2015-10-16 Thread Bruce Richardson
On Mon, Aug 31, 2015 at 12:55:26PM +0900, Tetsuya Mukawa wrote: > The patch introduces a new PMD. This PMD is implemented as thin wrapper > of librte_vhost. It means librte_vhost is also needed to compile the PMD. > The PMD can have 'iface' parameter like below to specify a path to connect > to a v

[dpdk-dev] RSS API discussion

2015-10-16 Thread Lu, Wenzhuo
Hi N?lio, > Hi Wenzhuo, > > We should discuss about this API for a future release of DPDK because this one > lacks in flexibility. Some other NICs have indirection tables with a > different/configurable size, and the current API does not help to manage it. > > For ConnectX-4 I have made a lot o

[dpdk-dev] Unsafe array accesses in rte_sched.c

2015-10-16 Thread Dumitrescu, Cristian
> -Original Message- > From: Simon K?gstr?m [mailto:simon.kagstrom at netinsight.net] > Sent: Friday, October 16, 2015 9:49 AM > To: Dumitrescu, Cristian ; dev at dpdk.org > Subject: Unsafe array accesses in rte_sched.c > > Hi! > > I'm investigating DPDK support for pacing output stream

[dpdk-dev] DPDK patch backlog

2015-10-16 Thread Lu, Wenzhuo
Hi Hemminger, +1 > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhu, Heqing > Sent: Friday, October 16, 2015 10:47 AM > To: Stephen Hemminger; Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] DPDK patch backlog > > +1 > > -Original Messa

[dpdk-dev] Mellanox PMD failure w/DPDK-2.1.0 and MLNX_OFED-3.1-1.0.3

2015-10-16 Thread Stephen Hemminger
On Fri, 16 Oct 2015 12:11:14 -0700 "Bill O'Hara" wrote: > Hi Olga, > > Sorry for slow response. Initially, raw_ethernet_bw and raw_ethernet_lat > were not working. > > * we clean installed some boxes, rather than upgrading from previous ofed > etc and now the raw_ethernet_bw and raw_ethernet_la

[dpdk-dev] Why rte_eal_ivshmem_obj_initd() does not add memory pools to rte_mempool_tailq list?

2015-10-16 Thread Burakov, Anatoly
Hi Mauricio > Dear DPDK community, > > Some time ago I was trying to map a memory pool into a guest using > IVSHMEM as described here: > > http://comments.gmane.org/gmane.comp.networking.dpdk.devel/17779 > > After some time I decided to review the code of eal_ivshmem.c, I noticed > that in the

[dpdk-dev] Mellanox PMD failure w/DPDK-2.1.0 and MLNX_OFED-3.1-1.0.3

2015-10-16 Thread Bill O'Hara
Hi Olga, Sorry for slow response. Initially, raw_ethernet_bw and raw_ethernet_lat were not working. * we clean installed some boxes, rather than upgrading from previous ofed etc and now the raw_ethernet_bw and raw_ethernet_lat work. (This is on ubuntu14.04 with most recent mellanox ofed release).

[dpdk-dev] [PATCH 0/4] RSS enhancement on Intel x550 NIC

2015-10-16 Thread Nélio Laranjeiro
On Mon, Sep 28, 2015 at 03:52:27PM +0800, Wenzhuo Lu wrote: > This patch set implements the RSS enhancement on x550. > The enhancement includes, the PF RSS redirection table is enlarged > from 128 entries to 512 entries, the VF doesn't share the same > registers with PF and per VF RSS redirection t

[dpdk-dev] [PATCH v6 9/9] doc: dynamic rss configuration for bonding

2015-10-16 Thread Tomasz Kulasek
Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 34 ++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/doc/guide

[dpdk-dev] [PATCH v6 8/9] doc: fixed spellings and typos

2015-10-16 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst b/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst index 96e554f..0

[dpdk-dev] [PATCH v6 7/9] bonding: per queue stats

2015-10-16 Thread Tomasz Kulasek
This patch adds fills bonding port's stats with a sum of corresponding values taken from bonded slaves, when stats are requested for bonding port. v5 changes: - removed queue_stats_mapping_set from eth_dev_ops of bonding device Signed-off-by: Tomasz Kulasek --- drivers/net/bonding/rte_eth_bond

[dpdk-dev] [PATCH v6 6/9] test: dynamic rss configuration

2015-10-16 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- app/test/Makefile|8 + app/test/test_link_bonding_rssconf.c | 679 ++ 2 files changed, 687 insertions(+) create mode 100644 app/test/test_link_bonding_rssconf.c diff --git a/app/test/Makefile b/app/test/M

[dpdk-dev] [PATCH v6 5/9] null: virtual dynamic rss configuration

2015-10-16 Thread Tomasz Kulasek
This implementation allows to set and read RSS configuration for null device, and is used to validate right values propagation over the slaves, in test units for dynamic RSS configuration for bonding. v6 changes: - reordered with patch 4/9 - recreated due to the changes in patch 4/9 v5 changes:

[dpdk-dev] [PATCH v6 4/9] null: export eth_dev_null_create

2015-10-16 Thread Tomasz Kulasek
v6 changes: - reordered with patch 5/9 - fixed forward dependency to the patch 5/9 Signed-off-by: Tomasz Kulasek --- drivers/net/null/Makefile |2 +- drivers/net/null/rte_eth_null.c |4 ++- drivers/net/null/rte_eth_null.h | 40 +

[dpdk-dev] [PATCH v6 3/9] null: extend number of virtual queues

2015-10-16 Thread Tomasz Kulasek
This patch adds a possibility to configure more than one queue on null device. v5 changes: - fixed queues number configuration (using internals->nb_*_queues instead of dev->data->nb_*_queues) Signed-off-by: Tomasz Kulasek --- drivers/net/null/rte_eth_null.c | 28 +++---

[dpdk-dev] [PATCH v6 2/9] null: fix segfault when null_pmd added to bonding

2015-10-16 Thread Tomasz Kulasek
This patch initializes eth_dev->link_intr_cbs queue used when null pmd is added to the bonding. v5 changes: - removed unnecessary malloc for eth_driver (rte_null_pmd) Signed-off-by: Tomasz Kulasek --- drivers/net/null/rte_eth_null.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/driv

[dpdk-dev] [PATCH v6 1/9] bonding: rss dynamic configuration

2015-10-16 Thread Tomasz Kulasek
Bonding device implements independent management of RSS settings. It stores its own copies of settings i.e. RETA, RSS hash function and RSS key. It?s required to ensure consistency. 1) RSS hash function set for bonding device is maximal set of RSS hash functions supported by all bonded devices. Th

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

2015-10-16 Thread Tomasz Kulasek
OVERVIEW 1) Setting .rxmode.mq_mode for bonding device to ETH_MQ_RX_RSS makes bonding device fully RSS-capable, so all slaves are synchronized with its configuration. This mode is intended to provide RSS configuration as known from "dynamic RSS configuration for one port" and made slaves t

[dpdk-dev] [PATCH v3 4/4] tools: add support for nfp_uio

2015-10-16 Thread Alejandro.Lucero
From: "Alejandro.Lucero" This patch adds support for using nfp_uio and therefore working with Netronome nfp6000 card. Signed-off-by: Alejandro.Lucero Signed-off-by: Rolf.Neugebauer --- tools/dpdk_nic_bind.py |8 ++-- tools/setup.sh | 122 ++

[dpdk-dev] [PATCH v3 3/4] doc: add netronome nfp6000 guide

2015-10-16 Thread Alejandro.Lucero
From: "Alejandro.Lucero" Signed-off-by: Alejandro.Lucero Signed-off-by: Rolf.Neugebauer --- doc/guides/nics/index.rst |1 + doc/guides/nics/nfp.rst | 270 + 2 files changed, 271 insertions(+) create mode 100644 doc/guides/nics/nfp.rst diff -

[dpdk-dev] [PATCH v3 2/4] nfp-uio: new uio driver for netronome nfp6000 card

2015-10-16 Thread Alejandro.Lucero
From: "Alejandro.Lucero" This patch adds a new UIO kernel driver for supporting PCI VFs with Netronome nfp6000 card. Future PCI PF support will be based on changes to this module. Signed-off-by: Alejandro.Lucero Signed-off-by: Rolf.Neugebauer --- lib/librte_eal/common/include/rte_pci.h |

[dpdk-dev] [PATCH v3 1/4] nfp: new poll mode driver for netronome nfp6000 card

2015-10-16 Thread Alejandro.Lucero
From: "Alejandro.Lucero" This patch adds a new PMD for using PCI Virtual Functions with Netronome nfp6000 card. Signed-off-by: Alejandro.Lucero Signed-off-by: Rolf.Neugebauer --- MAINTAINERS |9 + config/common_linuxapp |6 + doc/guides/rel_notes

[dpdk-dev] [PATCH v3 0/4] support for netronome nfp-6xxx card

2015-10-16 Thread Alejandro.Lucero
From: "Alejandro.Lucero" This patchset adds a new PMD for Netronome NFP-6xxx card along with a new UIO driver, documentation and minor changes to configuration scripts. V3: - Making all patches independent for applying and building - changing commits messages following standard V2: - Code S

[dpdk-dev] [PATCH 3/3] vhost: protect user_get_vring_base from unknown devices

2015-10-16 Thread Jerome Jutteau
get_device return is not checked and may cause segfault when device is not found. This patch fix this. Signed-off-by: Jerome Jutteau --- lib/librte_vhost/vhost_user/virtio-net-user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_vhost/vhost_user/virtio-net-user.c b/lib/librte

[dpdk-dev] [PATCH 2/3] vhost: check that a device exists during reset_owner

2015-10-16 Thread Jerome Jutteau
virtio-net search for it's device in reset_owner. The function don't check the return result of get_config_ll_entry which can be NULL. Signed-off-by: Jerome Jutteau --- lib/librte_vhost/virtio-net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_

[dpdk-dev] [PATCH 1/3] vhost: avoid device identifier to be reset to 0 in reset_owner

2015-10-16 Thread Jerome Jutteau
virtio-net clean and init device after a VHOST_USER_RESET_OWNER. This reset device identifier to 0 and break ll_root listing logic. This patch keep the old device identifier and re-write it on the cleaned device. Signed-off-by: Jerome Jutteau --- lib/librte_vhost/virtio-net.c | 3 +++ 1 file cha

[dpdk-dev] [PATCH 0/3] vhost: Fix virtio-net on VHOST_USER_RESET_OWNER

2015-10-16 Thread Jerome Jutteau
Hi, I have a bug when Qemu with two vhost interfaces gently stops (SIGINT). When stopping, it sends two RESET_OWNER for each interface: - Before stopping, we have two interfaces identifers: 0 and 1. - The first reset_owner call resets device 1 (and this id device_fh) to zero, the device list now

[dpdk-dev] [PATCH] vhost-user: enable virtio 1.0

2015-10-16 Thread Michael S. Tsirkin
On Fri, Oct 16, 2015 at 09:43:09AM +0200, Andriy Berestovskyy wrote: > Hi guys, > Just a minor note: ARM is bi-endian in fact. For instance, there are > both endians tool chains available on Linaro. > > Andriy Yea. BE support is around for legacy stuff. So I'm not sure it's all that important to

[dpdk-dev] [PATCH v3 36/36] doc: update release notes for e1000 base code update

2015-10-16 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_2_2.rst | 22 ++ 1 file changed, 22 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 5687676..36a9d69 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++

[dpdk-dev] [PATCH v3 35/36] e1000: add new devices

2015-10-16 Thread Wenzhuo Lu
Add the new e1000 devices to the DPDK PCI device list. Signed-off-by: Wenzhuo Lu --- lib/librte_eal/common/include/rte_pci_dev_ids.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/librte_eal/common/include/rte_pci_dev_ids.h b/lib/librte_eal/common/include/rte_pci_dev_ids.h index 2

[dpdk-dev] [PATCH v3 34/36] e1000/base: some minor change

2015-10-16 Thread Wenzhuo Lu
Some minor code change. No functionality impact. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 27 --- drivers/net/e1000/base/e1000_ich8lan.h | 1 + 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers/net/e1000/base/e1000_ich

[dpdk-dev] [PATCH v3 33/36] e1000/base: fix to enable both ulp and EEE in Sx state

2015-10-16 Thread Wenzhuo Lu
This patch implements a modified flow that allows both ULP and EEE in Sx(Sticky mode). Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/e1000/base/e1000_ich8lan.c b/drivers/net/e1000/base/e1000_ich8lan.c i

[dpdk-dev] [PATCH v3 32/36] e1000/base: synchronization of MAC-PHY interface only on non- ME systems

2015-10-16 Thread Wenzhuo Lu
On power up, the MAC - PHY interface needs to be set to PCIe, even if cable is disconnected. In ME systems, the ME handles this on exit from Sx(Sticky mode) state. In non-ME, the driver handles it. Added a check for non-ME system to the driver code that handles that. Signed-off-by: Wenzhuo Lu --

[dpdk-dev] [PATCH v3 31/36] e1000/base: move the print to the right position

2015-10-16 Thread Wenzhuo Lu
This info need not to be always printed. Move it into the if. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/e1000/base/e1000_phy.c b/drivers/net/e1000/base/e1000_phy.c index 6bbb379..d43b7ce 1

[dpdk-dev] [PATCH v3 30/36] e1000/base: use the correct i210 register for EEMNGCTL

2015-10-16 Thread Wenzhuo Lu
The i210 has two EEPROM access registers that are located in non-standard offsets: EEARBC and EEMNGCTL. EEARBC was fixed previously and EEMNGCTL should also be corrected. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_i210.c | 30 ++ drivers/net/e1000/base

[dpdk-dev] [PATCH v3 29/36] e1000/base: implement 88E1543 PHY initialization

2015-10-16 Thread Wenzhuo Lu
The initializtion process for 88E1543 PHY. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_82575.c | 106 - drivers/net/e1000/base/e1000_82575.h | 1 + drivers/net/e1000/base/e1000_defines.h | 1 + 3 files changed, 107 insertions(+), 1 deletion(

[dpdk-dev] [PATCH v3 28/36] e1000/base: increase timeout of polling bit RSPCIPHY in check_reset_block

2015-10-16 Thread Wenzhuo Lu
Previously, in check_reset_block RSPCIPHY was polled for 100 ms before determining that the ME veto is set. This needed to be increased to 300 ms. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v3 27/36] e1000/base: fix for i354 88E1112 PHY using AutoMedia Detect

2015-10-16 Thread Wenzhuo Lu
e1000_check_for_link_media_swap() is supposed to check PHY page 0 for copper and PHY page 1 for "other" (fiber) link. We switched back from page 1 to page 0 too soon, before e1000_check_for_link_82575() is executed and we were never finding link on fiber (other). Note: The precedence of link type

[dpdk-dev] [PATCH v3 26/36] e1000/base: disable extension header parsing for IPv6

2015-10-16 Thread Wenzhuo Lu
All 1G Server products need to have IPv6 extension headers turned off. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_82575.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/e1000/base/e1000_82575.c b/drivers/net/e1000/base/e1000_82575.c i

[dpdk-dev] [PATCH v3 25/36] e1000/base: set correct value of beacon duration

2015-10-16 Thread Wenzhuo Lu
Fix for I217 Packet Loss issue - The Management Engine sets the FEXTNVM4 Beacon Duration incorrectly. This fix ensures that the correct value will always be set. Correct value for this field is 8 usec. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 14 ++ 1 f

[dpdk-dev] [PATCH v3 24/36] e1000/base: remove FIXME comment

2015-10-16 Thread Wenzhuo Lu
The "FIXME" comment is revomed from e1000_acquire_swfw_sync_80003es2lan but forgotten being removed from e1000_acquire_swfw_sync_82575 while the similar changes were made to both. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_82575.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[dpdk-dev] [PATCH v3 23/36] e1000/base: K1 flow fixes

2015-10-16 Thread Wenzhuo Lu
This patch is for the following updates to the K1 configurations: Tx idle period for entering K1 should be 128 ns. Minimum Tx idle period in K1 should be 256 ns. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 47 +- drivers/net/e1000/base/e

[dpdk-dev] [PATCH v3 22/36] e1000/base: add bit for disable packetbuffer read

2015-10-16 Thread Wenzhuo Lu
Added bit FEXTNVM7[18], that controls disabling MAC packet buffer read. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/e1000/base/e1000_ich8lan.h b/drivers/net/e1000/base/e1000_ich8lan.h index f5d8ab1..f7f66

[dpdk-dev] [PATCH v3 21/36] e1000/base: cleanup NAHUM6LP_HW tags

2015-10-16 Thread Wenzhuo Lu
Remove all NAHUM6LP_HW tags. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_hw.h | 6 +++--- drivers/net/e1000/base/e1000_ich8lan.c | 9 + drivers/net/e1000/base/e1000_ich8lan.h | 29 ++--- drivers/net/e1000/base/e1000_osdep.h | 1 - drivers/

[dpdk-dev] [PATCH v3 20/36] e1000/base: fix link detect flow

2015-10-16 Thread Wenzhuo Lu
In case that auto-negotiate is not enabled, call e1000_setup_copper_link_generic instead of e1000_phy_setup_autoneg. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/base/e1000

[dpdk-dev] [PATCH v3 19/36] e1000/base: add return value for resume workaround

2015-10-16 Thread Wenzhuo Lu
Add u32 return value to function e1000_resume_workarounds_pchlan, so that calling function can detect PHY access failure during resuming flow. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 11 ++- drivers/net/e1000/base/e1000_ich8lan.h | 2 +- 2 files changed, 7

[dpdk-dev] [PATCH v3 18/36] e1000/base: fix TIPG value for non 10 half duplex mode

2015-10-16 Thread Wenzhuo Lu
TIPG value is increased when setting speed to 10 half to prevent packet loss. However, it was never decreased again when speed changes. This caused performance issues in the NDIS driver. Fix this to restore TIPG to default value on non 10 half. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/bas

[dpdk-dev] [PATCH v3 17/36] e1000/base: prevent ulp flow if cable connected

2015-10-16 Thread Wenzhuo Lu
Enabling ulp on link down when cable is connect caused an infinite loop of linkup/down indications in the NDIS driver. After discussed, correct flow is to enable ULP only when cable is disconnected. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_ich8lan.c | 3 +++ 1 file changed, 3 i

[dpdk-dev] [PATCH v3 16/36] e1000/base: add flags to set eee advertisement modes

2015-10-16 Thread Wenzhuo Lu
!!! REQUIRES DRIVER CHANGES !!! Change e1000_set_eee_i350 and e1000_set_eee_i354 to have flags allowing changes in the advertised EEE speeds. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_82575.c | 34 +++--- drivers/net/e1000/base/e1000_82575.h | 4 ++-

[dpdk-dev] [PATCH v3 15/36] e1000/base: apply paranoia to macro arguments

2015-10-16 Thread Wenzhuo Lu
Macro arguments need to be in parens since we can pass in expressions. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_api.h | 16 drivers/net/e1000/base/e1000_hw.h | 2 +- drivers/net/e1000/base/e1000_regs.h | 4 ++-- 3 files changed, 11 insertions(+), 11 deleti

[dpdk-dev] [PATCH v3 14/36] e1000/base: add EEARBC_I210 for i210

2015-10-16 Thread Wenzhuo Lu
EEARBC has changed on i210. It means EEARBC has a different address on i210 than on other NICs. So, add a new entity named EEARBC_I210 to the register list and make sure the right one is being used on i210. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_i210.c | 17 ++---

[dpdk-dev] [PATCH v3 13/36] e1000/base: add support for inverted format ETrackId

2015-10-16 Thread Wenzhuo Lu
There are some images which contain ETrackID in inverted format. This patch allows reading this format. Signed-off-by: Wenzhuo Lu --- drivers/net/e1000/base/e1000_nvm.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/base/e1000_nvm.c b/drivers/net/e100

  1   2   >