[dpdk-dev] [PATCH 2/2] examples/vhost: vhost example modification to use vhost lib API

2014-09-18 Thread Huawei Xie
This vhost example demonstrates how to integrate user space vhost with DPDK accelerated ethernet vSwitch. 1) rte_vhost_driver_register initialises vhost driver. 2) rte_vhost_driver_callback_register registers new_device/destroy_device callbacks. Those callbacks should be implemented in

[dpdk-dev] [PATCH 1/2] examples/vhost: copy old vhost example files

2014-09-18 Thread Huawei Xie
main.c and main.h are refactored to become vhost lib in vhost lib patch, thus are removed. Here they are copied back from old vhost example without any modification. Signed-off-by: Huawei Xie --- examples/vhost/main.c | 3722 +

[dpdk-dev] [PATCH 0/2] examples/vhost: vhost example based on vhost lib API

2014-09-18 Thread Huawei Xie
Old vhost example consists of vhost cuse driver, virtio device management, and VMDQ based packet switching logic. vhost cuse driver and virtio device management are moved into vhost lib. This patch modifies vhost example to use vhost lib API. Huawei Xie (2): copy main.c main.h from old vhost

[dpdk-dev] [PATCH 0/4] Add DSO symbol versioning to support backwards compatibility

2014-09-18 Thread Thomas Monjalon
Hi Neil, 2014-09-15 15:23, Neil Horman: > The DPDK ABI develops and changes quickly, which makes it difficult for > applications to keep up with the latest version of the library, especially > when > it (the DPDK) is built as a set of shared objects, as applications may be > built > against an

[dpdk-dev] [PATCH 3/5] testpmd: Change rxfreet default to 32

2014-09-18 Thread Thomas Monjalon
2014-09-18 15:53, Richardson, Bruce: > > > --- a/app/test-pmd/testpmd.c > > > +++ b/app/test-pmd/testpmd.c > > > @@ -225,7 +225,7 @@ struct rte_eth_thresh tx_thresh = { > > > /* > > > * Configurable value of RX free threshold. > > > */ > > > -uint16_t rx_free_thresh = 0; /* Immediately free

[dpdk-dev] [PATCH 0/3] New Thread Safe Hash Library

2014-09-18 Thread Thomas Monjalon
2014-09-18 15:31, De Lara Guarch, Pablo: > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Thread safe hash tables seem to me like a configuration option rather than > > a new > > library. Instead of creating a whole new library (with a new API and ABI > > to maintain, why not just add

[dpdk-dev] [PATCH 2/5] ixgbe: add prefetch to improve slow-path tx perf

2014-09-18 Thread Bruce Richardson
On Thu, Sep 18, 2014 at 11:29:30AM -0400, Neil Horman wrote: > On Thu, Sep 18, 2014 at 02:36:13PM +0100, Bruce Richardson wrote: > > On Wed, Sep 17, 2014 at 01:59:36PM -0400, Neil Horman wrote: > > > On Wed, Sep 17, 2014 at 03:35:19PM +, Richardson, Bruce wrote: > > > > > > > > >

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Bruce Richardson
On Thu, Sep 18, 2014 at 11:03:12AM -0400, Neil Horman wrote: > On Thu, Sep 18, 2014 at 12:35:21PM +, Richardson, Bruce wrote: > > > -Original Message- > > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > > Sent: Thursday, September 18, 2014 1:25 PM > > > To: Thomas Monjalon >

[dpdk-dev] Maximum possible throughput with the KNI DPDK Application

2014-09-18 Thread Malveeka Tewari
[+dev at dpdk.org] Sure, I understand that. The 7Gb/s performance with iperf that I was getting was with one end-host using the KNI app and the other host running the traditional linux stack. With both end hosts running the KNI app, I see about 2.75Gb/s which is understandable because the

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Richardson, Bruce
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, September 18, 2014 4:51 PM > To: Thomas Monjalon > Cc: Richardson, Bruce; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used > RHEL > 6) > > On Thu, Sep

[dpdk-dev] [PATCH 3/5] testpmd: Change rxfreet default to 32

2014-09-18 Thread Richardson, Bruce
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Wednesday, September 17, 2014 4:30 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 3/5] testpmd: Change rxfreet default to 32 > > On Wed, Sep 17, 2014 at 11:01:40AM +0100,

[dpdk-dev] [PATCH 0/3] New Thread Safe Hash Library

2014-09-18 Thread Stephen Hemminger
On Thu, 18 Sep 2014 11:34:28 +0100 Pablo de Lara wrote: > This is an alternative hash implementation to the existing hash library. > This patch set provides a thread safe hash implementation, it allows users > to use multiple readers/writers working on a same hash table. > Main differences

[dpdk-dev] [PATCH] librte_log: add function to retrieve log_level

2014-09-18 Thread Thomas Monjalon
> > Signed-off-by: Matthew Hall > > Acked-by: Bruce Richardson > > +/* Get global log level */ > > +uint32_t > > +rte_get_log_level() void is missing here Applied with fix and commit log which was sent later. Thanks -- Thomas

[dpdk-dev] Userland IP stack for DPDK

2014-09-18 Thread Vadim Suraev
I'll add it. Thanks On Sep 18, 2014 3:17 PM, "Neil Horman" wrote: > On Thu, Sep 18, 2014 at 07:13:43AM +0300, Vadim Suraev wrote: > > Hi, > > I've published the source code of Linux kernel IP stack ported to user > space > > and integrated with DPDK (1.6 currently). > > I includes also some

[dpdk-dev] [PATCH 0/4] Add DSO symbol versioning to support backwards compatibility

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 08:23:36PM +0200, Thomas Monjalon wrote: > Hi Neil, > > 2014-09-15 15:23, Neil Horman: > > The DPDK ABI develops and changes quickly, which makes it difficult for > > applications to keep up with the latest version of the library, especially > > when > > it (the DPDK) is

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 04:01:32PM +, Richardson, Bruce wrote: > > -Original Message- > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Sent: Thursday, September 18, 2014 4:51 PM > > To: Thomas Monjalon > > Cc: Richardson, Bruce; dev at dpdk.org > > Subject: Re: [dpdk-dev]

[dpdk-dev] [PATCH 3/5] testpmd: Change rxfreet default to 32

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 07:13:52PM +0200, Thomas Monjalon wrote: > 2014-09-18 15:53, Richardson, Bruce: > > > > --- a/app/test-pmd/testpmd.c > > > > +++ b/app/test-pmd/testpmd.c > > > > @@ -225,7 +225,7 @@ struct rte_eth_thresh tx_thresh = { > > > > /* > > > > * Configurable value of RX free

[dpdk-dev] [PATCH 3/5] testpmd: Change rxfreet default to 32

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 03:53:33PM +, Richardson, Bruce wrote: > > -Original Message- > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Sent: Wednesday, September 17, 2014 4:30 PM > > To: Richardson, Bruce > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH 3/5]

[dpdk-dev] [PATCH 2/5] ixgbe: add prefetch to improve slow-path tx perf

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 04:42:36PM +0100, Bruce Richardson wrote: > On Thu, Sep 18, 2014 at 11:29:30AM -0400, Neil Horman wrote: > > On Thu, Sep 18, 2014 at 02:36:13PM +0100, Bruce Richardson wrote: > > > On Wed, Sep 17, 2014 at 01:59:36PM -0400, Neil Horman wrote: > > > > On Wed, Sep 17, 2014 at

[dpdk-dev] [PATCH] librte_log: add function to retrieve log_level

2014-09-18 Thread Matthew Hall
On Thu, Sep 18, 2014 at 03:29:11PM +0200, Thomas Monjalon wrote: > void is missing here Ah yes, sorry for missing it. Thanks for correcting and applying, glad to have it available upstream. Matthew.

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Thomas Monjalon
> The refcnt field is contained within an anonymous union within the mbuf > data structure, and gcc 4.4 gives an error about an unknown field unless > the initialiser for the field is contained within extra braces. > > Signed-off-by: Bruce Richardson Acked-by: Thomas Monjalon Thanks Bruce, it

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Richardson, Bruce
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, September 18, 2014 1:25 PM > To: Thomas Monjalon > Cc: Richardson, Bruce; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used > RHEL > 6) > > On Thu, Sep

[dpdk-dev] [PATCH 0/3] New Thread Safe Hash Library

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 03:31:34PM +, De Lara Guarch, Pablo wrote: > Hi Neil, > > > -Original Message- > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Sent: Thursday, September 18, 2014 1:21 PM > > To: De Lara Guarch, Pablo > > Cc: dev at dpdk.org > > Subject: Re:

[dpdk-dev] [PATCH 2/2] bond: add mode 4 support

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 08:07:31AM +, Wodkowski, PawelX wrote: > > > +int > > > +bond_mode_8023ad_deactivate_slave(struct rte_eth_dev *bond_dev, > > > + uint8_t slave_pos) > > > +{ > > > + struct bond_dev_private *internals = bond_dev->data->dev_private; > > > + struct mode8023ad_data

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Bruce Richardson
The refcnt field is contained within an anonymous union within the mbuf data structure, and gcc 4.4 gives an error about an unknown field unless the initialiser for the field is contained within extra braces. Signed-off-by: Bruce Richardson --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 +- 1

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 05:38:58PM +0200, Thomas Monjalon wrote: > Hi Neil, > > 2014-09-18 11:03, Neil Horman: > > Thank you, I've reproduced the problem here, and you're right, it is a > > compiler bug, but I really hate the idea of just throwing braces around > > something to shut the compiler

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 04:16:00PM +0100, Bruce Richardson wrote: > On Thu, Sep 18, 2014 at 11:03:12AM -0400, Neil Horman wrote: > > On Thu, Sep 18, 2014 at 12:35:21PM +, Richardson, Bruce wrote: > > > > -Original Message- > > > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > >

[dpdk-dev] [PATCH 3/3] app/test: Added unit tests for Thread Safe Hash library

2014-09-18 Thread Pablo de Lara
Added 3 new unit tests: - Functional unit test: Tests creation and handling of a hash table with a single thread. - Performance unit tests: Benchmark hash operations add/delete/lookup, returning number of CPU cycles/operation. - Multi thread unit tests: Checks there is no data corruption

[dpdk-dev] [PATCH 2/3] lib/librte_tshash: New Thread Safe Hash library for DPDK

2014-09-18 Thread Pablo de Lara
Added new hash library, as an alternative to the old hash implementation. This new library allows the user to have multiple threads reading and writing on the same hash table at the same time. Signed-off-by: Pablo de Lara --- config/common_bsdapp |6 +

[dpdk-dev] [PATCH 1/3] eal: add const in prefetch functions

2014-09-18 Thread Pablo de Lara
rte_prefetchX functions included volatile void *p as parameter, but the function does not modify it, so it should be const. Signed-off-by: Pablo de Lara --- lib/librte_eal/common/include/rte_prefetch.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git

[dpdk-dev] [PATCH 0/3] New Thread Safe Hash Library

2014-09-18 Thread Pablo de Lara
This is an alternative hash implementation to the existing hash library. This patch set provides a thread safe hash implementation, it allows users to use multiple readers/writers working on a same hash table. Main differences between the previous and the new implementation are: - Multiple

[dpdk-dev] [PATCH 2/5] ixgbe: add prefetch to improve slow-path tx perf

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 02:36:13PM +0100, Bruce Richardson wrote: > On Wed, Sep 17, 2014 at 01:59:36PM -0400, Neil Horman wrote: > > On Wed, Sep 17, 2014 at 03:35:19PM +, Richardson, Bruce wrote: > > > > > > > -Original Message- > > > > From: Neil Horman [mailto:nhorman at

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 12:35:21PM +, Richardson, Bruce wrote: > > -Original Message- > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Sent: Thursday, September 18, 2014 1:25 PM > > To: Thomas Monjalon > > Cc: Richardson, Bruce; dev at dpdk.org > > Subject: Re: [dpdk-dev]

[dpdk-dev] i40e: Steps and required configurations of how to achieve the best performance!

2014-09-18 Thread David Marchand
Hello Helin, On Thu, Sep 18, 2014 at 4:39 AM, Zhang, Helin wrote: > Hi David > > > > *From:* David Marchand [mailto:david.marchand at 6wind.com] > *Sent:* Wednesday, September 17, 2014 10:03 PM > *To:* Zhang, Helin > *Cc:* dev at dpdk.org > *Subject:* Re: [dpdk-dev] i40e: Steps and required

[dpdk-dev] [PATCH v3 20/20] eal: set log level from command line

2014-09-18 Thread David Marchand
Hello Neil, On Wed, Sep 17, 2014 at 4:45 PM, Neil Horman wrote: > > This is a nit, but since you're working in this code anyway, would you mind > fixing the long options parsing please? Instead of having a single case > statement that just does a never ending if..else..if series of strcmps

[dpdk-dev] [PATCH] ixgbe: fix compile error with gcc4.4 (used RHEL 6)

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 01:09:16PM +0200, Thomas Monjalon wrote: > > The refcnt field is contained within an anonymous union within the mbuf > > data structure, and gcc 4.4 gives an error about an unknown field unless > > the initialiser for the field is contained within extra braces. > > > >

[dpdk-dev] [PATCH 0/3] New Thread Safe Hash Library

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 11:34:28AM +0100, Pablo de Lara wrote: > This is an alternative hash implementation to the existing hash library. > This patch set provides a thread safe hash implementation, it allows users > to use multiple readers/writers working on a same hash table. > Main

[dpdk-dev] Userland IP stack for DPDK

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 07:13:43AM +0300, Vadim Suraev wrote: > Hi, > I've published the source code of Linux kernel IP stack ported to user space > and integrated with DPDK (1.6 currently). > I includes also some example applications & test scripts as well as > documentation > about what & how is

[dpdk-dev] [PATCH 2/2] bond: add mode 4 support

2014-09-18 Thread Wodkowski, PawelX
> > +int > > +bond_mode_8023ad_deactivate_slave(struct rte_eth_dev *bond_dev, > > + uint8_t slave_pos) > > +{ > > + struct bond_dev_private *internals = bond_dev->data->dev_private; > > + struct mode8023ad_data *data = >mode4; > > + struct port *port; > > + uint8_t i; > > + > > +

[dpdk-dev] Userland IP stack for DPDK

2014-09-18 Thread Vadim Suraev
Hi, I've published the source code of Linux kernel IP stack ported to user space and integrated with DPDK (1.6 currently). I includes also some example applications & test scripts as well as documentation about what & how is done and how to use & adapt it. The source: git at

[dpdk-dev] [PATCH v3 20/20] eal: set log level from command line

2014-09-18 Thread Neil Horman
On Thu, Sep 18, 2014 at 09:46:54AM +0200, David Marchand wrote: > Hello Neil, > > > On Wed, Sep 17, 2014 at 4:45 PM, Neil Horman wrote: > > > > > This is a nit, but since you're working in this code anyway, would you mind > > fixing the long options parsing please? Instead of having a single

[dpdk-dev] i40e: Steps and required configurations of how to achieve the best performance!

2014-09-18 Thread Zhang, Helin
Hi David From: David Marchand [mailto:david.march...@6wind.com] Sent: Wednesday, September 17, 2014 10:03 PM To: Zhang, Helin Cc: dev at dpdk.org Subject: Re: [dpdk-dev] i40e: Steps and required configurations of how to achieve the best performance! On Wed, Sep 17, 2014 at 10:50 AM, Zhang,

[dpdk-dev] Maximum possible throughput with the KNI DPDK Application

2014-09-18 Thread Zhang, Helin
Hi Malveeka > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Malveeka Tewari > Sent: Thursday, September 18, 2014 6:51 AM > To: dev at dpdk.org > Subject: [dpdk-dev] Maximum possible throughput with the KNI DPDK > Application > > Hi all > > I've been

[dpdk-dev] [PATCH v2 00/13] Mbuf Structure Rework, part 2

2014-09-18 Thread Thomas Monjalon
2014-09-11 14:15, Bruce Richardson: > This patch set continues on from the changes in part 1, and depends > upon that patch set. > > This patch set reorders the fields in the mbuf structure and splits > the structure across two cache lines, given lots of new space for new > fields to be added.