[dpdk-dev] [PATCH v2 5/5] testpmd: show topology at forwarding start

2016-05-31 Thread Zhihong Wang
This patch show topology at forwarding start. "show config fwd" also does this, but showing it directly can reduce the possibility of misconfiguration. Signed-off-by: Zhihong Wang --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/config.c | 4 ++-- app/test-pmd/testpmd.c | 2 +- app/test-pmd/te

[dpdk-dev] [PATCH v2 4/5] testpmd: handle all rxqs in rss setup

2016-05-31 Thread Zhihong Wang
This patch removes constraints in rxq handling when multiqueue is enabled to handle all the rxqs. Current testpmd forces a dedicated core for each rxq, some rxqs may be ignored when core number is less than rxq number, and that causes confusion and inconvenience. Signed-off-by: Zhihong Wang ---

[dpdk-dev] [PATCH v2 3/5] testpmd: show throughput in port stats

2016-05-31 Thread Zhihong Wang
This patch adds throughput numbers (in the period since last use of this command) in port statistics display for "show port stats (port_id|all)". Signed-off-by: Zhihong Wang --- app/test-pmd/config.c | 20 1 file changed, 20 insertions(+) diff --git a/app/test-pmd/config.c

[dpdk-dev] [PATCH v2 2/5] testpmd: configurable tx_first burst number

2016-05-31 Thread Zhihong Wang
This patch enables configurable tx_first burst number. Use "start tx_first (burst_num)" to specify how many bursts of packets to be sent before forwarding start, or "start tx_first" like before for the default 1 burst send. Signed-off-by: Zhihong Wang --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v2 1/5] testpmd: add retry option

2016-05-31 Thread Zhihong Wang
This patch adds retry option in testpmd to prevent most packet losses. It can be enabled by "set fwd retry". All modes except rxonly support this option. Adding retry mechanism expands test case coverage to support scenarios where packet loss affects test results. Signed-off-by: Zhihong Wang -

[dpdk-dev] [PATCH v2 0/5] vhost/virtio performance loopback utility

2016-05-31 Thread Zhihong Wang
This patch enables vhost/virtio pmd performance loopback test in testpmd. All the features are for general usage. The loopback test focuses on the maximum full-path packet forwarding performance between host and guest, it runs vhost/virtio pmd only without introducing extra overhead. Therefore, t

[dpdk-dev] [PATCH v2] mempool: replace c memcpy code semantics with optimized rte_memcpy

2016-05-31 Thread Olivier MATZ
Hi Jerin, >>> /* Add elements back into the cache */ >>> - for (index = 0; index < n; ++index, obj_table++) >>> - cache_objs[index] = *obj_table; >>> + rte_memcpy(&cache_objs[0], obj_table, sizeof(void *) * n); >>> >>> cache->len += n; >>> >>> >> >> I also checked in the

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Olivier MATZ
Hi Stephen, On 05/31/2016 10:28 PM, Stephen Hemminger wrote: > On Tue, 31 May 2016 21:11:59 +0200 > Olivier MATZ wrote: > >> >> >> On 05/31/2016 10:09 AM, Yuanhan Liu wrote: >>> On Mon, May 30, 2016 at 05:26:21PM +0200, Olivier Matz wrote: PKT_RX_L4_CKSUM_NONE: the L4 checksum is not corre

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

2016-05-31 Thread Olivier MATZ
Hi, On 05/31/2016 06:03 PM, Jerin Jacob wrote: > On Tue, May 31, 2016 at 04:37:02PM +0100, Hunt, David wrote: >> >> >> On 5/31/2016 9:53 AM, Jerin Jacob wrote: >>> On Mon, May 30, 2016 at 12:27:26PM +0100, Hunt, David wrote: New mempool handlers will use rte_mempool_create_empty(), rte_m

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

2016-05-31 Thread Olivier MATZ
Hi, On 05/31/2016 03:47 PM, Hunt, David wrote: > On 5/31/2016 1:06 PM, Jan Viktorin wrote: >> On Tue, 31 May 2016 10:09:42 +0100 >> "Hunt, David" wrote: >> >>> The *p pointer is the opaque data for a given mempool handler (ring, >>> array, linked list, etc) >> Again, doc comments... >> >> I don't

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

2016-05-31 Thread Olivier MATZ
Hi, On 05/31/2016 02:14 PM, Jan Viktorin wrote: > On Tue, 31 May 2016 10:17:41 +0100 > "Hunt, David" wrote: >> On 5/23/2016 1:45 PM, Jan Viktorin wrote: >>> The test becomes quite complex. What about having several smaller >>> tests with a clear setup and cleanup steps? >> >> I guess that's som

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

2016-05-31 Thread Jerin Jacob
On Tue, May 31, 2016 at 04:37:02PM +0100, Hunt, David wrote: > > > On 5/31/2016 9:53 AM, Jerin Jacob wrote: > > On Mon, May 30, 2016 at 12:27:26PM +0100, Hunt, David wrote: > > > New mempool handlers will use rte_mempool_create_empty(), > > > rte_mempool_set_handler(), > > > then rte_mempool_popu

[dpdk-dev] [PATCH] mbuf: extend rte_mbuf_prefetch_part* to support more prefetching methods

2016-05-31 Thread Olivier MATZ
Hi Jianbo, On 05/31/2016 05:06 AM, Jianbo Liu wrote: > Change the inline function to macro with parameters > > Signed-off-by: Jianbo Liu > > [...] > --- a/lib/librte_mbuf/rte_mbuf.h > +++ b/lib/librte_mbuf/rte_mbuf.h > @@ -849,14 +849,15 @@ struct rte_mbuf { > * in the receive path. If the cac

[dpdk-dev] [PATCH] kni: fix use of undefined comma variable in makefile

2016-05-31 Thread Olivier MATZ
Hi Ferruh, On 05/31/2016 03:35 PM, Ferruh Yigit wrote: > Error is related to the kernel version, in second call "comma" > definition comes from kernel makefiles. > > Following commit causes comma to be defined: > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=371fdc77a

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Olivier MATZ
On 05/31/2016 10:09 AM, Yuanhan Liu wrote: > On Mon, May 30, 2016 at 05:26:21PM +0200, Olivier Matz wrote: >> PKT_RX_L4_CKSUM_NONE: the L4 checksum is not correct in the packet >> data, but the integrity of the L4 header is verified. >> -> the application can process the packet but must not v

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Olivier MATZ
Hi, On 05/31/2016 12:08 PM, Adrien Mazarguil wrote: > On Tue, May 31, 2016 at 10:43:29AM +0800, Tan, Jianfeng wrote: >> Why not take care of PKT_RX_IP_CKSUM_BAD? Is it too easy for sw to handle? > > I thought PKT_RX_IP_CKSUM_BAD was to be modified in a similar fashion, but > since you raise the i

[dpdk-dev] [PATCH 2/2] qede: return LAN stats to MFW

2016-05-31 Thread Harish Patil
>On Fri, May 06, 2016 at 09:21:31PM -0700, Rasesh Mody wrote: >> From: Harish Patil >> >> Under certain scenarios, MFW periodically polls the driver >> for LAN statistics. This patch implements the osal hook to >> fill in the stats. >> >> Fixes: ffa002d318d36 ("qede: add base driver") >> >What

[dpdk-dev] [REQUEST] New repository request for project SPP

2016-05-31 Thread Ferruh Yigit
On 5/27/2016 2:59 PM, Thomas Monjalon wrote: > 2016-05-26 17:48, Ferruh Yigit: >> SPP: Soft Patch Panel, a new project on top of DPDK library. >> >> >> Code is close to its first release, and we would like to open source the >> project and host it under dpdk.org. >> >> Can you please create a new r

[dpdk-dev] [PATCH v2] mempool: replace c memcpy code semantics with optimized rte_memcpy

2016-05-31 Thread Jerin Jacob
On Mon, May 30, 2016 at 10:45:11AM +0200, Olivier Matz wrote: > Hi Jerin, > > On 05/26/2016 10:07 AM, Jerin Jacob wrote: > > Signed-off-by: Jerin Jacob > > --- > > v1..v2 > > Corrected the the git commit message(s/mbuf/mempool/g) > > --- > > lib/librte_mempool/rte_mempool.h | 5 ++--- > > 1 file

[dpdk-dev] [PATCH] ixgbe: rename ixgbe_rxtx_vec.c to ixgbe_rxtx_vec_sse.c

2016-05-31 Thread Bruce Richardson
On Wed, May 11, 2016 at 09:15:09AM +0530, Jianbo Liu wrote: > To be consistent with the naming for ARM NEON implementation, > ixgbe_rxtx_vec.c is renamed to ixgbe_rxtx_vec_sse.c. > > Signed-off-by: Jianbo Liu > --- Acked-by: Bruce Richardson Applied to dpdk-next-net/rel_16_07 /Bruce

[dpdk-dev] [PATCH v4 6/9] app/pdump: add pdump tool for packet capturing

2016-05-31 Thread Ananyev, Konstantin
> -Original Message- > From: Pattan, Reshma > Sent: Tuesday, May 31, 2016 3:50 PM > To: Ananyev, Konstantin; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v4 6/9] app/pdump: add pdump tool for packet > capturing > > > > > -Original Message- > > From: Ananyev, Konstantin > >

[dpdk-dev] [PATCH 1/5] pci: fix access to PCI config space in bsd

2016-05-31 Thread Bruce Richardson
On Fri, May 06, 2016 at 01:13:15PM +0530, Rahul Lakkireddy wrote: > PCIOCREAD and PCIOCWRITE ioctls to read/write PCI config space fail > with EPERM due to missing write permission. Fix by opening /dev/pci/ > with O_RDWR instead. > > Fixes: 632b2d1deeed ("eal: provide functions to access PCI conf

[dpdk-dev] [PATCH v2 1/2] ethdev: add callback to get register size in bytes

2016-05-31 Thread Zyta Szpak
On 30.05.2016 12:58, Panu Matilainen wrote: > On 05/30/2016 12:39 PM, zr at semihalf.com wrote: >> From: Zyta Szpak >> >> Version 2 of fixing the fixed register width assumption. >> rte_eth_dev_get_reg_length and rte_eth_dev_get_reg callbacks >> do not provide register size to the app in any way

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

2016-05-31 Thread Hunt, David
On 5/31/2016 9:53 AM, Jerin Jacob wrote: > On Mon, May 30, 2016 at 12:27:26PM +0100, Hunt, David wrote: >> New mempool handlers will use rte_mempool_create_empty(), >> rte_mempool_set_handler(), >> then rte_mempool_populate_*(). These three functions are new to this >> release, to no problem > Ha

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Yuanhan Liu
On Mon, May 30, 2016 at 05:26:21PM +0200, Olivier Matz wrote: > Hi, > > I'm planning to add the support for offloads in virtio-net pmd. Good to know, and thanks! > It appears that the current rx flags in mbuf are not sufficient to > describe the state of a packet received from a virtual driver.

[dpdk-dev] [dpdk-users] memory tracker in PMD level

2016-05-31 Thread Wiles, Keith
Resend to the list for others to view. Regards, Keith >Please do not send HTML based text to the list only plain text emails. > >Regards, >Keith > > >From: SAKTHIVEL ANAND S >Date: Tuesday, May 31, 2016 at 10:05 AM >To: Keith Wiles >Subject: Re: [dpdk-users] memory tracker in PMD level > >it

[dpdk-dev] DpdkVhostUser port config and state error in ovs 2.5 release version, Is this bug fixed?

2016-05-31 Thread lifuqiong
Hi, When creating a dpdkvhostuser port in ovs 2.5, when starting vm which connected to this port, using command "ovs-ofctl show br0", it will shows like this: 3(vhost-user-0): addr:00:00:00:00:00:00 config: PORT_DOWN state: LINK_DOWN speed: 0 Mbps now, 0 Mb

[dpdk-dev] [PATCH] vhost: fix segfault on bad descriptor address.

2016-05-31 Thread Rich Lane
On Fri, May 20, 2016 at 5:50 AM, Ilya Maximets wrote: > In current implementation guest application can reinitialize vrings > by executing start after stop. In the same time host application > can still poll virtqueue while device stopped in guest and it will > crash with segmentation fault while

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Stephen Hemminger
On Tue, 31 May 2016 22:58:57 +0200 Olivier MATZ wrote: > Hi Stephen, > > On 05/31/2016 10:28 PM, Stephen Hemminger wrote: > > On Tue, 31 May 2016 21:11:59 +0200 > > Olivier MATZ wrote: > > > >> > >> > >> On 05/31/2016 10:09 AM, Yuanhan Liu wrote: > >>> On Mon, May 30, 2016 at 05:26:21PM +0200,

[dpdk-dev] [PATCH v4 5/9] lib/librte_pdump: add new library for packet capturing support

2016-05-31 Thread Pattan, Reshma
> -Original Message- > From: Ananyev, Konstantin > Sent: Friday, May 27, 2016 2:39 PM > To: Pattan, Reshma ; dev at dpdk.org > Cc: Pattan, Reshma > Subject: RE: [dpdk-dev] [PATCH v4 5/9] lib/librte_pdump: add new library for > packet capturing support > > > +/* get socket path (/var/run

[dpdk-dev] [PATCH v4 5/9] lib/librte_pdump: add new library for packet capturing support

2016-05-31 Thread Pattan, Reshma
> -Original Message- > From: Ananyev, Konstantin > Sent: Friday, May 27, 2016 4:26 PM > To: Pattan, Reshma ; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v4 5/9] lib/librte_pdump: add new library for > packet capturing support > > > > > -Original Message- > > From: Pattan,

[dpdk-dev] [PATCH] vhost: fix segfault on bad descriptor address.

2016-05-31 Thread Tan, Jianfeng
Hi, On 5/30/2016 8:24 PM, Ilya Maximets wrote: > On 30.05.2016 15:00, Tan, Jianfeng wrote: >> Hi, >> >>> -Original Message- >>> From: Ilya Maximets [mailto:i.maximets at samsung.com] >>> Sent: Friday, May 20, 2016 8:50 PM >>> To: dev at dpdk.org; Xie, Huawei; Yuanhan Liu >>> Cc: Dyasly Se

[dpdk-dev] [PATCH v4 6/9] app/pdump: add pdump tool for packet capturing

2016-05-31 Thread Pattan, Reshma
> -Original Message- > From: Ananyev, Konstantin > Sent: Friday, May 27, 2016 4:22 PM > To: Pattan, Reshma ; dev at dpdk.org > Cc: Pattan, Reshma > Subject: RE: [dpdk-dev] [PATCH v4 6/9] app/pdump: add pdump tool for packet > capturing > > > > +static int > > +parse_num_mbufs(const cha

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

2016-05-31 Thread Hunt, David
On 5/31/2016 1:06 PM, Jan Viktorin wrote: > On Tue, 31 May 2016 10:09:42 +0100 > "Hunt, David" wrote: > >> Hi Jan, >> > [...] > +typedef void *(*rte_mempool_alloc_t)(struct rte_mempool *mp); + +/** Free the external pool. */ >>> What is the purpose of this callback? >>> What exact

[dpdk-dev] [PATCH] kni: fix use of undefined comma variable in makefile

2016-05-31 Thread Ferruh Yigit
On 5/30/2016 5:46 PM, Ferruh Yigit wrote: > On 5/30/2016 5:21 PM, Olivier Matz wrote: >> Hi Ferruh, >> >> On 05/30/2016 05:49 PM, Ferruh Yigit wrote: >>> On 5/30/2016 12:56 PM, Olivier Matz wrote: The $(comma) variable is not defined in this Makefile, nor in any included Makefile. Seen wh

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

2016-05-31 Thread Jerin Jacob
On Mon, May 30, 2016 at 12:27:26PM +0100, Hunt, David wrote: > > New mempool handlers will use rte_mempool_create_empty(), > rte_mempool_set_handler(), > then rte_mempool_populate_*(). These three functions are new to this > release, to no problem Having separate APIs for external pool-manager cr

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

2016-05-31 Thread Jan Viktorin
On Tue, 31 May 2016 10:17:41 +0100 "Hunt, David" wrote: > Hi Jan, > > On 5/23/2016 1:45 PM, Jan Viktorin wrote: > > On Thu, 19 May 2016 14:45:00 +0100 > > David Hunt wrote: > > --snip-- > [...] > >> + > > The test becomes quite complex. What about having several smaller > > tests with a

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

2016-05-31 Thread Jan Viktorin
On Tue, 31 May 2016 10:09:42 +0100 "Hunt, David" wrote: > Hi Jan, > [...] > > >> +typedef void *(*rte_mempool_alloc_t)(struct rte_mempool *mp); > >> + > >> +/** Free the external pool. */ > > What is the purpose of this callback? > > What exactly does it allocate? > > Some rte_mempool inter

[dpdk-dev] about memzone name size issue

2016-05-31 Thread Iremonger, Bernard
Hi Huilong, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wiles, Keith > Sent: Tuesday, May 31, 2016 2:18 PM > To: Xu, HuilongX ; dev at dpdk.org > Subject: Re: [dpdk-dev] about memzone name size issue > > >Hi all, > >I find a issue on link_bonding unit te

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Stephen Hemminger
On Tue, 31 May 2016 21:11:59 +0200 Olivier MATZ wrote: > > > On 05/31/2016 10:09 AM, Yuanhan Liu wrote: > > On Mon, May 30, 2016 at 05:26:21PM +0200, Olivier Matz wrote: > >> PKT_RX_L4_CKSUM_NONE: the L4 checksum is not correct in the packet > >> data, but the integrity of the L4 header is ve

[dpdk-dev] about memzone name size issue

2016-05-31 Thread Wiles, Keith
>Hi all, >I find a issue on link_bonding unit test case. > >When I run model6 test case, will generate core dump error. >I debug it, find the error code in function: >rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size, >unsigned cache_size, unsigned private_dat

[dpdk-dev] dpdk pipeline multi app

2016-05-31 Thread Singh, Jasvinder
Hi Ramin, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ramin Najjarbashi > Sent: Tuesday, May 31, 2016 8:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] dpdk pipeline multi app > > hi > how we can arrive to this architecture? > Every client is differen

[dpdk-dev] [PATCH] mbuf: extend rte_mbuf_prefetch_part* to support more prefetching methods

2016-05-31 Thread Stephen Hemminger
On Tue, 31 May 2016 08:36:06 +0530 Jianbo Liu wrote: > Change the inline function to macro with parameters > > Signed-off-by: Jianbo Liu Going from typed (inline) to untyped (macro) is a step backwards in code safety.

[dpdk-dev] [PATCH v3] ip_pipeline: add script file for pipeline to core mappings

2016-05-31 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jasvinder Singh > Sent: Tuesday, May 31, 2016 9:58 AM > To: dev at dpdk.org > Cc: Dumitrescu, Cristian ; Rao, GuruprasadX > > Subject: [dpdk-dev] [PATCH v3] ip_pipeline: add script file for pipeline > to core ma

[dpdk-dev] [PATCH] vhost: fix segfault on bad descriptor address.

2016-05-31 Thread Ilya Maximets
OK. On 30.05.2016 17:25, Yuanhan Liu wrote: > Hi Ilya, > > Generically speaking, this patch looks good to me. But I guess still > need more time to check this issue later; I still failed to reproduce > it on my side after all. So, please allow a late merge. > > Thanks. > > --yliu > > On

[dpdk-dev] [PATCH] vhost: fix segfault on bad descriptor address.

2016-05-31 Thread Ilya Maximets
On 31.05.2016 09:53, Tan, Jianfeng wrote: > Hi, > > > On 5/30/2016 8:24 PM, Ilya Maximets wrote: >> On 30.05.2016 15:00, Tan, Jianfeng wrote: >>> Hi, >>> -Original Message- From: Ilya Maximets [mailto:i.maximets at samsung.com] Sent: Friday, May 20, 2016 8:50 PM To: de

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Adrien Mazarguil
On Tue, May 31, 2016 at 10:43:29AM +0800, Tan, Jianfeng wrote: > Hi Oliver, > > > On 5/30/2016 11:26 PM, Olivier Matz wrote: > >Hi, > > > >I'm planning to add the support for offloads in virtio-net pmd. > >It appears that the current rx flags in mbuf are not sufficient to > >describe the state of

[dpdk-dev] Rx_missed_errors drops with larger packet size

2016-05-31 Thread SwamZ
Hi Alex et al., I am seeing another case of rx_missed_error. In this case, rx_missed_errors are seen only when I send multiple flows. Rx_missed_errors are NOT seen if I send single flow. Following are the test details: Packet type: Unicast/Mulitcast Packet size : 512Bytes Number of flows: 1000 R

[dpdk-dev] dpdk pipeline multi app

2016-05-31 Thread Ramin Najjarbashi
hi how we can arrive to this architecture? Every client is different like IPS, Firewall, DPI and else. http://stackoverflow.com/questions/37539194/dpdk-pipeline-multi-app

[dpdk-dev] [PATCH] crypto: fix control issues in aesni pmd

2016-05-31 Thread De Lara Guarch, Pablo
Hi Deepak, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Deepak Kumar Jain > Sent: Monday, May 23, 2016 4:47 PM > To: Doherty, Declan > Cc: Jain, Deepak K; dev at dpdk.org > Subject: [dpdk-dev] [PATCH] crypto: fix control issues in aesni pmd > Since this

[dpdk-dev] [PATCH] qat: change optimization flag for Intel QuickAssist Technology

2016-05-31 Thread De Lara Guarch, Pablo
Hi Deepak/Arek, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jain, Deepak K > Sent: Friday, May 13, 2016 9:25 AM > To: Thomas Monjalon; Kusztal, ArkadiuszX > Cc: dev at dpdk.org; Trahe, Fiona; Griffin, John > Subject: Re: [dpdk-dev] [PATCH] qat: change opt

[dpdk-dev] about rx checksum flags

2016-05-31 Thread Tan, Jianfeng
Hi Oliver, On 5/30/2016 11:26 PM, Olivier Matz wrote: > Hi, > > I'm planning to add the support for offloads in virtio-net pmd. > It appears that the current rx flags in mbuf are not sufficient to > describe the state of a packet received from a virtual driver. > I think we need a way to say "the

[dpdk-dev] [PATCH v1] change log level for check when add port in blacklist

2016-05-31 Thread xu,huilong
maybe we should change log level, when add port in blacklist,for check it easy. and it not influence performance and function Signed-off-by: xu,huilong --- lib/librte_eal/common/eal_common_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_

[dpdk-dev] [PATCH] app/testpmd: log mbuf pool creation

2016-05-31 Thread Thomas Monjalon
2016-05-31 09:39, Olivier MATZ: > Hi Thomas, > > On 05/30/2016 09:44 PM, Thomas Monjalon wrote: > > 2016-05-30 14:04, Olivier Matz: > >> Enhance the logs related to mbuf pool creation. Display an info level > >> log when creating the mbuf, and display the error as a string on failure. > >> > >> Af

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

2016-05-31 Thread Hunt, David
On 5/23/2016 1:40 PM, Jan Viktorin wrote: > On Thu, 19 May 2016 14:45:01 +0100 > David Hunt wrote: --snip-- >> +mp = rte_mempool_create_empty(name, n, elt_size, cache_size, >> + sizeof(struct rte_pktmbuf_pool_private), socket_id, 0); >> +if (mp == NULL) >> +retu

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

2016-05-31 Thread Hunt, David
Hi Jan, On 5/23/2016 1:45 PM, Jan Viktorin wrote: > On Thu, 19 May 2016 14:45:00 +0100 > David Hunt wrote: --snip-- >> + * Loop though all the element pointers and allocate a chunk of memory, then > s/though/through/ Fixed. >> +static struct rte_mempool_handler mempool_handler_custom = { >> +

[dpdk-dev] [PATCH 5/5] examples/l2fwd-crypto: enable AES counter mode cipher algorithm

2016-05-31 Thread Fan Zhang
This patch enables AES counter mode algorithm support to l2fwd-crypto sample application. Signed-off-by: Fan Zhang --- examples/l2fwd-crypto/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index d18c813..66fc874 100644 --- a/

[dpdk-dev] [PATCH 4/5] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-05-31 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff --git

[dpdk-dev] [PATCH 3/5] app/test: utilize new unified crypto AES test function

2016-05-31 Thread Fan Zhang
This patch replaces the AES test code with new unified crypto AES test function. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes_ctr_test_vectors.h | 257 2 files changed, 122 insertions(+), 1748 delet

[dpdk-dev] [PATCH 2/5] app/test: add unified crypto aes test

2016-05-31 Thread Fan Zhang
This patch adds a new crypto AES unified test function. Signed-off-by: Fan Zhang --- app/test/Makefile | 1 + app/test/test_cryptodev_aes.c | 662 ++ app/test/test_cryptodev_aes.h | 6 + 3 files changed, 669 insertions(+) create mode 10075

[dpdk-dev] [PATCH 1/5] app/test: categorize crypto AES test vectors into new file

2016-05-31 Thread Fan Zhang
This patch accumulates crypto AES test vectors into a new header file. Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.h | 822 ++ 1 file changed, 822 insertions(+) create mode 100755 app/test/test_cryptodev_aes.h diff --git a/app/test/test_cryp

[dpdk-dev] [PATCH 0/5] app/test: rework crypto AES unit test

2016-05-31 Thread Fan Zhang
This patchset reworks the crypto AES unit test by introducing a new unified test function. This patchset depends on the following patches: "qat: add AES counter mode capability" (http://dpdk.org/dev/patchwork/patch/12464/) "app/test: add test cases for AES CTR" (http://dpdk.org/dev/patchwork/patc

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

2016-05-31 Thread Hunt, David
Hi Jan, On 5/23/2016 1:35 PM, Jan Viktorin wrote: >> Until now, the objects stored in mempool mempool were internally stored a > s/mempool mempool/mempool/ > > stored _in_ a ring? Fixed. > > @@ -161,7 +161,6 @@ per_lcore_mempool_test(__attribute__((unused)) void *arg) >

[dpdk-dev] [PATCH v3] ip_pipeline: add script file for pipeline to core mappings

2016-05-31 Thread Jasvinder Singh
From: Guruprasad Mukundarao This script parses the application configuration file and detects all the pipelines specified therein, and then, it generates all the possible mappings of those pipelines on the specified CPU core-list. As a result, each of the possible pipeline-to-core mappings is sa

[dpdk-dev] [PATCHv6 7/7] doc: Add prog_guide section documenting pmdinfo script

2016-05-31 Thread Neil Horman
Information on pmdinfogen may be useful to 3rd party driver developers. Include documentation on what it does Signed-off-by: Neil Horman CC: Bruce Richardson CC: Thomas Monjalon CC: Stephen Hemminger CC: Panu Matilainen --- doc/guides/prog_guide/dev_kit_build_system.rst | 43 +++

[dpdk-dev] [PATCHv6 6/7] remove rte.hostapp.mk

2016-05-31 Thread Neil Horman
During the review of this patchset it was discovered that rte.hostapp.mk was going unused. All its users had been previously removed, and so this file too can go. It and rte.buildtools.mk are effectively duplicates, but given that pmdinfogen is a tool used to create the dpdk build, I think the na

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

2016-05-31 Thread Neil Horman
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, in the case of dynamically linked applications, pmdinf

[dpdk-dev] [PATCHv6 4/7] Makefile: Do post processing on objects that register a driver

2016-05-31 Thread Neil Horman
Modify the compilation makefile to identify C files that export PMD information, and use that to trigger execution of the pmdinfo binary. If the execution of pmdinfo is successful, compile the output C file to an object, and use the linker to do relocatable linking on the resultant object file int

[dpdk-dev] [PATCHv6 3/7] eal: Add an export symbol to expose the autoload path to external tools

2016-05-31 Thread Neil Horman
Export a symbol containing the string: DPDK_PLUGIN_PATH="$(CONFIG_RTE_EAL_PMD_PATH)" Where the latter half of the string is set at build time to a location from which autoloaded DSO's will be found. This string is used by pmdinfo in 'plugin' mode, whereby a user can specify a dpdk installation di

[dpdk-dev] [PATCHv6 2/7] drivers: Update driver registration macro usage

2016-05-31 Thread Neil Horman
Modify the PMD_REGISTER_DRIVER macro, adding a name argument to it. The addition of a name argument creates a token that can be used for subsequent macros in the creation of unique symbol names to export additional bits of information for use by the pmdinfogen tool. For example: PMD_REGISTER_DRI

[dpdk-dev] [PATCHv6 1/7] pmdinfogen: Add buildtools and pmdinfogen utility

2016-05-31 Thread Neil Horman
pmdinfogen is a tool used to parse object files and build json strings for use in later determining hardware support in a dso or application binary. pmdinfo looks for the non-exported symbol names this_pmd_name and this_pmd_tbl (where n is a integer counter). It records the name of each of these

[dpdk-dev] [PATCHv6 0/7] Implement pmd hardware support exports

2016-05-31 Thread Neil Horman
Hey all- So heres attempt number 2 at a method for exporting PMD hardware support information. As we discussed previously, the consensus seems to be that pmd information should be: 1) Able to be interrogated on any ELF binary (application binary or individual DSO) 2) Equally functional on

[dpdk-dev] [PATCH v2 02/20] thunderx/nicvf: add pmd skeleton

2016-05-31 Thread Stephen Hemminger
On Sun, 29 May 2016 22:16:46 +0530 Jerin Jacob wrote: > + > +static struct itimerspec alarm_time = { > + .it_interval = { > + .tv_sec = 0, > + .tv_nsec = NICVF_INTR_POLL_INTERVAL_MS * 100, > + }, > + .it_value = { > + .tv_sec = 0, > +

[dpdk-dev] [PATCH] app/testpmd: log mbuf pool creation

2016-05-31 Thread Olivier MATZ
Hi Thomas, On 05/30/2016 09:44 PM, Thomas Monjalon wrote: > 2016-05-30 14:04, Olivier Matz: >> Enhance the logs related to mbuf pool creation. Display an info level >> log when creating the mbuf, and display the error as a string on failure. >> >> After the patch, we have: >> >> [...] >> EAL:

[dpdk-dev] about memzone name size issue

2016-05-31 Thread Xu, HuilongX
Hi all, I find a issue on link_bonding unit test case. When I run model6 test case, will generate core dump error. I debug it, find the error code in function: rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size, unsigned cache_size, unsigned private_data_size,

[dpdk-dev] [PATCH 1/2] ixgbe: VF supports mailbox interruption for PF link up/down

2016-05-31 Thread Lu, Wenzhuo
Hi Jingjing, Thanks for the comments. Please see inline. > -Original Message- > From: Wu, Jingjing > Sent: Friday, May 27, 2016 4:31 PM > To: Lu, Wenzhuo; dev at dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH 1/2] ixgbe: VF supports mailbox interruption > for > PF link up/do

[dpdk-dev] [PATCH] mbuf: extend rte_mbuf_prefetch_part* to support more prefetching methods

2016-05-31 Thread Jianbo Liu
Change the inline function to macro with parameters Signed-off-by: Jianbo Liu --- drivers/net/fm10k/fm10k_rxtx_vec.c | 8 drivers/net/i40e/i40e_rxtx_vec.c| 8 drivers/net/ixgbe/ixgbe_rxtx_vec.c | 8 drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c | 12

[dpdk-dev] [PATCH v5] eal: fix allocating all free hugepages

2016-05-31 Thread Jianfeng Tan
EAL memory init allocates all free hugepages of the whole system, which seen from sysfs, even when applications do not ask so many. When there is a limitation on how many hugepages an application can use (such as cgroup.hugetlb), or hugetlbfs is specified with an option of size (exceeding the quota

[dpdk-dev] [PATCH v8 0/3] i40e: Add floating VEB support for i40e

2016-05-31 Thread Wu, Jingjing
> -Original Message- > From: Tao, Zhe > Sent: Wednesday, May 25, 2016 1:28 AM > To: dev at dpdk.org > Cc: Tao, Zhe ; Wu, Jingjing > Subject: [PATCH v8 0/3] i40e: Add floating VEB support for i40e > > This patch-set add the support for floating VEB in i40e. > All the VFs VSIs can decide