Re: [dpdk-dev] [PATCH 5/6] i40e: remove unnecessary cast of rte_memcpy

2017-09-08 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Wednesday, August 23, 2017 11:45 PM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH 5/6] i40e: remove unnecessary cast of rte_memcpy > > Signed-off-by: Stephen H

Re: [dpdk-dev] [PATCH] net/i40e: fix vsi vlan stripping

2017-09-08 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zang MingJie > Sent: Thursday, August 24, 2017 9:29 PM > To: dev@dpdk.org > Cc: Zang MingJie > Subject: [dpdk-dev] [PATCH] net/i40e: fix vsi vlan stripping > > Function i40e_vsi_config_vlan_stripping doesn't str

Re: [dpdk-dev] [PATCH v2 1/2] net/i40e: fix clear xstats bug in vf port

2017-09-08 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhao1, Wei > Sent: Friday, September 1, 2017 10:30 AM > To: Yigit, Ferruh ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/2] net/i40e: fix clear xstats bug in vf > port > > Hi, Ferruh > > > -Original

[dpdk-dev] [PATCH] event/sw: allow fwd and rel when out of credits

2017-09-08 Thread Gage Eads
When forwarding or releasing events, the operation would fail if the port has 0 inflight credits and cannot acquire more, or the inflight count exceeds the port's new event threshold. This patch fixes that by counting the number of new events in the burst, and applying the credit and new event thr

Re: [dpdk-dev] [PATCH v3 0/4] net/softnic: sw fall-back pmd for traffic mgmt and others

2017-09-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Singh, Jasvinder > Sent: Friday, August 11, 2017 1:49 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian ; Yigit, Ferruh > ; tho...@monjalon.net > Subject: [PATCH v3 0/4] net/softnic: sw fall-back pmd for traffic mgmt and > others > > The SoftNIC PMD is intende

Re: [dpdk-dev] [PATCH v2 3/4] app/testpmd: add new commands to manipulate with pctype mapping

2017-09-08 Thread Ferruh Yigit
On 9/1/2017 4:02 PM, Kirill Rybalchenko wrote: > Add new commands to manipulate with dynamic flow type to > pctype mapping table in i40e PMD. > Commands allow to print table, modify it and reset to default value. > > Signed-off-by: Kirill Rybalchenko > --- > app/test-pmd/cmdline.c

Re: [dpdk-dev] [PATCH v2 2/4] net/i40e: add new functions to manipulate with pctype mapping table

2017-09-08 Thread Ferruh Yigit
On 9/1/2017 4:02 PM, Kirill Rybalchenko wrote: > Add new functions which allow modify, return or reset to default > the contents of flow type to pctype dynamic mapping table. > > Signed-off-by: Kirill Rybalchenko > --- > drivers/net/i40e/rte_pmd_i40e.c | 98 > +++

Re: [dpdk-dev] [PATCH v2 4/4] ethdev: remove unnecessary check for new flow type

2017-09-08 Thread Ferruh Yigit
On 9/1/2017 4:02 PM, Kirill Rybalchenko wrote: > Remove unnecessary check for new flow type for rss hash > filter update. > > Signed-off-by: Kirill Rybalchenko > --- > lib/librte_ether/rte_ethdev.c | 8 > 1 file changed, 8 deletions(-) > > diff --git a/lib/librte_ether/rte_ethdev.c b/l

Re: [dpdk-dev] [PATCH v2 1/4] net/i40e: implement dynamic mapping of sw flow types to hw pctypes

2017-09-08 Thread Ferruh Yigit
On 9/1/2017 4:02 PM, Kirill Rybalchenko wrote: > Implement dynamic mapping of software flow types to hardware pctypes. > This allows to add new flow types and pctypes for DDP without changing > API of the driver. The mapping table is located in private > data area for particular network adapter and

Re: [dpdk-dev] [PATCH 01/17] build: add initial infrastructure for meson & ninja builds

2017-09-08 Thread Richardson, Bruce
> -Original Message- > From: Van Haaren, Harry > Sent: Friday, September 8, 2017 5:03 PM > To: Richardson, Bruce ; dev@dpdk.org > Cc: Richardson, Bruce > Subject: RE: [dpdk-dev] [PATCH 01/17] build: add initial infrastructure > for meson & ninja builds > > > From: dev [mailto:dev-boun..

Re: [dpdk-dev] [PATCH v2 1/2] eal/malloc: fix RTE malloc debug macro

2017-09-08 Thread Stephen Hemminger
On Fri, 8 Sep 2017 22:50:54 +0800 Xueming Li wrote: > - printf("rte_zmalloc didn't zero" > + printf("rte_zmalloc didn't zero " > "the allocated memory\n"); Please don't break error messages onto two lin

Re: [dpdk-dev] [PATCH 01/17] build: add initial infrastructure for meson & ninja builds

2017-09-08 Thread Van Haaren, Harry
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > Sent: Friday, September 1, 2017 11:04 AM > To: dev@dpdk.org > Cc: Richardson, Bruce > Subject: [dpdk-dev] [PATCH 01/17] build: add initial infrastructure for meson > & > ninja builds > diff --git a/config/meson.build b/c

[dpdk-dev] [PATCH v3 2/4] eventdev: add dev attribute get function

2017-09-08 Thread Harry van Haaren
This commit adds a device attribute function, allowing flexible fetching of device attributes, like port count or queue count. The unit tests and .map file are updated to the new function. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 24 -- lib/librt

[dpdk-dev] [PATCH v3 3/4] eventdev: add queue attribute function

2017-09-08 Thread Harry van Haaren
This commit adds a generic queue attribute function. It also removes the previous rte_event_queue_priority() and priority() functions, and updates the map files and unit tests to use the new attr functions. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 47 +++

[dpdk-dev] [PATCH v3 4/4] eventdev: add device started attribute

2017-09-08 Thread Harry van Haaren
This commit adds an attribute to the eventdev, allowing applications to retrieve if the eventdev is running or stopped. Note that no API or ABI changes were required in adding the statistic, and code changes are minimal. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 3

[dpdk-dev] [PATCH v3 1/4] eventdev: add port attribute function

2017-09-08 Thread Harry van Haaren
This commit reworks the port functions to retrieve information about the port, like the enq or deq depths. Note that "port count" is a device attribute, and is added in a later patch for dev attributes. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 33 +++

[dpdk-dev] [PATCH v3 0/4] eventdev: add attribute based get APIs

2017-09-08 Thread Harry van Haaren
This patchset refactors the eventdev API to be more flexible and capable. In particular, the API is capable of returning an error value if an invalid device, port or attribute ID is passed in, which was not possible with the previous APIs. The implementation of this patchset is based on a v1 patch

[dpdk-dev] [PATCH v2 4/4] eventdev: add device started attribute

2017-09-08 Thread Harry van Haaren
This commit adds an attribute to the eventdev, allowing applications to retrieve if the eventdev is running or stopped. Note that no API or ABI changes were required in adding the statistic, and code changes are minimal. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 3

[dpdk-dev] [PATCH v2 3/4] eventdev: add queue attribute function

2017-09-08 Thread Harry van Haaren
This commit adds a generic queue attribute function. It also removes the previous rte_event_queue_priority() and priority() functions, and updates the map files and unit tests to use the new attr functions. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 47 +++

[dpdk-dev] [PATCH v2 2/4] eventdev: add dev attribute get function

2017-09-08 Thread Harry van Haaren
This commit adds a device attribute function, allowing flexible fetching of device attributes, like port count or queue count. The unit tests and .map file are updated to the new function. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 24 -- lib/librt

[dpdk-dev] [PATCH v2 1/4] eventdev: add port attribute function

2017-09-08 Thread Harry van Haaren
This commit reworks the port functions to retrieve information about the port, like the enq or deq depths. Note that "port count" is a device attribute, and is added in a later patch for dev attributes. Signed-off-by: Harry van Haaren --- lib/librte_eventdev/rte_eventdev.c | 33 +++

[dpdk-dev] [PATCH v2 0/3] eventdev: add attribute based get APIs

2017-09-08 Thread Harry van Haaren
This patchset refactors the eventdev API to be more flexible and capable. In particular, the API is capable of returning an error value if an invalid device, port or attribute ID is passed in, which was not possible with the previous APIs. The implementation of this patchset is based on a v1 patch

[dpdk-dev] [PATCH v2 2/2] eal/malloc: fix RTE malloc element free

2017-09-08 Thread Xueming Li
malloc_elem_free() is clearing(setting to 0) the trailer cookie when RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, part of joined memory is not getting cleared due to missing the length of trailer cookie in the middle. This patch fixes calculation of free memory length to

[dpdk-dev] [PATCH v2 1/2] eal/malloc: fix RTE malloc debug macro

2017-09-08 Thread Xueming Li
This patch replaces broken macro RTE_LIBRTE_MALLOC_DEBUG with RTE_MALLOC_DEBUG. Fixes: af75078fece3 ("first public release") Cc: Sergio Gonzalez Monroy Signed-off-by: Xueming Li --- lib/librte_eal/common/malloc_elem.h | 4 ++-- test/test/test_malloc.c | 10 +- 2 files chan

[dpdk-dev] [PATCH 1/2] net/sfc: free mbufs in bulks on EF10 native Tx datapath reap

2017-09-08 Thread Andrew Rybchenko
From: Ivan Malov Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ef10_tx.c | 48 --- drivers/net/sfc/sfc_tweak.h | 3 +++ 2 files changed, 44 insertions(+), 7 deletions(-) diff --git a/drivers/net/sfc/sfc_ef10_tx.c b

[dpdk-dev] [PATCH 2/2] net/sfc: free mbufs in bulks on simple EF10 Tx datapath reap

2017-09-08 Thread Andrew Rybchenko
From: Ivan Malov Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- doc/guides/nics/sfc_efx.rst | 4 +++- drivers/net/sfc/sfc_dp_tx.h | 2 ++ drivers/net/sfc/sfc_ef10_tx.c | 15 ++- drivers/net/sfc/sfc_ethdev.c | 6 ++ drivers/net/sfc/sfc_tx.c | 17 +

Re: [dpdk-dev] [PATCH v2 1/2] crypto/openssl: replace evp APIs with HMAC APIs

2017-09-08 Thread De Lara Guarch, Pablo
Hi Akhil, > -Original Message- > From: Akhil Goyal [mailto:akhil.go...@nxp.com] > Sent: Tuesday, August 29, 2017 7:59 AM > To: dev@dpdk.org; De Lara Guarch, Pablo > > Cc: hemant.agra...@nxp.com; Doherty, Declan > ; Akhil Goyal > Subject: [PATCH v2 1/2] crypto/openssl: replace evp APIs wi

Re: [dpdk-dev] [dpdk-dev, 01/17] build: add initial infrastructure for meson & ninja builds

2017-09-08 Thread Bruce Richardson
+Thomas and Qian from our validation team, in case they have any insight on build CI. On Fri, Sep 08, 2017 at 02:55:08PM +0100, Bruce Richardson wrote: > On Fri, Sep 08, 2017 at 07:57:06AM -0400, Neil Horman wrote: > > On Fri, Sep 08, 2017 at 09:50:26AM +0100, Bruce Richardson wrote: > > > On Thu,

Re: [dpdk-dev] [RFC 0/5] Port Representor for control and monitoring of VF devices

2017-09-08 Thread Alejandro Lucero
On Thu, Sep 7, 2017 at 2:13 PM, Declan Doherty wrote: > On 07/09/2017 11:01 AM, Alejandro Lucero wrote: > >> I understand this is the representor idea suiting Intel cards but it does >> not cover other possibilities. >> >> At least, Netronome and Mellanox require a representor not just for >> con

Re: [dpdk-dev] [dpdk-dev, 01/17] build: add initial infrastructure for meson & ninja builds

2017-09-08 Thread Bruce Richardson
On Fri, Sep 08, 2017 at 07:57:06AM -0400, Neil Horman wrote: > On Fri, Sep 08, 2017 at 09:50:26AM +0100, Bruce Richardson wrote: > > On Thu, Sep 07, 2017 at 12:21:57PM -0400, Neil Horman wrote: > > > On Fri, Sep 01, 2017 at 11:04:00AM +0100, Bruce Richardson wrote: > > > > To build with meson and n

Re: [dpdk-dev] [PATCH v2] devtools: rework abi checker script

2017-09-08 Thread Neil Horman
On Wed, Sep 06, 2017 at 04:51:01PM +0200, Olivier Matz wrote: > The intiatial version of the script had some limitations: > - cannot work on a non-clean workspace > - environment variables are not documented > - no compilation log in case of failure > - return success even it abi is incompatible >

[dpdk-dev] [PATCH v7] ether: add support for vtune task tracing

2017-09-08 Thread ilia . kurakin
From: Ilia Kurakin The patch simplifies DPDK applications analysis for developers which use IntelĀ® VTune Amplifier. The empty cycles are such iterations that yielded no RX packets. As far as DPDK is running in poll mode, wasting cycles is equal to wasting CPU time. Tracing such iterations can id

Re: [dpdk-dev] [PATCH] i40e: fix i40e_validate_mac_addr to permit multicast addresses

2017-09-08 Thread Ferruh Yigit
On 9/8/2017 1:51 PM, David Harton (dharton) wrote: > Hi Jingjing/Beilei, > > A kind reminder to review the patch and the discussion between > Ferruh and myself. Hi David, To clarify, your reply answered my concern, so I am OK, still I believe this should be reviewed by driver maintainer. Thank

Re: [dpdk-dev] [PATCH] i40e: fix i40e_validate_mac_addr to permit multicast addresses

2017-09-08 Thread David Harton (dharton)
Hi Jingjing/Beilei, A kind reminder to review the patch and the discussion between Ferruh and myself. Thanks, Dave > -Original Message- > From: David Harton (dharton) > > -Original Message- > > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > > > > On 8/22/2017 11:21 PM, Dav

[dpdk-dev] [PATCH v2] vhost: adaptively batch small guest memory copies

2017-09-08 Thread Tiwei Bie
This patch adaptively batches the small guest memory copies. By batching the small copies, the efficiency of executing the memory LOAD instructions can be improved greatly, because the memory LOAD latency can be effectively hidden by the pipeline. We saw great performance boosts for small packets P

Re: [dpdk-dev] [PATCH] ixgbe: eliminate duplicate filterlist symbols

2017-09-08 Thread David Harton (dharton)
Hi Konstantin, A gentle reminder to weigh in on this patch and the discussion between Ferruh and myself below. Thanks, Dave > -Original Message- > From: David Harton (dharton) > > > -Original Message- > > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > > > > On 8/25/2017 8

Re: [dpdk-dev] [dpdk-dev, 01/17] build: add initial infrastructure for meson & ninja builds

2017-09-08 Thread Neil Horman
On Fri, Sep 08, 2017 at 09:50:26AM +0100, Bruce Richardson wrote: > On Thu, Sep 07, 2017 at 12:21:57PM -0400, Neil Horman wrote: > > On Fri, Sep 01, 2017 at 11:04:00AM +0100, Bruce Richardson wrote: > > > To build with meson and ninja, we need some initial infrastructure in > > > place. The build f

Re: [dpdk-dev] [RFC PATCH 0/1] IPSec Inline and look aside crypto offload

2017-09-08 Thread Akhil Goyal
Hi Jerin, On 9/6/2017 9:23 PM, Jerin Jacob wrote: -Original Message- Date: Thu, 31 Aug 2017 15:09:45 +0100 From: Radu Nicolau To: Thomas Monjalon , Akhil Goyal CC: dev@dpdk.org, bor...@mellanox.com, declan.dohe...@intel.com, avia...@mellanox.com, sandeep.ma...@nxp.com, hemant.agra.

[dpdk-dev] [PATCH v5] net/mlx5: support device removal event

2017-09-08 Thread Matan Azrad
Extend the LSC event handling to support the device removal as well. The mlx5 event handling has been made capable of receiving and signaling several event types at once. This support includes next: 1. Removal event detection according to the user configuration. 2. Calling to all registered mlx5

Re: [dpdk-dev] [PATCH v3 1/4] net/softnic: add softnic PMD

2017-09-08 Thread Singh, Jasvinder
> -Original Message- > From: Yigit, Ferruh > Sent: Friday, September 8, 2017 10:49 AM > To: Singh, Jasvinder ; dev@dpdk.org > Cc: Dumitrescu, Cristian ; > tho...@monjalon.net > Subject: Re: [PATCH v3 1/4] net/softnic: add softnic PMD > > On 9/8/2017 10:30 AM, Singh, Jasvinder wrote: > >

Re: [dpdk-dev] [PATCH] vhost: adaptively batch small guest memory copies

2017-09-08 Thread Tiwei Bie
On Fri, Sep 08, 2017 at 03:41:08PM +0800, Yuanhan Liu wrote: > On Thu, Aug 24, 2017 at 10:19:39AM +0800, Tiwei Bie wrote: > > This patch adaptively batches the small guest memory copies. > > By batching the small copies, the efficiency of executing the > > memory LOAD instructions can be improved g

Re: [dpdk-dev] [PATCH v4 2/2] net/mlx5: support device removal event

2017-09-08 Thread Ferruh Yigit
On 9/6/2017 4:03 PM, Matan Azrad wrote: > Extend the LSC event handling to support the device removal as well. > > The mlx5 event handling has been made capable of receiving and > signaling several event types at once. > > This support includes next: > 1. Removal event detection according to the

Re: [dpdk-dev] [PATCH v3 1/4] net/softnic: add softnic PMD

2017-09-08 Thread Ferruh Yigit
On 9/8/2017 10:30 AM, Singh, Jasvinder wrote: > Hi Ferruh, > > Thank you for the review and feedback. Please see inline response; > >> -Original Message- >> From: Yigit, Ferruh >> Sent: Tuesday, September 5, 2017 3:53 PM >> To: Singh, Jasvinder ; dev@dpdk.org >> Cc: Dumitrescu, Cristian ;

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/ixgbe: fix adding multiple mirror type in a rule

2017-09-08 Thread Ferruh Yigit
On 9/8/2017 1:23 AM, Wu, Jingjing wrote: > > >> -Original Message- >> From: Dai, Wei >> Sent: Tuesday, September 5, 2017 5:17 PM >> To: Lu, Wenzhuo ; Ananyev, Konstantin >> ; Wu, Jingjing >> Cc: dev@dpdk.org; Dai, Wei ; sta...@dpdk.org >> Subject: [PATCH] net/ixgbe: fix adding multiple m

Re: [dpdk-dev] [PATCH v3 1/4] net/softnic: add softnic PMD

2017-09-08 Thread Singh, Jasvinder
Hi Ferruh, Thank you for the review and feedback. Please see inline response; > -Original Message- > From: Yigit, Ferruh > Sent: Tuesday, September 5, 2017 3:53 PM > To: Singh, Jasvinder ; dev@dpdk.org > Cc: Dumitrescu, Cristian ; > tho...@monjalon.net > Subject: Re: [PATCH v3 1/4] net/so

Re: [dpdk-dev] [PATCH 07/21] vhost: add iotlb helper functions

2017-09-08 Thread Maxime Coquelin
On 09/08/2017 11:21 AM, Yuanhan Liu wrote: On Fri, Sep 08, 2017 at 10:50:49AM +0200, Maxime Coquelin wrote: +{ + struct vhost_iotlb_entry *node, *temp_node; + + rte_rwlock_write_lock(&vq->iotlb_lock); + + TAILQ_FOREACH_SAFE(node, &vq->iotlb_list, next, temp_node) { +

Re: [dpdk-dev] [PATCH 07/21] vhost: add iotlb helper functions

2017-09-08 Thread Yuanhan Liu
On Fri, Sep 08, 2017 at 10:50:49AM +0200, Maxime Coquelin wrote: > +{ > + struct vhost_iotlb_entry *node, *temp_node; > + > + rte_rwlock_write_lock(&vq->iotlb_lock); > + > + TAILQ_FOREACH_SAFE(node, &vq->iotlb_list, next, temp_node) { > + TAILQ_REMOVE(&vq->iotlb_

[dpdk-dev] [RFC] ethdev: add administrative information in per-port info

2017-09-08 Thread Ivan Boule
To help administrative tasks on DPDK ports, add in the data structure rte_eth_dev_info the following per-port information to be supplied by the dev_infos_get() function exported by a Poll Mode Driver: - the set of supported link modes, - the set of advertised link modes, - the type of port connect

Re: [dpdk-dev] [PATCH v1 0/3] net/mlx4: additional interrupt handling fixes

2017-09-08 Thread Ferruh Yigit
On 9/5/2017 1:56 PM, Adrien Mazarguil wrote: > While the previous interrupt rework improved the situation, it failed to > address one last issue pointed out by Matan: RMV/LSC events may be missed > and not reported to the application. > > Adrien Mazarguil (3): > net/mlx4: fix unhandled event deb

Re: [dpdk-dev] [PATCH] mk: add silvermont to replace atom as a target

2017-09-08 Thread Bruce Richardson
On Fri, Sep 08, 2017 at 11:28:52AM +0800, Xiaoyun Li wrote: > The -march=atom flag is for older atom CPUs and don't support SSE4 which > is the minimum reqiurement for DPDK. And in fact, the current atom CPUs > support SSE4. So this patch removes atom as a target for DPDK builds and > adds a silver

Re: [dpdk-dev] [PATCH] eal: cleanup strerror function

2017-09-08 Thread Bruce Richardson
On Thu, Sep 07, 2017 at 10:51:52AM -0700, Stephen Hemminger wrote: > On Thu, 7 Sep 2017 14:09:56 +0100 > Bruce Richardson wrote: > > > + /* BSD puts a colon in the "unknown error" messages, Linux doesn't */ > > +#ifdef RTE_EXEC_ENV_BSDAPP > > + static const char *sep = ":"; > > +#else > > +

Re: [dpdk-dev] [PATCH] cmdline: fix warning for unused return value

2017-09-08 Thread Bruce Richardson
On Thu, Sep 07, 2017 at 09:46:18PM +0200, Olivier MATZ wrote: > On Thu, Sep 07, 2017 at 10:50:20AM -0700, Stephen Hemminger wrote: > > On Thu, 7 Sep 2017 14:09:23 +0100 > > Bruce Richardson wrote: > > > > > When DPDK is compiled on Ubuntu with extra warnings turned on, there is a > > > warning a

Re: [dpdk-dev] [dpdk-dev, 16/17] build: add option to version libs using DPDK version

2017-09-08 Thread Bruce Richardson
On Thu, Sep 07, 2017 at 01:07:19PM -0400, Neil Horman wrote: > On Fri, Sep 01, 2017 at 11:04:15AM +0100, Bruce Richardson wrote: > > Normally, each library has it's own version number based on the ABI. > > Add an option to have all libs just use the DPDK version number as > > the .so version. > >

Re: [dpdk-dev] [PATCH 07/21] vhost: add iotlb helper functions

2017-09-08 Thread Maxime Coquelin
On 09/08/2017 10:36 AM, Yuanhan Liu wrote: On Fri, Sep 08, 2017 at 10:24:58AM +0200, Maxime Coquelin wrote: On 09/08/2017 10:08 AM, Yuanhan Liu wrote: On Thu, Aug 31, 2017 at 11:50:09AM +0200, Maxime Coquelin wrote: diff --git a/lib/librte_vhost/iotlb.c b/lib/librte_vhost/iotlb.c new file

Re: [dpdk-dev] [dpdk-dev, 02/17] eal: add eal library to meson build

2017-09-08 Thread Bruce Richardson
On Thu, Sep 07, 2017 at 12:25:29PM -0400, Neil Horman wrote: > On Fri, Sep 01, 2017 at 11:04:01AM +0100, Bruce Richardson wrote: > > Support building the EAL with meson and ninja. This involves a number of > > different meson.build files for iterating through all the different > > subdirectories in

Re: [dpdk-dev] [dpdk-dev, 01/17] build: add initial infrastructure for meson & ninja builds

2017-09-08 Thread Bruce Richardson
On Thu, Sep 07, 2017 at 12:21:57PM -0400, Neil Horman wrote: > On Fri, Sep 01, 2017 at 11:04:00AM +0100, Bruce Richardson wrote: > > To build with meson and ninja, we need some initial infrastructure in > > place. The build files for meson always need to be called "meson.build", > > and options get

[dpdk-dev] [PATCH v2 30/30] bus/dpaa2: improve debug log messages

2017-09-08 Thread Hemant Agrawal
enable the printing of objects during debuging. use RTE_LOG to avoid function name printing for object name. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 6 ++ 3

[dpdk-dev] [PATCH v2 29/30] net/dpaa2: improve debug messaging

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 4e833db..333e4e6 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/driv

[dpdk-dev] [PATCH v2 28/30] net/dpaa2: checksum support as per user config

2017-09-08 Thread Hemant Agrawal
Instead of enabling the RX checksum by default, make it enable only with user ethernet configuration Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 65 +--- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/drivers/net/dpaa2

[dpdk-dev] [PATCH v2 26/30] net/dpaa2: fix the Tx handling of non HW pool bufs

2017-09-08 Thread Hemant Agrawal
The current code is sending 8 packet in each internal loop. In some of the conditions, mbuf is being allocated or freed. In case of error, the code is returning without taking care of such buffer. It is better to send already prepared buffer and err for the current failure only. Fixes: 9e5f3e6d365

[dpdk-dev] [PATCH v2 27/30] net/dpaa2: log that VLAN extend offload not supported

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index a274e12..589ae6b 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethde

[dpdk-dev] [PATCH v2 24/30] bus/dpaa2: add support for hw extra stats API

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman_hw.c | 30 ++ drivers/bus/dpaa/include/fsl_fman.h | 3 +++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 1 + 3 files changed, 34 insertions(+) diff --git a/drivers/bus/dpaa/base/fman/fman_hw

[dpdk-dev] [PATCH v2 23/30] net/dpaa2: add support for RSS hash update and get

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 42 1 file changed, 42 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 0fe7a13..aebcc71 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH v2 25/30] net/dpaa2: add support for extra stats

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa/dpaa_ethdev.c | 143 ++ drivers/net/dpaa/dpaa_ethdev.h | 40 + drivers/net/dpaa2/dpaa2_ethdev.c | 174 - 4 files change

[dpdk-dev] [PATCH v2 22/30] net/dpaa2: remove RSS restriction with num of queues

2017-09-08 Thread Hemant Agrawal
DPAA2 HW does not have such restrictions. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 74a61b5..0fe7a13 100644 --- a/drivers/net/dpaa2/d

[dpdk-dev] [PATCH v2 19/30] net/dpaa2: check physical link state on up cmd

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 49dc42b..74a61b5 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH v2 21/30] net/dpaa2: increase the dist param to 64 bit

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 6 +++--- drivers/net/dpaa2/dpaa2_ethdev.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 7e5ce64..e3ab90

[dpdk-dev] [PATCH v2 20/30] net/dpaa2: improve error and logs for flow distribution

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 39 +- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 1269dd2..7e5ce64 100644 --- a/dr

[dpdk-dev] [PATCH v2 18/30] bus/fslmc: enable link status interrupt

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index ab1df36..81f0779 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -464,

[dpdk-dev] [PATCH v2 17/30] net/dpaa2: add support for link status event

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 123 +++ drivers/net/dpaa2/mc/dpni.c | 233 drivers/net/dpaa2/mc/fsl_dpni.h | 49 drivers/net/dpaa2/mc/fs

[dpdk-dev] [PATCH v2 14/30] net/dpaa2: add support for congestion overhead

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 945dcc7..d7950a5 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH v2 16/30] bus/fslmc: cleanup the dpaa2 interrupt support

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/fslmc_vfio.c | 108 +++- drivers/bus/fslmc/fslmc_vfio.h | 8 ++- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c| 18 +++-- drivers/bus/fslmc/

[dpdk-dev] [PATCH v2 15/30] bus/fslmc: add support to check dpbp presence

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c| 7 +++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 3 files changed, 9 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/f

[dpdk-dev] [PATCH v2 13/30] bus/fslmc: add support for LX2160 platform

2017-09-08 Thread Hemant Agrawal
From: Ashish Jain Signed-off-by: Ashish Jain --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 22 ++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/p

[dpdk-dev] [PATCH v2 12/30] config/dpaa2: change max lores to 16

2017-09-08 Thread Hemant Agrawal
From: Ashish Jain To support new LX2 series Signed-off-by: Ashish Jain --- config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc index 8a42944..91f4993

[dpdk-dev] [PATCH v2 09/30] bus/fslmc: update MC to 10.3.x

2017-09-08 Thread Hemant Agrawal
From: Shreyansh Jain Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 19 +++ drivers/bus/fslmc/mc/dpbp.c | 182 + drivers/bus/fslmc/mc/dpci.c | 202 --- drivers/bus/fslmc/mc/dpcon.

[dpdk-dev] [PATCH v2 11/30] crypto/dpaa2_sec: update MC to 10.3.x

2017-09-08 Thread Hemant Agrawal
From: Shreyansh Jain Signed-off-by: Shreyansh Jain --- drivers/crypto/dpaa2_sec/mc/dpseci.c | 676 +-- drivers/crypto/dpaa2_sec/mc/fsl_dpseci.h | 782 --- drivers/crypto/dpaa2_sec/mc/fsl_dpseci_cmd.h | 387 ++--- 3 files changed, 8

[dpdk-dev] [PATCH v2 08/30] bus/fslmc: clean the qbman support code

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 87 +- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 5 +- drivers/bus/fslmc/qbman/qbman_portal.c | 26 +-- drivers/bus/fslmc/qbman/qbman_portal.h | 133 ++

[dpdk-dev] [PATCH v2 04/30] bus/fslmc: support up to 32 frames in one volatile dequeue

2017-09-08 Thread Hemant Agrawal
From: Haiying Wang QMan5.0 supports up to 32 frames in one volatile dequeue command. For the older Qman versions which only support up to 16 frames, the highest bit in NUMF will be ignored. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_portal.c |

[dpdk-dev] [PATCH v2 05/30] bus/fslmc: enhance the QBMAN CENA mode

2017-09-08 Thread Hemant Agrawal
From: Haiying Wang Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_sys.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_sys.h b/drivers/bus/fslmc/qbman/qbman_sys.h index 9ea55de..47da595 10064

[dpdk-dev] [PATCH v2 07/30] bus/fslmc: cleanup compat file

2017-09-08 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 188 +-- drivers/bus/fslmc/qbman/qbman_private.h | 2 +- 2 files changed, 4 insertions(+), 186 deletions(-) diff --git a/drivers/bus/fslmc/qbman/include/compat.h b/drivers/bus/fslmc/qbman

[dpdk-dev] [PATCH v2 06/30] bus/fslmc: qbman remove unused funcs and align names

2017-09-08 Thread Hemant Agrawal
name alignment for check command and result functions putting them as separate functions instead of changing the original functions. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 146 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 731 +

[dpdk-dev] [PATCH v2 03/30] bus/fslmc: add qbman API to do enqueue with multiple frames

2017-09-08 Thread Hemant Agrawal
From: Haiying Wang Clean it up and update the prototype. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 32 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 200 +++-- drivers/bus/fslmc/rte_bus_fslmc

[dpdk-dev] [PATCH v2 02/30] bus/fslmc: remove the export for qbman version function

2017-09-08 Thread Hemant Agrawal
This func is not required to be used outside of the qbman driver. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_base.h | 4 drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 2 -- drivers/bus/fslmc/qbman/qbman_portal.c | 7 --- drivers/bus/

[dpdk-dev] [PATCH v2 01/30] bus/fslmc: qbman replace word copy with memcpy

2017-09-08 Thread Hemant Agrawal
From: Haiying Wang The word_copy is not as efficient as expected, so remove it from this driver. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 42 drivers/bus/fslmc/qbman/qbman_portal.c | 12

[dpdk-dev] [PATCH v2 00/30] NXP DPAA2 PMD updates

2017-09-08 Thread Hemant Agrawal
This patchset includes the hw driver upgrades and additional nic feature implementations. patches 1..8 - upgrades the qbman hw driver patches 9..11 - upgrades the MC version to 10.3.1 patches 12..13 - adds the support for LX2160 platform patches 14..30 - adds various features and cleanups in

Re: [dpdk-dev] [PATCH 07/21] vhost: add iotlb helper functions

2017-09-08 Thread Yuanhan Liu
On Fri, Sep 08, 2017 at 10:24:58AM +0200, Maxime Coquelin wrote: > > > On 09/08/2017 10:08 AM, Yuanhan Liu wrote: > >On Thu, Aug 31, 2017 at 11:50:09AM +0200, Maxime Coquelin wrote: > >>diff --git a/lib/librte_vhost/iotlb.c b/lib/librte_vhost/iotlb.c > >>new file mode 100644 > >>index 0..

Re: [dpdk-dev] [PATCH 07/21] vhost: add iotlb helper functions

2017-09-08 Thread Maxime Coquelin
On 09/08/2017 10:08 AM, Yuanhan Liu wrote: On Thu, Aug 31, 2017 at 11:50:09AM +0200, Maxime Coquelin wrote: diff --git a/lib/librte_vhost/iotlb.c b/lib/librte_vhost/iotlb.c new file mode 100644 index 0..1b739dae5 --- /dev/null +++ b/lib/librte_vhost/iotlb.c @@ -0,0 +1,231 @@ +/*- + *

Re: [dpdk-dev] [PATCH 07/21] vhost: add iotlb helper functions

2017-09-08 Thread Yuanhan Liu
On Thu, Aug 31, 2017 at 11:50:09AM +0200, Maxime Coquelin wrote: > diff --git a/lib/librte_vhost/iotlb.c b/lib/librte_vhost/iotlb.c > new file mode 100644 > index 0..1b739dae5 > --- /dev/null > +++ b/lib/librte_vhost/iotlb.c > @@ -0,0 +1,231 @@ > +/*- > + * BSD LICENSE > + * > + * Copyr

Re: [dpdk-dev] [PATCH] vhost: adaptively batch small guest memory copies

2017-09-08 Thread Yuanhan Liu
On Thu, Aug 24, 2017 at 10:19:39AM +0800, Tiwei Bie wrote: > This patch adaptively batches the small guest memory copies. > By batching the small copies, the efficiency of executing the > memory LOAD instructions can be improved greatly, because the > memory LOAD latency can be effectively hidden b

[dpdk-dev] [PATCH] test: support to check AVX512F

2017-09-08 Thread Zhiyong Yang
The CPUs which support AVX512 have been released. Add the support of checking AVX512F instruction set. Signed-off-by: Zhiyong Yang --- test/test/test_cpuflags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test/test_cpuflags.c b/test/test/test_cpuflags.c index 0e5ebe788..08c166139