Re: [dpdk-dev] [PATCH 22/38] net/dpaa: add NXP DPAA PMD driver skeleton

2017-07-01 Thread Shreyansh Jain
On Thursday 29 June 2017 07:59 PM, Shreyansh Jain wrote: > Hello Ferruh, > [...] > >> >>> + >>> +if (rte_eal_process_type() == RTE_PROC_PRIMARY) >>> +rte_free(eth_dev->data->dev_private); >>> + >> >> no pmd uninit() ? Just to clarify, were you asking about uninit of the driver? Ther

Re: [dpdk-dev] [PATCH] eal: add Bus log type

2017-07-01 Thread Shreyansh Jain
On Tuesday 20 June 2017 02:24 AM, Thomas Monjalon wrote: > 19/06/2017 13:03, Shreyansh Jain: >>> --- a/lib/librte_eal/common/include/rte_log.h >>> +++ b/lib/librte_eal/common/include/rte_log.h >>> @@ -87,6 +87,7 @@ extern struct rte_logs rte_logs; >>> #define RTE_LOGTYPE_CRYPTODEV 17 /**< Log rel

Re: [dpdk-dev] [PATCH] net/mlx: update C compliance standard

2017-07-01 Thread Yongseok Koh
> On Jul 1, 2017, at 8:58 AM, Ferruh Yigit wrote: > > On 6/30/2017 7:25 PM, Yongseok Koh wrote: >> >>> On Jun 30, 2017, at 11:14 AM, Yongseok Koh wrote: >>> >>> On Jun 30, 2017, at 10:47 AM, Ferruh Yigit wrote: On 6/30/2017 6:19 PM, Adrien Mazarguil wrote: > This commit

Re: [dpdk-dev] [PATCH] vhost: fix MTU device feature check

2017-07-01 Thread Yuanhan Liu
On Thu, Jun 29, 2017 at 08:01:45AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > > Sent: Thursday, June 29, 2017 3:58 PM > > To: dev@dpdk.org; y...@fridaylinux.org > > Cc: i.dyu...@samsung.com; Tan, Jianfeng; sta...@

Re: [dpdk-dev] [PATCH] vhost: fix checking of device features

2017-07-01 Thread Yuanhan Liu
On Wed, Jun 28, 2017 at 03:40:31PM +0300, Ivan Dyukov wrote: > To compare enabled features in current device we must use bit > mask instead of bit position. > > CC: sta...@dpdk.org > Fixes: c843af3aa13e ("vhost: access header only") > > Signed-off-by: Ivan Dyukov Applied to dpdk-next-virtio. T

Re: [dpdk-dev] [PATCH v2] doc: update virtio vring size and virtio_header size

2017-07-01 Thread Yuanhan Liu
On Fri, Jun 30, 2017 at 02:43:47PM +, Mcnamara, John wrote: > > > > -Original Message- > > From: Yang, Zhiyong > > Sent: Thursday, May 11, 2017 3:17 AM > > To: dev@dpdk.org > > Cc: Mcnamara, John ; yuanhan@linux.intel.com; > > maxime.coque...@redhat.com; Yang, Zhiyong > > Subject

Re: [dpdk-dev] [PATCH 1/2] vhost: fix TCP csum not set

2017-07-01 Thread Yuanhan Liu
On Wed, Jun 07, 2017 at 09:25:38PM +0200, Maxime Coquelin wrote: > > > On 06/07/2017 08:41 AM, Jianfeng Tan wrote: > >As PKT_TX_TCP_SEG flag in mbuf->ol_flags implies PKT_TX_TCP_CKSUM, > >applications, e.g., testpmd, don't set PKT_TX_TCP_CKSUM when TSO > >is set. > > > >This leads to that packets

Re: [dpdk-dev] [PATCH] vhost: clean up per-socket mutex

2017-07-01 Thread Yuanhan Liu
On Wed, Jun 14, 2017 at 10:19:53AM +0200, Jens Freimann wrote: > On Mon, Jun 12, 2017 at 02:29:04PM -0700, Daniel Verkamp wrote: > > vsocket->conn_mutex was allocated with pthread_mutex_init() but never > > freed with pthread_mutex_destroy(). This is a potential memory leak, > > depending on how p

Re: [dpdk-dev] [PATCH 8/9] net/qede: use newer packet mbuf allocate API

2017-07-01 Thread Mody, Rasesh
Hi Ferruh, > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Thursday, June 29, 2017 5:55 AM > > On 6/29/2017 10:51 AM, Rasesh Mody wrote: > > Use rte_pktmbuf_alloc() API instead of rte_mbuf_raw_alloc(). > > > > Signed-off-by: Rasesh Mody > > --- > > drivers/net/qede/qede_rxtx.c |

[dpdk-dev] [PATCH v2 8/8] net/qede: update PMD version to 2.5.1.1

2017-07-01 Thread Rasesh Mody
Update the PMD version and add 32bit support in documentation. Signed-off-by: Rasesh Mody --- doc/guides/nics/features/qede.ini |1 + drivers/net/qede/qede_ethdev.h|2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/features/qede.ini b/doc/guides/nic

[dpdk-dev] [PATCH v2 6/8] net/qede: set mdump flag

2017-07-01 Thread Rasesh Mody
Set allow management FW dump flag during HW prepare. Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore.h |2 +- drivers/net/qede/base/ecore_dev.c |1 + drivers/net/qede/base/ecore_dev_api.h |3 +++ drivers/net/qede/base/ecore_mcp.c |3 +-- drivers/net/qed

[dpdk-dev] [PATCH v2 5/8] net/qede: change debug verbosity of PMD messages

2017-07-01 Thread Rasesh Mody
Convert DP_NOTICE() to DP_ERR() as appropriate in PMD files. Change DP_NOTICE() macro to make use of boolean flag to log it as error message or informational message. Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_ethdev.c | 20 +--- drivers/net/qede/qede_logs.h | 23

[dpdk-dev] [PATCH v2 7/8] net/qede: add missing check for VNI

2017-07-01 Thread Rasesh Mody
Add missing check for VNI field while adding unicast filter. Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_ethdev.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index ad264ba..a0616a4 100644 --- a/drivers/net/qede/q

[dpdk-dev] [PATCH v2 3/8] net/qede: limit ring size to 32k

2017-07-01 Thread Rasesh Mody
From: Harish Patil Since nb_max is a u16 it can store value upto 65535 only (not 64K), but this value is not a power-of-2. So limit the ring sizes to 32K. Signed-off-by: Harish Patil --- drivers/net/qede/qede_ethdev.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[dpdk-dev] [PATCH v2 2/8] net/qede: add notifying HW errors

2017-07-01 Thread Rasesh Mody
From: Harish Patil Log HW errmsg on the stdout and do minimal handling to prevent HW attentions from being reasserted. Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.c | 32 drivers/net/qede/base/bcm_osal.h |6

[dpdk-dev] [PATCH v2 4/8] net/qede: comments traces and format changes

2017-07-01 Thread Rasesh Mody
Changes include - comment modifications - adds tracing during initialization - adds/removes new lines Signed-off-by: Rasesh Mody --- drivers/net/qede/base/bcm_osal.c | 14 -- drivers/net/qede/qede_ethdev.c | 11 +++ drivers/net/qede/qede_rxtx.c |6 +++--- 3 f

[dpdk-dev] [PATCH v2 0/8] net/qede: update PMD to 2.5.1.1

2017-07-01 Thread Rasesh Mody
Hi Ferruh, This patch set contains minor enhancements and bug fixes for QEDE PMD. It updates the driver version to 2.5.1.1. The patch set is tested against dpdk-next-net. Please apply to 17.08 tree. v1..v2 address all review comments Thanks! Rasesh Harish Patil (3): net/qede: fix DMA memory

[dpdk-dev] [PATCH v2 1/8] net/qede: fix DMA memory leak

2017-07-01 Thread Rasesh Mody
From: Harish Patil Implement the macro OSAL_DMA_FREE_COHERENT to release DMA memories. Track all DMA memory allocations using an array of memzone pointers and use that to free memory resoureces along with other resource deallocation. With this change there is no need to alter the base code to add

Re: [dpdk-dev] [PATCH] net/mlx: update C compliance standard

2017-07-01 Thread Ferruh Yigit
On 6/30/2017 7:25 PM, Yongseok Koh wrote: > > Hi, > > > > Thanks, > Yongseok > >> On Jun 30, 2017, at 11:14 AM, Yongseok Koh wrote: >> >> >>> On Jun 30, 2017, at 10:47 AM, Ferruh Yigit wrote: >>> >>> On 6/30/2017 6:19 PM, Adrien Mazarguil wrote: This commit addresses a compilation issue

Re: [dpdk-dev] [PATCH] doc: fix a typo in sample apps guide.

2017-07-01 Thread Thomas Monjalon
> > This patch fixes a trivial typo in the sample apps guide. > > commit 35b09d76f89e ("doc: use corelist instead of coremask") replaced the > > usage of coremask (-c) with corelist (-l). > > As a result of this patch, we have > > ./build/ipv4_multicast -l 0-3 -n 3 -- -p 0x3 -q 1 in the sample app

Re: [dpdk-dev] [PATCH] ethdev: fix a typo in rth_ethdev.h.

2017-07-01 Thread Thomas Monjalon
30/06/2017 14:51, Van Haaren, Harry: > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Rami Rosen > > > > This patch fixes a trivial typo in rte_ethdev.h; it should be > > "RX multicast OFF" and not "RX multicast OF". > > > > Signed-off-by: Rami Rosen > > Acked-by: Harry van Haaren Appli

Re: [dpdk-dev] [PATCH v3] ethdev: modify callback process API

2017-07-01 Thread Thomas Monjalon
15/06/2017 14:29, Bernard Iremonger: > From: "Bernard.Iremonger" > > Change the rte_eth_dev_callback_process function to return int, > and add a void *ret_param parameter. Adding this explanation: The new parameter is used by ixgbe and i40e instead of abusing the user data of the

[dpdk-dev] [RFC] Add GSO Support in DPDK

2017-07-01 Thread Jiayu Hu
Generic segmentation offload (GSO) is a SW technique to segment large packets into small ones. The packet types are various (e.g. TCP, UDP). Like TSO, GSO gains performance by reducing per-packet overhead for applications. Therefore, we propose to support GSO in DPDK. DPDK GSO is designed as an ap

Re: [dpdk-dev] [PATCH] common: introduce an integer log2 function

2017-07-01 Thread Thomas Monjalon
Alejandro, Are you OK to replace log2 by rte_log2_u32? I'm waiting your ack to apply this patch. 06/04/2017 16:23, Olivier MATZ: > I forgot to CC Alejandro for nfp. [...] > > drivers/net/nfp/nfp_net.c | 6 ++ > > lib/librte_eal/common/include/rte_common.h | 17

Re: [dpdk-dev] [PATCH] eal: use get_mempolicy(2) to find numa socket on Linux

2017-07-01 Thread Thomas Monjalon
21/06/2017 17:49, Sergio Gonzalez Monroy: > I think following the discussion of libnuma dependency in another thread > [1], you would need to implement a similar approach and keep the old > method while providing this alternative if libnuma is present. Considering that libnuma becomes mandatory

Re: [dpdk-dev] [PATCH] eal: fix secondary process segfault on multipe virtio devices

2017-07-01 Thread Thomas Monjalon
02/06/2017 18:20, Jianfeng Tan: > Suppose we have 2 virtio devices for a VM, with only the first one, > virtio0, binding to igb_uio. Start a primary DPDK process, driving > only virtio0. Then start a secondary DPDK process, it encounters > segfault at eth_virtio_dev_init() because hw is NULL, when

Re: [dpdk-dev] [PATCH 5/5] event/octeontx: add enqueue fwd op variant

2017-07-01 Thread Jerin Jacob
-Original Message- > Date: Fri, 30 Jun 2017 02:20:34 + > From: "Eads, Gage" > To: Jerin Jacob , "dev@dpdk.org" > > CC: "Richardson, Bruce" , "Van Haaren, Harry" > , "hemant.agra...@nxp.com" > , "nipun.gu...@nxp.com" , > "Vangati, Narender" , "Rao, Nikhil" > > Subject: RE: [dpdk-

Re: [dpdk-dev] [PATCH 00/21 v5] next-eventdev: NXP DPAA2 eventdev PMD

2017-07-01 Thread Jerin Jacob
-Original Message- > Date: Fri, 30 Jun 2017 14:24:14 +0530 > From: Nipun Gupta > To: dev@dpdk.org > CC: hemant.agra...@nxp.com, jerin.ja...@caviumnetworks.com, > harry.van.haa...@intel.com, bruce.richard...@intel.com, > gage.e...@intel.com, shreyansh.j...@nxp.com, Nipun Gupta > > Subje

Re: [dpdk-dev] [PATCH 21/21 v5] doc: add NXP DPAA2 EVENTDEV details

2017-07-01 Thread Jerin Jacob
-Original Message- > Date: Fri, 30 Jun 2017 12:13:15 + > From: "Mcnamara, John" > To: Nipun Gupta , "dev@dpdk.org" > CC: "hemant.agra...@nxp.com" , > "jerin.ja...@caviumnetworks.com" , "Van > Haaren, Harry" , "Richardson, Bruce" > , "Eads, Gage" , > "shreyansh.j...@nxp.com" > Sub

Re: [dpdk-dev] [PATCH v2] ring: use aligned memzone allocation

2017-07-01 Thread Thomas Monjalon
01/07/2017 13:14, Thomas Monjalon: > 30/06/2017 13:36, Olivier Matz: > > On Fri, 2 Jun 2017 13:12:13 -0700, Daniel Verkamp > > wrote: > > > rte_memzone_reserve() provides cache line alignment, but > > > struct rte_ring may require more than cache line alignment: on x86-64, > > > it needs 128-byt

Re: [dpdk-dev] [PATCH v2] ring: use aligned memzone allocation

2017-07-01 Thread Thomas Monjalon
30/06/2017 13:36, Olivier Matz: > On Fri, 2 Jun 2017 13:12:13 -0700, Daniel Verkamp > wrote: > > rte_memzone_reserve() provides cache line alignment, but > > struct rte_ring may require more than cache line alignment: on x86-64, > > it needs 128-byte alignment due to PROD_ALIGN and CONS_ALIGN, w

[dpdk-dev] [PATCH v10 3/3] app/testpmd: enable TCP/IPv4 GRO

2017-07-01 Thread Jiayu Hu
This patch enables TCP/IPv4 GRO library in csum forwarding engine. By default, GRO is turned off. Users can use command "gro (on|off) (port_id)" to enable or disable GRO for a given port. If a port is enabled GRO, all TCP/IPv4 packets received from the port are performed GRO. Besides, users can set

[dpdk-dev] [PATCH v10 2/3] lib/gro: add TCP/IPv4 GRO support

2017-07-01 Thread Jiayu Hu
In this patch, we introduce five APIs to support TCP/IPv4 GRO. - gro_tcp4_tbl_create: create a TCP/IPv4 reassembly table, which is used to merge packets. - gro_tcp4_tbl_destroy: free memory space of a TCP/IPv4 reassembly table. - gro_tcp4_tbl_timeout_flush: flush timeout packets from a TCP/IPv4

[dpdk-dev] [PATCH v10 1/3] lib: add Generic Receive Offload API framework

2017-07-01 Thread Jiayu Hu
Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by reassembling small packets into large ones. This patchset is to support GRO in DPDK. To support GRO, this patch implements a GRO API framework. To enable m

[dpdk-dev] [PATCH v10 0/3] Support TCP/IPv4 GRO in DPDK

2017-07-01 Thread Jiayu Hu
Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by reassembling small packets into large ones. Therefore, we propose to support GRO in DPDK. To enable more flexibility to applications, DPDK GRO is implement

Re: [dpdk-dev] [PATCH v11 0/2] Balanced allocation of hugepages

2017-07-01 Thread Thomas Monjalon
30/06/2017 18:12, Thomas Monjalon: > Version 11: > * Fixed test-build.sh for missing libnuma dependency > > Version 10: > * Fixed typo in DPAA2 config. > > Version 9: > * Removed DPDK_DEP_NUMA from test-build.sh . Not needed > anymore. > * Fixed out of bo

Re: [dpdk-dev] [PATCH v2] kni: add new mbuf in alloc_q only based on its empty slots

2017-07-01 Thread Thomas Monjalon
07/06/2017 19:20, Ferruh Yigit: > On 5/11/2017 12:51 PM, Gowrishankar wrote: > > From: Gowrishankar Muthukrishnan > > > > In kni_allocate_mbufs(), we attempt to add max_burst (32) count of mbuf > > always into alloc_q, which is excessively leading too many rte_pktmbuf_ > > free() when alloc_q is

Re: [dpdk-dev] [PATCH] mbuf: fix debug checks for headroom and tailroom

2017-07-01 Thread Thomas Monjalon
30/06/2017 16:27, Olivier Matz: > On Wed, 28 Jun 2017 15:25:12 +0300, Vasily Philipov > wrote: > > rte_pktmbuf_headroom() and rte_pktmbuf_tailroom() should be usable > > with any segment, not only with headered ones, so is_header should be 0 > > when we call for sanity check inside them. > > > >

Re: [dpdk-dev] [PATCH v2] mbuf: reduce pktmbuf init cycles

2017-07-01 Thread Thomas Monjalon
30/06/2017 14:27, Olivier Matz: > On Tue, 27 Jun 2017 17:27:51 +0530, Jerin Jacob > wrote: > > There is no need for initializing the complete > > packet buffer with zero as the packet data area will be > > overwritten by the NIC Rx HW anyway. > > > > The testpmd configures the packet mempool > >