[dpdk-dev] [PATCH v4] librte_eal: fix wrong assert for arm and ppc

2017-09-27 Thread Lukasz Majczak
The assertion of return value from the open() function is done against 0, while it is a correct value - open() returns -1 in case of an error. It causes problems while trying to run as a daemon, in which case, this call to open() will return 0 as a valid descriptor. Fixes: b94e5c9406b5 ("eal/arm:

[dpdk-dev] dpdk was compiled with CONFIG_RTE_LIBRTE_VHOST_NUMA=n , but on ovs-2.8 compilation, "configure: error: unable to find libnuma, install the dependency package "

2017-09-27 Thread Joo Kim
Hello, My dpdk was compiled with CONFIG_RTE_LIBRTE_VHOST_NUMA=n (which is a default in config/common_base). But, I see following error when I compile ovs-2.8 with dpdk enabled. Is this expected? Also ignorable error? " . . . checking for library containing get_mempolicy... no configure: e

Re: [dpdk-dev] [PATCH 10/12] vhost: support to kick in secondary process

2017-09-27 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Wednesday, September 27, 2017 5:36 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; maxime.coque...@redhat.com; mtetsu...@gmail.com > Subject: Re: [PATCH 10/12] vhost: support to kick in secondary process > > On Fri

Re: [dpdk-dev] [PATCH v4 41/41] net/dpaa: support for extended statistics

2017-09-27 Thread Shreyansh Jain
> -Original Message- > From: Shreyansh Jain > Sent: Thursday, September 28, 2017 7:59 AM > To: 'Ferruh Yigit' > Cc: dev@dpdk.org; Hemant Agrawal > Subject: RE: [PATCH v4 41/41] net/dpaa: support for extended statistics > > Hi Ferruh, > > > -Original Message- > > From: Ferruh Yig

[dpdk-dev] [PATCH v2] net/ixgbe: fix VFIO interrupt mapping in VF

2017-09-27 Thread Wei Dai
When a VF port is bound to VFIO-PIC, only miscellaneous interrupt is mapped to VFIO vector 0 in eth_ixgbevf_dev_init( ). In ixgbevf_dev_start(), if previous VFIO interrupt mapping set in eth_ixgbevf_dev_init( ) is not cleard, it will fail when calling rte_intr_enable( ) tries to map Rx queue interr

Re: [dpdk-dev] [PATCH v3 1/2] net/i40e: queue region set and flush

2017-09-27 Thread Zhao1, Wei
Thank you. > -Original Message- > From: Yigit, Ferruh > Sent: Thursday, September 28, 2017 3:13 AM > To: Zhao1, Wei ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/i40e: queue region set and flush > > On 9/26/2017 9:54 AM, Zhao1, Wei wrote: > > Hi,  Ferruh > > Hi Wei, > > >>

[dpdk-dev] [PATCH] examples/l3fwd: pass flow arguments when starting l3fwd

2017-09-27 Thread Xiaoyun Li
When the number of free descriptors goes below the LRXQTRESH, an immediate interrupt is triggered. And lots of interrupts cause performance drop. This patch enables to pass flow arguments when starting l3fwd example. Signed-off-by: Xiaoyun Li --- examples/l3fwd/main.c | 191 +

Re: [dpdk-dev] [PATCH v4 41/41] net/dpaa: support for extended statistics

2017-09-27 Thread Shreyansh Jain
Hi Ferruh, > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Thursday, September 28, 2017 5:07 AM > To: Shreyansh Jain > Cc: dev@dpdk.org; Hemant Agrawal > Subject: Re: [PATCH v4 41/41] net/dpaa: support for extended statistics > > On 9/27/2017 9:26 AM, S

Re: [dpdk-dev] [PATCH v5 2/5] ethdev: increase port_id range

2017-09-27 Thread Yang, Zhiyong
Ferruh, > There is a patch to add missing ones [1], I think it would be better to add > them > with a separate patch. > > But I missed the "librte_pmd_vhost" one, I will send a new version soon. > > Also failsafe don't have any PMD specific API, no need to add it. > > > [1] > http://dpdk.org/

Re: [dpdk-dev] [PATCH v2] doc: add shared library versions for missing PMDs

2017-09-27 Thread Yang, Zhiyong
Hi Ferruh, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit > Sent: Thursday, September 28, 2017 2:59 AM > To: Mcnamara, John > Cc: dev@dpdk.org; Thomas Monjalon ; Yigit, Ferruh > > Subject: [dpdk-dev] [PATCH v2] doc: add shared library versions fo

Re: [dpdk-dev] [PATCH v3] librte_eal: fix wrong assert for arm and ppc

2017-09-27 Thread Chao Zhu
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Lukasz Majczak > Sent: 2017年9月25日 15:35 > To: dev@dpdk.org > Cc: Lukasz Majczak > Subject: [dpdk-dev] [PATCH v3] librte_eal: fix wrong assert for arm and ppc > > The assertion of return value from the open() funct

Re: [dpdk-dev] [PATCH v2] examples/l3fwd: optimised packet processing on powerpc

2017-09-27 Thread Chao Zhu
> -Original Message- > From: Gowrishankar [mailto:gowrishanka...@linux.vnet.ibm.com] > Sent: 2017年9月21日 18:05 > To: dev@dpdk.org > Cc: Chao Zhu ; Tomasz Kantecki > ; Gowrishankar Muthukrishnan > > Subject: [PATCH v2] examples/l3fwd: optimised packet processing on powerpc > > From: Gowrish

Re: [dpdk-dev] [PATCH 2/5] eal/ppc64: define architecture specific rdtsc hz

2017-09-27 Thread Chao Zhu
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: 2017年8月13日 15:04 > To: dev@dpdk.org > Cc: tho...@monjalon.net; bruce.richard...@intel.com; > konstantin.anan...@intel.com; vikto...@rehivetech.com; > jianbo@linaro.org; chao...@linux.vnet.ibm.com; J

Re: [dpdk-dev] [PATCH v4 41/41] net/dpaa: support for extended statistics

2017-09-27 Thread Ferruh Yigit
On 9/27/2017 9:26 AM, Shreyansh Jain wrote: > On Thursday 21 September 2017 06:56 PM, Shreyansh Jain wrote: >> On Monday 18 September 2017 08:27 PM, Ferruh Yigit wrote: >>> On 9/9/2017 12:21 PM, Shreyansh Jain wrote: From: Hemant Agrawal Signed-off-by: Hemant Agrawal >>> >>> <...>

Re: [dpdk-dev] [PATCH v4 03/41] bus/dpaa: add compatibility and helper macros

2017-09-27 Thread Ferruh Yigit
On 9/26/2017 1:43 PM, Shreyansh Jain wrote: > On Tuesday 19 September 2017 07:27 PM, Shreyansh Jain wrote: >> On Tuesday 19 September 2017 07:10 PM, Ferruh Yigit wrote: >>> On 9/19/2017 2:18 PM, Shreyansh Jain wrote: On Monday 18 September 2017 08:19 PM, Ferruh Yigit wrote: > On 9/9/2017 1

Re: [dpdk-dev] [PATCH v3 1/2] net/i40e: queue region set and flush

2017-09-27 Thread Ferruh Yigit
On 9/26/2017 9:54 AM, Zhao1, Wei wrote: > Hi,  Ferruh Hi Wei, >> -Original Message- >> From: Yigit, Ferruh >> Sent: Wednesday, September 20, 2017 6:36 PM >> To: Zhao1, Wei ; dev@dpdk.org >> Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/i40e: queue region set and > flush >> >> On 9/15/2017 4:

[dpdk-dev] [PATCH v2] doc: add shared library versions for missing PMDs

2017-09-27 Thread Ferruh Yigit
Signed-off-by: Ferruh Yigit Acked-by: John McNamara --- doc/guides/rel_notes/release_17_11.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_17_11.rst b/doc/guides/rel_notes/release_17_11.rst index bb0ba80c6..de637fb4b 100644 --- a/doc/guides/rel_notes/rel

Re: [dpdk-dev] [PATCH v5 2/5] ethdev: increase port_id range

2017-09-27 Thread Ferruh Yigit
On 9/26/2017 8:01 AM, Yang, Zhiyong wrote: > Hi Ferruh, Thomas, > >>> @@ -40,7 +40,7 @@ LIB = librte_pmd_af_packet.a >>> >>> EXPORT_MAP := rte_pmd_af_packet_version.map >>> >>> -LIBABIVER := 1 >>> +LIBABIVER := 2 >> >> I have just recognized this one. This shouldn't be updated. Only LIABIVER of

[dpdk-dev] [PATCH v4 6/7] test/member: add functional and perf tests

2017-09-27 Thread Yipeng Wang
This patch adds functional and performance tests for membership library. Signed-off-by: Yipeng Wang --- test/test/Makefile | 3 + test/test/test_member.c | 676 +++ test/test/test_member_perf.c | 630 +++

[dpdk-dev] [PATCH v4 5/7] member: enable the library

2017-09-27 Thread Yipeng Wang
This patch enables the Membership library. Signed-off-by: Yipeng Wang --- MAINTAINERS| 8 +++- config/common_base | 5 + lib/librte_member/Makefile | 2 ++ mk/rte.app.mk | 2 ++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/MAINTAINER

[dpdk-dev] [PATCH v4 4/7] member: add AVX for HT mode

2017-09-27 Thread Yipeng Wang
For key search, the signatures of all entries are compared against the signature of the key that is being looked up. Since all signatures are contiguously put in a bucket, they can be compared with vector instructions (AVX2), achieving higher lookup performance. This patch adds AVX2 implementation

[dpdk-dev] [PATCH v4 3/7] member: implement vBF mode

2017-09-27 Thread Yipeng Wang
Bloom Filter (BF) [1] is a well-known space-efficient probabilistic data structure that answers set membership queries. Vector of Bloom Filters (vBF) is an extension to traditional BF that supports multi-set membership testing. Traditional BF will return found or not-found for each key. vBF will al

[dpdk-dev] [PATCH v4 1/7] member: implement main API

2017-09-27 Thread Yipeng Wang
Membership library is an extension and generalization of a traditional filter (for example Bloom Filter) structure. In general, the Membership library is a data structure that provides a "set-summary" and responds to set-membership queries of whether a certain element belongs to a set(s). A members

[dpdk-dev] [PATCH v4 2/7] member: implement HT mode

2017-09-27 Thread Yipeng Wang
One of the set-summary structures is hash-table based set-summary (HTSS). One example is cuckoo filter [1]. Comparing to a traditional hash table, HTSS has a much more compact structure. For each element, only one signature and its corresponding set ID is stored. No key comparison is required duri

[dpdk-dev] [PATCH v4 0/7] Add Membership Library

2017-09-27 Thread Yipeng Wang
DPDK Membership Library provides an API that can be used by many DPDK applications to conduct one or more set-membership tests (we mention some possible use cases below, but interested readers can refer to [1] for a wider survey of use cases). The basic functionalities of the Membership Library in

[dpdk-dev] [PATCH v4 8/8] net/i40e: enable cloud filter for GTP-C and GTP-U

2017-09-27 Thread Beilei Xing
GTP-C & GTP-U are not supported by cloud filter due to limited resource of HW, this patch enables GTP-C and GTP-U cloud filter by replacing inner_mac and TUNNEL_KEY. This configuration will be set when adding GTP-C or GTP-U filter rules, and it will be invalid only by NIC core reset. Signed-off-by

[dpdk-dev] [PATCH v4 7/8] net/i40e: add cloud filter parsing function for GTP

2017-09-27 Thread Beilei Xing
This patch adds i40e_flow_parse_gtp_filter parsing function for GTP-C and GTP-U. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 2 + drivers/net/i40e/i40e_flow.c | 151 + 2 files changed, 153 insertions(+) diff --git a/drivers/net/i40

[dpdk-dev] [PATCH v4 4/8] ethdev: add GTP items to support flow API

2017-09-27 Thread Beilei Xing
This patch adds GTP, GTPC and GTPU items for generic flow API, and also exposes item fields through the flow command. Signed-off-by: Beilei Xing Acked-by: Adrien Mazarguil --- app/test-pmd/cmdline_flow.c | 40 ++ app/test-pmd/config.c |

[dpdk-dev] [PATCH v4 6/8] net/i40e: add FDIR support for GTP-C and GTP-U

2017-09-27 Thread Beilei Xing
This patch adds FDIR support for GTP-C and GTP-U. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 30 + drivers/net/i40e/i40e_fdir.c | 200 ++- drivers/net/i40e/i40e_flow.c | 263 +++-- 3 files changed, 396

[dpdk-dev] [PATCH v4 5/8] net/i40e: finish integration FDIR with generic flow API

2017-09-27 Thread Beilei Xing
rte_eth_fdir_* structures are still used in FDIR functions. This patch adds i40e private FDIR related structures and functions to finish integration FDIR with generic flow API. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 83 ++- drivers/net/i40e/i40e_fdir.c | 490 +

[dpdk-dev] [PATCH v4 3/8] net/i40e: support RSS for new pctype

2017-09-27 Thread Beilei Xing
Enable RSS for new pctypes after downloading new profile. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index d6b0d50..aba35a5 100644

[dpdk-dev] [PATCH v4 0/8] GPT-C and GTP-U enabling

2017-09-27 Thread Beilei Xing
This patch set enables RSS/FDIR/cloud filter for GPT-C and GTP-U. It depends on Kirill's patch: http://dpdk.org/ml/archives/dev/2017-September/076035.html. However, Kirill's patchset needs to be updated. v4 changes: - Refine fdir related code. - Rework profile metadata parsing function. - Fix c

[dpdk-dev] [PATCH v4 2/8] net/i40e: update ptype and pctype info

2017-09-27 Thread Beilei Xing
Update new packet type and new pctype info when downloading profile. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 312 drivers/net/i40e/i40e_ethdev.h | 24 drivers/net/i40e/rte_pmd_i40e.c | 6 +- 3 files changed, 341 insertion

[dpdk-dev] [PATCH v4 1/8] mbuf: support GTP in software packet type parser

2017-09-27 Thread Beilei Xing
Add support of GTP-C and GTP-U tunnels in rte_net_get_ptype(). Signed-off-by: Beilei Xing Acked-by: Olivier Matz --- lib/librte_mbuf/rte_mbuf_ptype.c | 2 ++ lib/librte_mbuf/rte_mbuf_ptype.h | 24 2 files changed, 26 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf

Re: [dpdk-dev] [PATCH 06/12] eal: add channel for primary/secondary communication

2017-09-27 Thread Yuanhan Liu
On Fri, Aug 25, 2017 at 09:40:46AM +, Jianfeng Tan wrote: > Previouly, there is only one way for primary/secondary to exchange > messages, that is, primary process writes info into some predefind > file, and secondary process reads info out. That cannot address > the requirements: > a. Second

Re: [dpdk-dev] [PATCH 1/8] app: link the whole rte_cfgfile library

2017-09-27 Thread Bruce Richardson
On Wed, Sep 27, 2017 at 09:36:03AM +0200, Tomasz Duszynski wrote: > On Tue, Sep 26, 2017 at 03:31:18PM +0100, Bruce Richardson wrote: > > On Tue, Sep 26, 2017 at 11:39:58AM +0200, Tomasz Duszynski wrote: > > > Since MRVL NET PMD needs librte_cfgfile to parse QoS configuration file > > > link it as

Re: [dpdk-dev] [PATCH 0/8] add net/crypto mrvl pmd drivers

2017-09-27 Thread Tomasz Duszynski
On Wed, Sep 27, 2017 at 09:40:52AM +, De Lara Guarch, Pablo wrote: > > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tomasz Duszynski > > Sent: Tuesday, September 26, 2017 10:40 AM > > To: dev@dpdk.org > > Cc: m...@semihalf.com; d...@marvell.com; nsams.

Re: [dpdk-dev] [PATCH 0/8] add net/crypto mrvl pmd drivers

2017-09-27 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tomasz Duszynski > Sent: Tuesday, September 26, 2017 10:40 AM > To: dev@dpdk.org > Cc: m...@semihalf.com; d...@marvell.com; nsams...@marvell.com; > Tomasz Duszynski > Subject: [dpdk-dev] [PATCH 0/8] add net/crypt

Re: [dpdk-dev] [PATCH 10/12] vhost: support to kick in secondary process

2017-09-27 Thread Yuanhan Liu
On Fri, Sep 22, 2017 at 02:30:21AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > > Sent: Thursday, September 21, 2017 5:18 PM > > To: Tan, Jianfeng > > Cc: dev@dpdk.org; maxime.coque...@redhat.com; mtetsu...@gmail.com > > Subj

Re: [dpdk-dev] [PATCH v3] net/virtio: fix of untrusted scalar value

2017-09-27 Thread Yuanhan Liu
On Fri, Sep 22, 2017 at 05:21:49PM +0200, Daniel Mrzyglod wrote: > The unscrutinized value may be incorrectly assumed to be within a certain > range by later operations. > > In vhost_user_read: An unscrutinized value from an untrusted source used > in a trusted context - the value of sz_payload ma

[dpdk-dev] [PATCH] ethdev: increase length device internal name

2017-09-27 Thread Stephen Hemminger
Allow sufficicent space for UUID in string form (36+1). Needed to use UUID with Hyper-V. This was in deprecation notice for previous release and make it so in 17.11. Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst| 3 +++ lib/librte_eal/common/include/rte_dev.h | 6

Re: [dpdk-dev] [PATCH v4 02/41] bus/dpaa: introduce NXP DPAA Bus driver skeleton

2017-09-27 Thread Shreyansh Jain
On Monday 25 September 2017 08:41 PM, Ferruh Yigit wrote: On 9/25/2017 3:32 PM, Shreyansh Jain wrote: On Tuesday 19 September 2017 06:44 PM, Shreyansh Jain wrote: Hello Ferruh, On Monday 18 September 2017 08:17 PM, Ferruh Yigit wrote: On 9/9/2017 12:20 PM, Shreyansh Jain wrote: Signed-off-by

Re: [dpdk-dev] [PATCH v3 21/40] maintainers: claim ownership of DPAA Mempool driver

2017-09-27 Thread Shreyansh Jain
On Friday 22 September 2017 01:05 PM, Thomas Monjalon wrote: 22/09/2017 09:37, Shreyansh Jain: On Friday 22 September 2017 12:23 PM, Thomas Monjalon wrote: 22/09/2017 08:47, Shreyansh Jain: On Friday 22 September 2017 03:26 AM, Thomas Monjalon wrote: 23/08/2017 16:11, Shreyansh Jain: --- a/M

Re: [dpdk-dev] [PATCH v4 41/41] net/dpaa: support for extended statistics

2017-09-27 Thread Shreyansh Jain
On Thursday 21 September 2017 06:56 PM, Shreyansh Jain wrote: On Monday 18 September 2017 08:27 PM, Ferruh Yigit wrote: On 9/9/2017 12:21 PM, Shreyansh Jain wrote: From: Hemant Agrawal Signed-off-by: Hemant Agrawal <...> +static int +dpaa_dev_xstats_get(struct rte_eth_dev *dev, struct rt

[dpdk-dev] DPDK Summit Userspace Live Stream - Day 2

2017-09-27 Thread St Leger, Jim
We've made some improvements based on your feedback. Join us online. https://www.periscope.tv/w/1dRKZnleWbmKB

Re: [dpdk-dev] [PATCH 1/8] app: link the whole rte_cfgfile library

2017-09-27 Thread Tomasz Duszynski
On Tue, Sep 26, 2017 at 03:31:18PM +0100, Bruce Richardson wrote: > On Tue, Sep 26, 2017 at 11:39:58AM +0200, Tomasz Duszynski wrote: > > Since MRVL NET PMD needs librte_cfgfile to parse QoS configuration file > > link it as the whole library. > > > > Signed-off-by: Jacek Siuda > > Signed-off-by:

Re: [dpdk-dev] [PATCH v4] app/testpmd: enable the heavyweight mode TCP/IPv4 GRO

2017-09-27 Thread Yao, Lei A
> -Original Message- > From: Hu, Jiayu > Sent: Tuesday, September 26, 2017 2:27 PM > To: dev@dpdk.org > Cc: Yigit, Ferruh ; Tan, Jianfeng > ; Ananyev, Konstantin > ; tho...@monjalon.net; Wu, Jingjing > ; Yao, Lei A ; Hu, Jiayu > > Subject: [PATCH v4] app/testpmd: enable the heavyweight m