[dpdk-dev] [PATCH v8 02/21] kvargs: build before EAL

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/Makefile | 3 +-- lib/librte_kvargs/Makefile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index d82462ba2..e8e903c8f 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -4,6 +4,7 @@ include $(RTE_

[dpdk-dev] [PATCH v8 03/21] kvargs: introduce a more flexible parsing function

2018-06-26 Thread Gaetan Rivet
This function permits defining additional terminating characters, ending the parsing to arbitrary delimiters. Signed-off-by: Gaetan Rivet --- lib/Makefile | 1 + lib/librte_kvargs/rte_kvargs.c | 25 + lib/librte_kvargs/rte_kvargs.h

[dpdk-dev] [PATCH v8 04/21] eal: introduce dtor macros

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_common.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 434adfd45..0dd832728 100644 --- a/lib/librte_eal/c

[dpdk-dev] [PATCH v8 05/21] eal: introduce device class abstraction

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/eal_common_class.c | 62 +++ lib/librte_eal/common/include/rte_class.h | 121 + lib/librte_eal

[dpdk-dev] [PATCH v8 07/21] devargs: add function to parse device layers

2018-06-26 Thread Gaetan Rivet
This function is private to the EAL. It is used to parse each layers in a device description string, and store the result in an rte_devargs structure. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_devargs.c | 144 lib/librte_eal/common/eal_private

[dpdk-dev] [PATCH v8 08/21] eal/dev: add device iterator interface

2018-06-26 Thread Gaetan Rivet
A device iterator allows iterating over a set of devices. This set is defined by the two descriptions offered, * rte_bus * rte_class Only one description can be provided, or both. It is not allowed to provide no description at all. Each layer of abstraction then performs a filter based on th

[dpdk-dev] [PATCH v8 06/21] eal/class: register destructor

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_class.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/librte_eal/common/include/rte_class.h b/lib/librte_eal/common/include/rte_class.h index b5e550a34..e8176f5e1 100644 --- a/lib/librte_eal/common/include/rte_class

[dpdk-dev] [PATCH v8 09/21] eal/class: add device iteration

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_class.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/include/rte_class.h b/lib/librte_eal/common/include/rte_class.h index e8176f5e1..9d5b06807 100644 --- a/lib/librte_eal/common/include/rte_class.h ++

[dpdk-dev] [PATCH v8 11/21] eal/dev: implement device iteration initialization

2018-06-26 Thread Gaetan Rivet
Parse a device description. Split this description in their relevant part for each layers. No dynamic allocation is performed. Signed-off-by: Gaetan Rivet --- lib/Makefile| 1 + lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/common/eal_common_dev.c |

[dpdk-dev] [PATCH v8 10/21] eal/bus: add device iteration

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_bus.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h index eb9eded4e..747baf140 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/

[dpdk-dev] [PATCH v8 12/21] eal/dev: implement device iteration

2018-06-26 Thread Gaetan Rivet
Use the iteration hooks in the abstraction layers to perform the requested filtering on the internal device lists. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_dev.c | 168 lib/librte_eal/common/include/rte_dev.h | 26 + lib/librte_eal/r

[dpdk-dev] [PATCH v8 14/21] bus/pci: implement device iteration and comparison

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/bus/pci/Makefile | 3 ++- drivers/bus/pci/pci_common.c | 3 +-- drivers/bus/pci/pci_params.c | 53 drivers/bus/pci/private.h| 25 + 4 files changed, 81 insertions(+), 3 deletions(-)

[dpdk-dev] [PATCH v8 13/21] kvargs: add generic string matching callback

2018-06-26 Thread Gaetan Rivet
This function can be used as a callback to rte_kvargs_process. This should reduce code duplication. Signed-off-by: Gaetan Rivet --- lib/librte_kvargs/rte_kvargs.c | 10 ++ lib/librte_kvargs/rte_kvargs.h | 28 lib/librte_kvargs/rte_kvargs_

[dpdk-dev] [PATCH v8 15/21] bus/pci: add device matching field id

2018-06-26 Thread Gaetan Rivet
The PCI bus can now parse a matching field "id" as follows: "bus=pci,id=:00:00.0" or "bus=pci,id=00:00.0" Signed-off-by: Gaetan Rivet --- drivers/bus/pci/pci_params.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/driver

[dpdk-dev] [PATCH v8 16/21] bus/vdev: implement device iteration

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/bus/vdev/Makefile | 3 ++- drivers/bus/vdev/vdev.c | 10 drivers/bus/vdev/vdev_params.c | 51 + drivers/bus/vdev/vdev_private.h | 26 + 4 files changed, 85 insertions(+), 5

[dpdk-dev] [PATCH v8 17/21] bus/vdev: add device matching field driver

2018-06-26 Thread Gaetan Rivet
The vdev bus parses a field "driver", matching a vdev driver name with one passed as follows: "bus=vdev,driver=" Signed-off-by: Gaetan Rivet --- drivers/bus/vdev/vdev_params.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/bus/vdev/vdev_param

[dpdk-dev] [PATCH v8 19/21] ethdev: register ether layer as a class

2018-06-26 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/librte_ethdev/Makefile| 3 +- lib/librte_ethdev/rte_class_eth.c | 79 +++ 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 lib/librte_ethdev/rte_class_eth.c diff --git a/lib/librte_ethdev/Makefil

[dpdk-dev] [PATCH v8 20/21] ethdev: add device matching field name

2018-06-26 Thread Gaetan Rivet
The eth device class can now parse a field name, matching the eth_dev name with one passed as "class=eth,name=xx" Signed-off-by: Gaetan Rivet --- lib/librte_ethdev/rte_class_eth.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_ethdev/rte_class_eth.c b/lib/librte_e

[dpdk-dev] [PATCH v8 21/21] app/testpmd: add show device command

2018-06-26 Thread Gaetan Rivet
A new interactive command is offered: show device This commands lists all rte_device element matching the device description. e.g.: show device bus=pci show device bus=vdev show device bus=vdev/class=eth show device bus=vdev,driver=net_ring/class=eth show device bus=vdev/class

[dpdk-dev] [PATCH v8 18/21] ethdev: add private generic device iterator

2018-06-26 Thread Gaetan Rivet
This iterator can be customized with a comparison function that will trigger a stopping condition. It can be leveraged to write several different iterators that have similar but non-identical purposes. It is private to librte_ethdev. Signed-off-by: Gaetan Rivet --- lib/librte_ethdev/Makefile

Re: [dpdk-dev] [PATCH V3 4/4] app/testpmd: show example to handle hot unplug

2018-06-26 Thread Matan Azrad
Hi Jeff Continue session from last version + more comments\question. From: Jeff Guo > Sent: Tuesday, June 26, 2018 6:36 PM > To: step...@networkplumber.org; bruce.richard...@intel.com; > ferruh.yi...@intel.com; konstantin.anan...@intel.com; > gaetan.ri...@6wind.com; jingjing...@intel.com; Thomas

Re: [dpdk-dev] [PATCH] net/thunderx: fix build with gcc optimization on

2018-06-26 Thread Ferruh Yigit
On 6/24/2018 1:17 PM, Jerin Jacob wrote: > -Original Message- >> Date: Thu, 21 Jun 2018 19:14:50 +0100 >> From: Ferruh Yigit >> To: Jerin Jacob , Maciej Czekaj >> >> CC: dev@dpdk.org, Ferruh Yigit , sta...@dpdk.org >> Subject: [PATCH] net/thunderx: fix build with gcc optimization on >> X

[dpdk-dev] [PATCH 1/6] eal: add internal dma mask

2018-06-26 Thread Alejandro Lucero
Devices can have addressing limitations and an internal dma mask will track the more restrictive dma mask set by a device. Signed-off-by: Alejandro Lucero --- lib/librte_eal/common/eal_common_options.c | 1 + lib/librte_eal/common/eal_internal_cfg.h | 1 + 2 files changed, 2 insertions(+) dif

[dpdk-dev] [PATCH 3/6] eal: check hugepages within dma mask range

2018-06-26 Thread Alejandro Lucero
Hugepages get an iova address which could be out of range for devices with addressing limitations. This patch checks hugepages are withint the range if dma mask is set by a device. Signed-off-by: Alejandro Lucero --- lib/librte_eal/common/eal_private.h | 3 +++ lib/librte_eal/linuxapp/eal/eal.c

[dpdk-dev] [RFC] Add support for device dma mask

2018-06-26 Thread Alejandro Lucero
This RFC tries to handle devices with addressing limitations. NFP devices 4000/6000 can just handle addresses with 40 bits implying problems for handling physical address when machines have more than 1TB of memory. But because how iovas are configured, which can be equivalent to physical addresses

[dpdk-dev] [PATCH 2/6] mem: add hugepages check

2018-06-26 Thread Alejandro Lucero
Devices can have addressing limitations and a driver can set a dma mask. This patch adds a function for checking hugepages iovas are within the range supported by the dma mask. Signed-off-by: Alejandro Lucero --- lib/librte_eal/linuxapp/eal/eal_memory.c | 36 1 f

[dpdk-dev] [PATCH 4/6] mem: add function for setting internal dma mask

2018-06-26 Thread Alejandro Lucero
A device with addressing limitations will invoke this function for setting a dma mask. It has no effect if there is another dma mask already set and more restrictive than this one. Signed-off-by: Alejandro Lucero --- lib/librte_eal/common/eal_common_memory.c | 15 +++ lib/librte_eal

[dpdk-dev] [PATCH 5/6] ethdev: add function for dma mask

2018-06-26 Thread Alejandro Lucero
This function calls a generic one for ethernet devices. Signed-off-by: Alejandro Lucero --- lib/librte_ether/rte_ethdev.h | 12 1 file changed, 12 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index eba11ca..e3979e4 100644 --- a/lib/librte

[dpdk-dev] [PATCH 6/6] net/nfp: set dma mask

2018-06-26 Thread Alejandro Lucero
NFP 4000/6000 devices can not use iova addresses requiring more than 40 bits. This patch sets a dma mask for avoiding hugepages with iova requiring more than those 40 bits. Signed-off-by: Alejandro Lucero --- drivers/net/nfp/nfp_net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

Re: [dpdk-dev] [PATCH v3 1/3] gso: support UDP/IPv4 fragmentation

2018-06-26 Thread Ophir Munk
Hi, Please find some comments below. > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jiayu Hu > Sent: Friday, June 22, 2018 8:54 AM > To: dev@dpdk.org > Cc: xiao.w.w...@intel.com; konstantin.anan...@intel.com; > yuwei1.zh...@intel.com; bernard.iremon...@intel.co

[dpdk-dev] Regarding support for C3xxx (Denverton) QAT compression in 18.08

2018-06-26 Thread Srinivasan J
Hi, As per DPDK roadmap, 18.08 is supposed to have a compression PMD for QAT chipsets. Please share information if C3xxx (denverton) chipset would be supported in 18.08 QAT compression PMD. Reference: http://core.dpdk.org/roadmap/ Thanks, Srini

Re: [dpdk-dev] [PATCH v4 06/24] ethdev: enable hotplug on multi-process

2018-06-26 Thread Zhang, Qi Z
> -Original Message- > From: Burakov, Anatoly > Sent: Tuesday, June 26, 2018 11:12 PM > To: Zhang, Qi Z ; tho...@monjalon.net > Cc: Ananyev, Konstantin ; dev@dpdk.org; > Richardson, Bruce ; Yigit, Ferruh > ; Shelton, Benjamin H > ; Vangati, Narender > > Subject: Re: [PATCH v4 06/24] ethd

[dpdk-dev] [PATCH] ip_frag: extend rte_ipv6_frag_get_ipv6_fragment_header()

2018-06-26 Thread Cody Doucette
Extend rte_ipv6_frag_get_ipv6_fragment_header() to skip over any other IPv6 extension headers when finding the fragment header. According to RFC 8200, there is no guarantee that the IPv6 Fragment extension header will come before any other extension header, even though it is recommended. Signed-o

Re: [dpdk-dev] [PATCH 3/3] gso: add UDP/IPv4 GSO to the programmer guide

2018-06-26 Thread Zhang, Yuwei1
Tested-by: Yuwei Zhang -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jiayu Hu Sent: Tuesday, May 29, 2018 3:41 PM To: dev@dpdk.org Cc: Ananyev, Konstantin ; Hu, Jiayu Subject: [dpdk-dev] [PATCH 3/3] gso: add UDP/IPv4 GSO to the programmer guide Signed-off-by: J

Re: [dpdk-dev] [RFC] net/ixgbe: fix Tx descriptor status api

2018-06-26 Thread Zhao1, Wei
Hi, Olivier Matz > -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Tuesday, June 26, 2018 4:46 PM > To: Zhao1, Wei > Cc: Zhang, Qi Z ; dev@dpdk.org; Lu, Wenzhuo > > Subject: Re: [RFC] net/ixgbe: fix Tx descriptor status api > > Hi Wei, > > On Tue, Jun 26

Re: [dpdk-dev] [PATCH v3 1/3] gso: support UDP/IPv4 fragmentation

2018-06-26 Thread Hu, Jiayu
Hi Ophir, Replies are inline. > -Original Message- > From: Ophir Munk [mailto:ophi...@mellanox.com] > Sent: Wednesday, June 27, 2018 7:59 AM > To: Hu, Jiayu ; dev@dpdk.org > Cc: Wang, Xiao W ; Ananyev, Konstantin > ; Zhang, Yuwei1 > ; Iremonger, Bernard > ; Thomas Monjalon > > Subject: R

Re: [dpdk-dev] [PATCH v4 03/24] ethdev: add function to release port in local process

2018-06-26 Thread Zhang, Qi Z
> -Original Message- > From: Matan Azrad [mailto:ma...@mellanox.com] > Sent: Wednesday, June 27, 2018 12:55 AM > To: Zhang, Qi Z ; Thomas Monjalon > ; Burakov, Anatoly > Cc: Ananyev, Konstantin ; dev@dpdk.org; > Richardson, Bruce ; Yigit, Ferruh > ; Shelton, Benjamin H > ; Vangati, Nare

Re: [dpdk-dev] [PATCH] net/i40e: remove VF interrupt handler

2018-06-26 Thread Xing, Beilei
> -Original Message- > From: Zhang, Qi Z > Sent: Thursday, June 7, 2018 9:32 AM > To: Xing, Beilei > Cc: Wu, Jingjing ; Yu, De ; > dev@dpdk.org; Zhang, Qi Z > Subject: [PATCH] net/i40e: remove VF interrupt handler > > For i40evf, internal rx interrupt and adminq interrupt share the sa

Re: [dpdk-dev] [PATCH V3 4/4] app/testpmd: show example to handle hot unplug

2018-06-26 Thread Guo, Jia
hi, mantan On 6/27/2018 1:07 AM, Matan Azrad wrote: Hi Jeff Continue session from last version + more comments\question. From: Jeff Guo Sent: Tuesday, June 26, 2018 6:36 PM To: step...@networkplumber.org; bruce.richard...@intel.com; ferruh.yi...@intel.com; konstantin.anan...@intel.com; gaeta

Re: [dpdk-dev] [PATCH] net/i40e: remove VF interrupt handler

2018-06-26 Thread Zhang, Qi Z
> -Original Message- > From: Xing, Beilei > Sent: Wednesday, June 27, 2018 11:48 AM > To: Zhang, Qi Z > Cc: Wu, Jingjing ; Yu, De ; > dev@dpdk.org > Subject: RE: [PATCH] net/i40e: remove VF interrupt handler > > > > > -Original Message- > > From: Zhang, Qi Z > > Sent: Thursda

Re: [dpdk-dev] [PATCH v3 1/3] gso: support UDP/IPv4 fragmentation

2018-06-26 Thread Hu, Jiayu
> -Original Message- > From: Hu, Jiayu > Sent: Wednesday, June 27, 2018 10:29 AM > To: Ophir Munk ; dev@dpdk.org > Cc: Wang, Xiao W ; Ananyev, Konstantin > ; Zhang, Yuwei1 > ; Iremonger, Bernard > ; Thomas Monjalon > > Subject: RE: [dpdk-dev] [PATCH v3 1/3] gso: support UDP/IPv4 > fragm

Re: [dpdk-dev] [PATCH V3 4/4] app/testpmd: show example to handle hot unplug

2018-06-26 Thread Matan Azrad
Hi Guo From: Guo, Jia > Sent: Wednesday, June 27, 2018 6:56 AM > To: Matan Azrad ; step...@networkplumber.org; > bruce.richard...@intel.com; ferruh.yi...@intel.com; > konstantin.anan...@intel.com; gaetan.ri...@6wind.com; > jingjing...@intel.com; Thomas Monjalon ; > Mordechay Haimovsky ; harry.van.

Re: [dpdk-dev] [PATCH 01/20] eventdev: add files for eventmode helper

2018-06-26 Thread Sunil Kumar Kori
Regards Sunil Kumar > -Original Message- > From: Anoob Joseph [mailto:anoob.jos...@caviumnetworks.com] > Sent: Friday, June 8, 2018 10:54 PM > To: Bruce Richardson ; Jerin Jacob > ; Pablo de Lara > > Cc: Anoob Joseph ; Hemant Agrawal > ; Narayana Prasad > ; Nikhil Rao > ; Pavan Nikhile

Re: [dpdk-dev] [PATCH] net/virtio-user: add unsupported features mask

2018-06-26 Thread Maxime Coquelin
On 06/26/2018 11:02 AM, Liu, Yong wrote: -Original Message- From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] Sent: Tuesday, June 26, 2018 4:08 PM To: Liu, Yong ; Bie, Tiwei Cc: Wang, Zhihong ; dev@dpdk.org Subject: Re: [PATCH] net/virtio-user: add unsupported features mask

Re: [dpdk-dev] [PATCH v2 3/8] net/virtio-user: add mrg_rxbuf and in_order vdev parameters

2018-06-26 Thread Maxime Coquelin
On 06/25/2018 05:17 PM, Marvin Liu wrote: Add parameters for configuring VIRTIO_NET_F_MRG_RXBUF and VIRTIO_F_IN_ORDER feature bits. If feature is disabled, also update corresponding unsupported feature bit. Signed-off-by: Marvin Liu diff --git a/drivers/net/virtio/virtio_user/virtio_user_de

Re: [dpdk-dev] [PATCH v2 4/8] net/virtio: free IN_ORDER descriptors before device start

2018-06-26 Thread Maxime Coquelin
On 06/25/2018 05:17 PM, Marvin Liu wrote: Add new function for freeing IN_ORDER descriptors. As descriptors will be allocated and freed sequentially when IN_ORDER feature was negotiated. There will be no need to utilize chain for freed descriptors management, only index update is enough. Sign

<    1   2   3