[dpdk-dev] [PATCH] arm64: change rte_memcpy to inline function

2016-05-19 Thread Jianbo Liu
On 13 May 2016 at 23:49, Thomas Monjalon wrote: > 2016-05-10 14:01, Jianbo Liu: >> Other APP may call rte_memcpy by function pointer, >> so change it to an inline function. > > Any example in mind? > It's for ODP-DPDK. >> --- a/lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h >> +++

[dpdk-dev] [PATCH v3] ci: Add the class_id support in pci probe

2016-05-19 Thread Ziye Yang
This patch is used to add the class_id (class_code, subclass_code, programming_interface) support for pci_device probe. With this patch, it will be flexible for users to probe a class of devices by class_id. Signed-off-by: Ziye Yang --- doc/guides/rel_notes/deprecation.rst| 6 --

[dpdk-dev] [PATCH v2] ci: Add the class_id support in pci probe

2016-05-19 Thread Ziye Yang
This patch is used to add the class_id (class_code, subclass_code, programming_interface) support for pci_device probe. With this patch, it will be flexible for users to probe a class of devices by class_id. Signed-off-by: Ziye Yang --- doc/guides/rel_notes/deprecation.rst| 6 --

[dpdk-dev] Underlinked libs and overlinked applications - an issue?

2016-05-19 Thread Thomas Monjalon
2016-05-19 17:38, Christian Ehrhardt: > Hi, > I was working on the new 16.04 build system to adapt deb packaging to it. > I remember somewhen back in the DPDK 2.2 and shared+combined library days I > had some issues with over/underlinking - but it seems those are still > existent or came back. I

[dpdk-dev] [PATCH] scripts: remove unused map files merger

2016-05-19 Thread Thomas Monjalon
This script was forgotten when dropping the combined library. Fixes: 948fd64befc3 ("mk: replace the combined library with a linker script") Signed-off-by: Thomas Monjalon --- MAINTAINERS | 1 - scripts/merge-maps.sh | 29 - 2 files changed, 30

[dpdk-dev] [PATCH] qede: fix 32-bit build with debug enabled

2016-05-19 Thread Thomas Monjalon
Some 64-bit variables are printed for debug. %PRIx64 qualifier must be used because %lx is not long enough on 32-bit systems Signed-off-by: Thomas Monjalon --- drivers/net/qede/base/bcm_osal.c| 4 ++-- drivers/net/qede/base/ecore_cxt.c | 6 +++--- drivers/net/qede/base/ecore_mcp.c | 4

[dpdk-dev] [PATCH] mbuf: make rearm_data address naturally aligned

2016-05-19 Thread Jerin Jacob
On Thu, May 19, 2016 at 12:18:57PM +, Ananyev, Konstantin wrote: > > Hi everyone, > > > On Thu, May 19, 2016 at 12:20:16AM +0530, Jerin Jacob wrote: > > > On Wed, May 18, 2016 at 05:43:00PM +0100, Bruce Richardson wrote: > > > > On Wed, May 18, 2016 at 07:27:43PM +0530, Jerin Jacob wrote: >

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-19 Thread Thomas Monjalon
2016-05-19 17:28, Ferruh Yigit: > On 5/19/2016 9:33 AM, Thomas Monjalon wrote: > > 2016-05-18 18:10, Ferruh Yigit: > >> Add rte_eth_from_vhost() API to create vhost PMD dynamically from > >> applications. > > > > How is it different from rte_eth_dev_attach() calling rte_eal_vdev_init()? > > > >

[dpdk-dev] virtio: crash when using multiple processes (16.04 regression)

2016-05-19 Thread Thomas Monjalon
2016-05-19 16:20, Yoni Gilad: > We have encountered a crash in virtio_xmit_pkts (specifically, in the call to > virtqueue_notify) when running DPDK in a multi-process setup. This is a > regression in DPDK 16.04. Thanks a lot for reporting. 2 tips to improve such bug report: - Send it to the

[dpdk-dev] [PATCH] qede: fix 32-bit build with debug enabled

2016-05-19 Thread Harish Patil
> >Some 64-bit variables are printed for debug. >%PRIx64 qualifier must be used because %lx is not long enough >on 32-bit systems > >Signed-off-by: Thomas Monjalon >--- > drivers/net/qede/base/bcm_osal.c| 4 ++-- > drivers/net/qede/base/ecore_cxt.c | 6 +++--- >

[dpdk-dev] [PATCH] arm64: change rte_memcpy to inline function

2016-05-19 Thread Thomas Monjalon
2016-05-19 21:48, Jianbo Liu: > On 13 May 2016 at 23:49, Thomas Monjalon wrote: > > 2016-05-10 14:01, Jianbo Liu: > >> Other APP may call rte_memcpy by function pointer, > >> so change it to an inline function. > > > > Any example in mind? > > > It's for ODP-DPDK. Given that ODP is open

[dpdk-dev] [PATCH] mbuf: make rearm_data address naturally aligned

2016-05-19 Thread Thomas Monjalon
2016-05-19 19:05, Jerin Jacob: > On Thu, May 19, 2016 at 12:18:57PM +, Ananyev, Konstantin wrote: > > > On Thu, May 19, 2016 at 12:20:16AM +0530, Jerin Jacob wrote: > > > > On Wed, May 18, 2016 at 05:43:00PM +0100, Bruce Richardson wrote: > > > > > On Wed, May 18, 2016 at 07:27:43PM +0530,

[dpdk-dev] Underlinked libs and overlinked applications - an issue?

2016-05-19 Thread Christian Ehrhardt
Hi, I was working on the new 16.04 build system to adapt deb packaging to it. I remember somewhen back in the DPDK 2.2 and shared+combined library days I had some issues with over/underlinking - but it seems those are still existent or came back. After a build in almost default config (just

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-19 Thread Ferruh Yigit
On 5/19/2016 9:33 AM, Thomas Monjalon wrote: > 2016-05-18 18:10, Ferruh Yigit: >> Add rte_eth_from_vhost() API to create vhost PMD dynamically from >> applications. > > How is it different from rte_eth_dev_attach() calling rte_eal_vdev_init()? > When used rte_eth_dev_attach(), application also

[dpdk-dev] [PATCH v2 6/7] virtio: fix pci accesses for ppc64 in legacy mode

2016-05-19 Thread Chao Zhu
Olivier, Thanks for the patches! Just one comment: POWER8 machine only supports little endian OS on bare metal. In VM guest, it can support both little endian and big endian OS. Did you try to run it on both host (little endian) and guest (big endian and little endian)? -Original

[dpdk-dev] [PATCH 1/2] mempool: add stack (fifo) mempool handler

2016-05-19 Thread Hunt, David
On 5/5/2016 10:28 PM, Stephen Hemminger wrote: > Overall, this is ok, but why can't it be the default? Backward compatibility would probably be the main reason, to have the least impact when recompiling. > Lots of little things should be cleaned up I've submitted a v2, and addressed all your

[dpdk-dev] virtio: crash when using multiple processes (16.04 regression)

2016-05-19 Thread Yoni Gilad
Hi, We have encountered a crash in virtio_xmit_pkts (specifically, in the call to virtqueue_notify) when running DPDK in a multi-process setup. This is a regression in DPDK 16.04. The culprit seems to be the field vtpci_ops in the virtio_hw structure. This field is stored in shared memory,

[dpdk-dev] v2 mempool: add stack (lifo) mempool handler

2016-05-19 Thread Hunt, David
On 5/19/2016 3:48 PM, David Hunt wrote: > This patch set adds a fifo stack handler to the external mempool > manager. Apologies, cut and paste error, should be lifo stack handler. I thought I'd caught all of these... > This patch set depends on the 3 part external mempool handler > patch set

[dpdk-dev] [PATCH v2 3/3] test: add autotest for external mempool stack handler

2016-05-19 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_mempool.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index f55d126..b98804a 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -570,6 +570,7 @@

[dpdk-dev] [PATCH v2 1/3] mempool: add stack (lifo) mempool handler

2016-05-19 Thread David Hunt
This is a mempool handler that is useful for pipelining apps, where the mempool cache doesn't really work - example, where we have one core doing rx (and alloc), and another core doing Tx (and return). In such a case, the mempool ring simply cycles through all the mbufs, resulting in a LLC miss on

[dpdk-dev] v2 mempool: add stack (lifo) mempool handler

2016-05-19 Thread David Hunt
This patch set adds a fifo stack handler to the external mempool manager. This patch set depends on the 3 part external mempool handler patch set (v5 of the series): http://dpdk.org/ml/archives/dev/2016-May/039364.html v2 changes: * updated based on mailing list feedback (Thanks Stephen) *

[dpdk-dev] [PATCH v2] doc: fix typo in freebsd doc

2016-05-19 Thread Pablo de Lara
Signed-off-by: Pablo de Lara --- Changes in v2: - Added missing word doc/guides/freebsd_gsg/build_dpdk.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/freebsd_gsg/build_dpdk.rst b/doc/guides/freebsd_gsg/build_dpdk.rst index ceacf7f..1d92c08 100644 ---

[dpdk-dev] [PATCH] librte_table: remove unnecessary printf messages from acl build

2016-05-19 Thread Jasvinder Singh
Removes rte_acl_dump() call from rte_table_acl_build () as it invokes number of printf messages. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- lib/librte_table/rte_table_acl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_table/rte_table_acl.c

[dpdk-dev] [PATCH] doc: fix typo in freebsd doc

2016-05-19 Thread Bruce Richardson
On Thu, May 19, 2016 at 03:32:22PM +0100, Pablo de Lara wrote: > Signed-off-by: Pablo de Lara > --- > doc/guides/freebsd_gsg/build_dpdk.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/guides/freebsd_gsg/build_dpdk.rst > b/doc/guides/freebsd_gsg/build_dpdk.rst >

[dpdk-dev] [PATCH] doc: fix typo in freebsd doc

2016-05-19 Thread Pablo de Lara
Signed-off-by: Pablo de Lara --- doc/guides/freebsd_gsg/build_dpdk.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/freebsd_gsg/build_dpdk.rst b/doc/guides/freebsd_gsg/build_dpdk.rst index ceacf7f..edf3725 100644 --- a/doc/guides/freebsd_gsg/build_dpdk.rst +++

[dpdk-dev] [PATCH v2] doc: announce ABI change of struct rte_port_source_params and rte_port_sink_params

2016-05-19 Thread Fan Zhang
The ABI changes are planned for rte_port_source_params and rte_port_sink_params, which will be supported from release 16.11. Here announces that ABI changes in detail. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 8 1 file changed,

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Thomas Monjalon
2016-05-19 12:18, Yang, Ziye: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > 2016-05-11 14:08, Ziye Yang: > > + dev->id.class_id = (uint32_t)tmp && CLASS_ANY_ID; > > Should be a bitwise &. Why masking is needed? > [Ziye] Only 24bit info is needed. What are the other bits?

[dpdk-dev] [PATCH v3 00/35] mempool: rework memory allocation

2016-05-19 Thread Thomas Monjalon
2016-05-18 13:04, Olivier Matz: > This series is a rework of mempool. For those who don't want to read > all the cover letter, here is a sumary: > > - it is not possible to allocate large mempools if there is not enough > contiguous memory, this series solves this issue > - introduce new APIs

[dpdk-dev] [PATCH v5 3/3] mbuf: get default mempool handler from configuration

2016-05-19 Thread David Hunt
By default, the mempool handler used for mbuf allocations is a multi producer and multi consumer ring. We could imagine a target (maybe some network processors?) that provides an hardware-assisted pool mechanism. In this case, the default configuration for this architecture would contain a

[dpdk-dev] [PATCH v5 2/3] app/test: test external mempool handler

2016-05-19 Thread David Hunt
Use a minimal custom mempool external handler and check that it also passes basic mempool autotests. Signed-off-by: Olivier Matz Signed-off-by: David Hunt --- app/test/test_mempool.c | 113 1 file changed, 113 insertions(+) diff --git

[dpdk-dev] [PATCH v5 1/3] mempool: support external handler

2016-05-19 Thread David Hunt
Until now, the objects stored in mempool mempool were internally stored a ring. This patch introduce the possibility to register external handlers replacing the ring. The default behavior remains unchanged, but calling the new function rte_mempool_set_handler() right after

[dpdk-dev] mempool: external mempool manager

2016-05-19 Thread David Hunt
Here's the latest version of the External Mempool Manager patchset. It's re-based on top of the latest head as of 19/5/2016, including Olivier's 35-part patch series on mempool re-org [1] [1] http://dpdk.org/ml/archives/dev/2016-May/039229.html v5 changes: * rebasing, as it is dependent on

[dpdk-dev] [PATCH v2] doc: fix typo in freebsd doc

2016-05-19 Thread Richardson, Bruce
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Thursday, May 19, 2016 3:39 PM > To: dev at dpdk.org; Richardson, Bruce > Cc: Mcnamara, John ; De Lara Guarch, Pablo > > Subject: [PATCH v2] doc: fix typo in freebsd doc > > Signed-off-by: Pablo de Lara Acked-by: Bruce

[dpdk-dev] [PATCH v4] mbuf: decrease refcnt when detaching

2016-05-19 Thread Thomas Monjalon
> > The rte_pktmbuf_detach() function should decrease refcnt on a direct > > buffer. > > > > Signed-off-by: Hiroyuki Mikita > > Acked-by: Olivier Matz Applied with the doc reference in the commit message, thanks.

[dpdk-dev] [PATCH] doc: fix typo in freebsd doc

2016-05-19 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Thursday, May 19, 2016 3:34 PM > To: De Lara Guarch, Pablo > Cc: dev at dpdk.org; Mcnamara, John > Subject: Re: [dpdk-dev] [PATCH] doc: fix typo in freebsd doc > > On Thu, May 19,

[dpdk-dev] [PATCH v2] rte mempool: division or modulo by zero

2016-05-19 Thread Slawomir Mrozowicz
Fix issue reported by Coverity. Coverity ID 13243: Division or modulo by zero In function call rte_mempool_xmem_size, division by expression total_size which may be zero has undefined behavior. Fixes: 148f963fb532 ("xen: core library changes") Signed-off-by: Slawomir Mrozowicz ---

[dpdk-dev] [PATCH 1/2] mbuf: new NSH packet type

2016-05-19 Thread Olivier Matz
Hi Jingjing, On 05/03/2016 07:51 AM, Jingjing Wu wrote: > Signed-off-by: Jingjing Wu > --- > lib/librte_mbuf/rte_mbuf.h | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h > index 529debb..79edae3 100644 > ---

[dpdk-dev] [PATCH v2] cmdline: check return value at initialization

2016-05-19 Thread Thomas Monjalon
2016-05-17 10:36, Olivier Matz: > From: Marcin Kerlin > > The value returned by rdline_init() was not checked in cmdline_new(). > On error, free the allocated memory and return NULL. > > This condition should not happen today, but it's safer to do the check > in case rdline_init() is updated. >

[dpdk-dev] [PATCH] mbuf: make rearm_data address naturally aligned

2016-05-19 Thread Jan Viktorin
On Thu, 19 May 2016 09:50:48 +0100 Bruce Richardson wrote: > On Thu, May 19, 2016 at 12:20:16AM +0530, Jerin Jacob wrote: > > On Wed, May 18, 2016 at 05:43:00PM +0100, Bruce Richardson wrote: > > > On Wed, May 18, 2016 at 07:27:43PM +0530, Jerin Jacob wrote: > > > > To avoid multiple stores

[dpdk-dev] [PATCH] tools:new tool for system info CPU, memory and huge pages

2016-05-19 Thread Hunt, David
Hi Keith. Works nicely on the few different machines I tried it on. Regards, Dave. On 5/13/2016 4:43 PM, Keith Wiles wrote: > The new tool uses /sys/devices instead of /proc directory, which > does not exist on all systems. If the procfs is not available > then memory and huge page

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Yang, Ziye
-Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Thursday, May 19, 2016 8:57 PM To: Yang, Ziye Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] pci: Add the class_id support in pci probe 2016-05-19 12:18, Yang, Ziye: > From: Thomas Monjalon

[dpdk-dev] [PATCH] rte mempool: division or modulo by zero

2016-05-19 Thread Olivier Matz
Hi Slawomir, On 05/19/2016 12:57 PM, Mrozowicz, SlawomirX wrote: > Hi Olivier, > > I try to marge my change CID 13234 with your patch 12057. > Can you tell me which is the base commit to apply the patch. > I think that I should apply your patches starting from 12834. > Yes that's correct,

[dpdk-dev] [dpdk-dev, PATCHv2, 2/4] drivers: Update driver registration macro usage

2016-05-19 Thread Jan Viktorin
Hello Neil, just few notes... (sorry if you've recevied this twice, importing mbox files from patchwork always changes my default From: field) On Wed, 18 May 2016 17:08:05 -0400 Neil Horman wrote: > Modify the PMD_REGISTER_DRIVER macro, bifurcating it into two > (PMD_REGISTER_DRIVER_PDEV and

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Thomas Monjalon
2016-05-11 14:08, Ziye Yang: > This patch is used to add the class_id (class_code, > subclass_code, programming_interface) support for > pci_device probe. With this patch, it will be > flexible for users to probe a class of devices > by class_id. > > Signed-off-by: Ziye Yang > --- >

[dpdk-dev] [PATCH] tools: allow binding to other network class devices

2016-05-19 Thread Thomas Monjalon
2016-05-06 15:27, Thadeu Lima de Souza Cascardo: > dpdk_nic_bind will only handle Ethernet devices, but Mellanox ConnectX-3 Pro, > for example, is a Network class device, but not an Ethernet one. Even though > this allows other devices in the list, like Wireless devices, this should not > be > a

[dpdk-dev] [PATCH 08/20] thunderx/nicvf: add tx_queue_setup/release support

2016-05-19 Thread Pattan, Reshma
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jerin Jacob > Sent: Saturday, May 7, 2016 4:16 PM > To: dev at dpdk.org > Cc: thomas.monjalon at 6wind.com; Richardson, Bruce > ; Jerin Jacob > ; Maciej Czekaj > ; Kamil Rytarowski > ; Zyta Szpak > ; Slawomir

[dpdk-dev] [PATCH] mbuf: make rearm_data address naturally aligned

2016-05-19 Thread Ananyev, Konstantin
Hi everyone, > On Thu, May 19, 2016 at 12:20:16AM +0530, Jerin Jacob wrote: > > On Wed, May 18, 2016 at 05:43:00PM +0100, Bruce Richardson wrote: > > > On Wed, May 18, 2016 at 07:27:43PM +0530, Jerin Jacob wrote: > > > > To avoid multiple stores on fast path, Ethernet drivers > > > > aggregate

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Yang, Ziye
-Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Thursday, May 19, 2016 6:34 PM To: Yang, Ziye Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] pci: Add the class_id support in pci probe 2016-05-11 14:08, Ziye Yang: > This patch is used to add the

[dpdk-dev] [PATCH v2] mbuf: add helpers to prefetch mbuf

2016-05-19 Thread Jerin Jacob
On Wed, May 18, 2016 at 06:02:08PM +0200, Olivier Matz wrote: > Some architectures (ex: Power8) have a cache line size of 128 bytes, > so the drivers should not expect that prefetching the second part of > the mbuf with rte_prefetch0(>cacheline1) is valid. > > This commit add helpers that can be

[dpdk-dev] [PATCHv2 4/4] pmdinfo.py: Add tool to query binaries for hw and other support information

2016-05-19 Thread Panu Matilainen
On 05/19/2016 12:08 AM, Neil Horman wrote: > This tool searches for the primer sting PMD_DRIVER_INFO= in any ELF binary, > and, if found parses the remainder of the string as a json encoded string, > outputting the results in either a human readable or raw, script parseable > format > > Note that,

[dpdk-dev] [PATCH 19/20] thunderx/nicvf: updated driver documentation and release notes

2016-05-19 Thread Jerin Jacob
On Tue, May 17, 2016 at 04:31:58PM +, Mcnamara, John wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jerin Jacob > > Sent: Saturday, May 7, 2016 4:17 PM > > To: dev at dpdk.org > > Cc: thomas.monjalon at 6wind.com; Richardson, Bruce > > ; Jerin

[dpdk-dev] DPDK Summit USA 2016, Announcement and Call for Speakers

2016-05-19 Thread O'Driscoll, Tim
We're delighted to announce that the DPDK Summit USA 2016 will be held on August 10th & 11th at The Tech Museum of Innovation (http://www.thetech.org), San Jose. The DPDK Summit events provide an opportunity for the DPDK community to meet face-to-face and discuss the future direction of the

[dpdk-dev] [PATCHv2 2/4] drivers: Update driver registration macro usage

2016-05-19 Thread Panu Matilainen
On 05/19/2016 12:08 AM, Neil Horman wrote: > Modify the PMD_REGISTER_DRIVER macro, bifurcating it into two > (PMD_REGISTER_DRIVER_PDEV and PMD_REGISTER_DRIVER_VDEV. Both of these do the > same thing the origional macro did, but both add the definition of a string > variable that informs

[dpdk-dev] [PATCH] rte mempool: division or modulo by zero

2016-05-19 Thread Mrozowicz, SlawomirX
Hi Olivier, I try to marge my change CID 13234 with your patch 12057. Can you tell me which is the base commit to apply the patch. I think that I should apply your patches starting from 12834. Regards, Slawomir >-Original Message- >From: Olivier Matz [mailto:olivier.matz at

[dpdk-dev] [PATCHv2 1/4] pmdinfogen: Add buildtools and pmdinfogen utility

2016-05-19 Thread Panu Matilainen
On 05/19/2016 12:08 AM, Neil Horman wrote: [...] > + if (strcmp(secname, ".modinfo") == 0) { > + if (nobits) > + fprintf(stderr, "%s has NOBITS .modinfo\n", > filename); > + info->modinfo = (void *)hdr +

[dpdk-dev] [PATCH v3 09/11] eal/pci: allow to override sysfs

2016-05-19 Thread Jan Viktorin
I forgot to fix those: 12826: ERROR: code indent should use tabs where possible #175: FILE: lib/librte_eal/linuxapp/eal/eal_pci.c:69: +^I "%s/" PCI_PRI_FMT "/driver/unbind", pci_get_sysfs_path(),$ WARNING: line over 80 characters #193: FILE:

[dpdk-dev] [PATCH v3 01/11] app/test: introduce resources for tests

2016-05-19 Thread Jan Viktorin
I forgot to fix this: Check patch error: 12817: ERROR: space required after that ',' (ctx:VxV) #244: FILE: app/test/resource.h:93: +static void __attribute__((constructor,used)) resinitfn_ ##n(void) ^ total: 1 errors, 0 warnings, 259 lines checked

[dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation

2016-05-19 Thread Thomas Monjalon
2016-05-18 18:10, Ferruh Yigit: > Add rte_eth_from_vhost() API to create vhost PMD dynamically from > applications. How is it different from rte_eth_dev_attach() calling rte_eal_vdev_init()?

[dpdk-dev] [PATCH] eal: add option --avail-cores to detect lcores

2016-05-19 Thread Tan, Jianfeng
Hi David, On 5/18/2016 8:46 PM, David Marchand wrote: > Hello Jianfeng, > > On Wed, Mar 9, 2016 at 2:05 PM, Panu Matilainen > wrote: >> On 03/08/2016 07:38 PM, Tan, Jianfeng wrote: >>> Hi Panu, >>> >>> On 3/8/2016 4:54 PM, Panu Matilainen wrote: On 03/04/2016 12:05 PM, Jianfeng Tan wrote:

[dpdk-dev] [PATCH v4] eal: make hugetlb initialization more robust

2016-05-19 Thread Tan, Jianfeng
Hi Thomas & Sergio, On 5/18/2016 4:06 PM, Sergio Gonzalez Monroy wrote: > On 17/05/2016 17:40, Thomas Monjalon wrote: >> 2016-05-12 00:44, Jianfeng Tan: >>> This patch adds an option, --huge-trybest, to use a recover >>> mechanism to >>> the case that there are not so many hugepages (declared

[dpdk-dev] [PATCH v4] eal: make hugetlb initialization more robust

2016-05-19 Thread Tan, Jianfeng
Hi David, On 5/18/2016 12:39 AM, David Marchand wrote: > Hello Jianfeng, > > On Thu, May 12, 2016 at 2:44 AM, Jianfeng Tan > wrote: >> This patch adds an option, --huge-trybest, to use a recover mechanism to >> the case that there are not so many hugepages (declared in sysfs), which >> can be

[dpdk-dev] [PATCH] mbuf: make rearm_data address naturally aligned

2016-05-19 Thread Bruce Richardson
On Thu, May 19, 2016 at 12:20:16AM +0530, Jerin Jacob wrote: > On Wed, May 18, 2016 at 05:43:00PM +0100, Bruce Richardson wrote: > > On Wed, May 18, 2016 at 07:27:43PM +0530, Jerin Jacob wrote: > > > To avoid multiple stores on fast path, Ethernet drivers > > > aggregate the writes to data_off,

[dpdk-dev] [PATCH 07/20] thunderx/nicvf: add rx_queue_setup/release support

2016-05-19 Thread Pattan, Reshma
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jerin Jacob > Sent: Saturday, May 7, 2016 4:16 PM > To: dev at dpdk.org > Cc: thomas.monjalon at 6wind.com; Richardson, Bruce > ; Jerin Jacob > ; Maciej Czekaj > ; Kamil Rytarowski > ; Zyta Szpak > ; Slawomir

[dpdk-dev] [PATCH 4/4] pmd_hw_support.py: Add tool to query binaries for hw support information

2016-05-19 Thread Neil Horman
On Thu, May 19, 2016 at 09:08:52AM +0300, Panu Matilainen wrote: > On 05/18/2016 04:48 PM, Neil Horman wrote: > > On Wed, May 18, 2016 at 03:48:12PM +0300, Panu Matilainen wrote: > > > On 05/18/2016 03:03 PM, Neil Horman wrote: > > > > On Wed, May 18, 2016 at 02:48:30PM +0300, Panu Matilainen

[dpdk-dev] [PATCH 4/4] pmd_hw_support.py: Add tool to query binaries for hw support information

2016-05-19 Thread Panu Matilainen
On 05/18/2016 04:48 PM, Neil Horman wrote: > On Wed, May 18, 2016 at 03:48:12PM +0300, Panu Matilainen wrote: >> On 05/18/2016 03:03 PM, Neil Horman wrote: >>> On Wed, May 18, 2016 at 02:48:30PM +0300, Panu Matilainen wrote: On 05/16/2016 11:41 PM, Neil Horman wrote: > This tool searches

[dpdk-dev] [PATCHv2 1/4] pmdinfogen: Add buildtools and pmdinfogen utility

2016-05-19 Thread Neil Horman
On Thu, May 19, 2016 at 10:51:19AM +0300, Panu Matilainen wrote: > On 05/19/2016 12:08 AM, Neil Horman wrote: > [...] > > + if (strcmp(secname, ".modinfo") == 0) { > > + if (nobits) > > + fprintf(stderr, "%s has NOBITS .modinfo\n", > >

[dpdk-dev] [PATCHv2 4/4] pmdinfo.py: Add tool to query binaries for hw and other support information

2016-05-19 Thread Neil Horman
On Thu, May 19, 2016 at 12:02:27PM +0300, Panu Matilainen wrote: > On 05/19/2016 12:08 AM, Neil Horman wrote: > > This tool searches for the primer sting PMD_DRIVER_INFO= in any ELF binary, > > and, if found parses the remainder of the string as a json encoded string, > > outputting the results in

[dpdk-dev] [dpdk-dev, PATCHv2, 2/4] drivers: Update driver registration macro usage

2016-05-19 Thread Neil Horman
On Thu, May 19, 2016 at 12:46:50PM +0200, Jan Viktorin wrote: > Hello Neil, > > just few notes... > > On Wed, 18 May 2016 17:08:05 -0400 > Neil Horman wrote: > > > Modify the PMD_REGISTER_DRIVER macro, bifurcating it into two > > (PMD_REGISTER_DRIVER_PDEV and PMD_REGISTER_DRIVER_VDEV. Both of

[dpdk-dev] [PATCHv2 2/4] drivers: Update driver registration macro usage

2016-05-19 Thread Neil Horman
On Thu, May 19, 2016 at 10:58:23AM +0300, Panu Matilainen wrote: > On 05/19/2016 12:08 AM, Neil Horman wrote: > > Modify the PMD_REGISTER_DRIVER macro, bifurcating it into two > > (PMD_REGISTER_DRIVER_PDEV and PMD_REGISTER_DRIVER_VDEV. Both of these do > > the > > same thing the origional macro

[dpdk-dev] Query on RSS Rule

2016-05-19 Thread Lu, Wenzhuo
Hi Nishant, From: Nishant Verma [mailto:vnis...@gmail.com] Sent: Thursday, May 19, 2016 11:21 AM To: Lu, Wenzhuo Cc: dev at dpdk.org Subject: Re: [dpdk-dev] Query on RSS Rule Hi Wenzhuo, Tried UDP as well as TCP. Also use dump function to check if packet it correct or not. I found packet

[dpdk-dev] Query on RSS Rule

2016-05-19 Thread Lu, Wenzhuo
Hi Nishant, From: Nishant Verma [mailto:vnis...@gmail.com] Sent: Thursday, May 19, 2016 10:29 AM To: Lu, Wenzhuo Cc: dev at dpdk.org Subject: Re: [dpdk-dev] Query on RSS Rule Hi Wenzhuo, Thanks for the reply. Yes, i am using ixgbe. On software front, this is what i am doing. I am using

[dpdk-dev] Query on RSS Rule

2016-05-19 Thread Lu, Wenzhuo
Hi Nishant, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Nishant Verma > Sent: Thursday, May 19, 2016 7:06 AM > To: dev at dpdk.org > Subject: [dpdk-dev] Query on RSS Rule > > ?Hi All, > > It's very basic question, but somehow i am blocked due to this

[dpdk-dev] [PATCH] mbuf: make rearm_data address naturally aligned

2016-05-19 Thread Jerin Jacob
On Wed, May 18, 2016 at 05:43:00PM +0100, Bruce Richardson wrote: > On Wed, May 18, 2016 at 07:27:43PM +0530, Jerin Jacob wrote: > > To avoid multiple stores on fast path, Ethernet drivers > > aggregate the writes to data_off, refcnt, nb_segs and port > > to an uint64_t data and write the data in

[dpdk-dev] EAL: memzone_reserve_aligned_thread_unsafe(): No more room in config

2016-05-19 Thread 张伟
Hi all, When using dpdk multi process client server example, I create many clients. After the number of clients 1239, I met this error: EAL: memzone_reserve_aligned_thread_unsafe(): No more room in config RING: Cannot reserve memory EAL: Error - exiting with code: 1 Cause: Cannot create

[dpdk-dev] [PATCH v4] mbuf: decrease refcnt when detaching

2016-05-19 Thread Hiroyuki Mikita
The rte_pktmbuf_detach() function should decrease refcnt on a direct buffer. Signed-off-by: Hiroyuki Mikita --- v4: * fixed formatting. * fixed doxygen comments of rte_pktmbuf_detach() to be clearer. v3: * fixed rte_pktmbuf_detach() to decrease refcnt. * free the direct mbuf when refcnt becomes

[dpdk-dev] [PATCH v3] mbuf: decrease refcnt when detaching

2016-05-19 Thread Hiroyuki Mikita
Hi Olivier, Thanks for reviewing. I am fixing the patch to follow your comments. Regards, Hiroyuki 2016-05-18 20:58 GMT+09:00 Olivier Matz : > Hi Hiroyuki, > > Thanks for submitting a new version. > > There are some styling issues in the patch, I highlighted them below > but you can check them

[dpdk-dev] Query on RSS Rule

2016-05-19 Thread Nishant Verma
Hi Wenzhuo, Tried UDP as well as TCP. Also use dump function to check if packet it correct or not. I found packet perfectly fine. but anyhow problem still remain the same. On Wed, May 18, 2016 at 11:09 PM, Lu, Wenzhuo wrote: > Hi Nishant, > > > > *From:* Nishant Verma [mailto:vnish11 at