Re: [dpdk-dev] [PATCH v2] ethdev: add fuzzy match pattern

2017-06-12 Thread Zhang, Qi Z
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Monday, June 12, 2017 11:39 PM > To: Thomas Monjalon > Cc: Zhang, Qi Z ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] ethdev: add fuzzy match pattern > > On Thu, Jun 08, 2017 at 09:19:24AM +02

Re: [dpdk-dev] [PATCH v3 1/2] eal/pci: introduce a PCI driver flag

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Mon, 12 Jun 2017 18:21:33 +0200 > From: Thomas Monjalon > To: Jerin Jacob > Cc: dev@dpdk.org, ferruh.yi...@intel.com > Subject: Re: [dpdk-dev] [PATCH v3 1/2] eal/pci: introduce a PCI driver flag > > 09/06/2017 12:27, Jerin Jacob: > > Some ethdev devices like n

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

2017-06-12 Thread Daniel Verkamp
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 pthread_mutex_t is implemented. Signed-off-by: Daniel Verkamp --- lib/librte_vhost/socket.c | 3 +++ 1 file changed, 3 insertions(+) diff

[dpdk-dev] [PATCH v2 0/2] net/i40e: get information about ddp profile

2017-06-12 Thread Andrey Chilikin
This patch adds ability to request information about dynamic device personalization profile v2: Add rte_pmd_i40e_get_ddp_info() function to i40e version map Add CL to test-pmd for getting information about profile Andrey Chilikin (2): net/i40e: get information about ddp profile app/testpmd: e

[dpdk-dev] [PATCH v2 1/2] net/i40e: get information about ddp profile

2017-06-12 Thread Andrey Chilikin
This patch adds ability to request information about dynamic device personalization profile Signed-off-by: Andrey Chilikin --- drivers/net/i40e/rte_pmd_i40e.c | 163 +- drivers/net/i40e/rte_pmd_i40e.h | 46 + drivers/net/i40e/rte_pmd_i40e_

[dpdk-dev] [PATCH v2 2/2] app/testpmd: enable ddp get info feature

2017-06-12 Thread Andrey Chilikin
This patch demostrates how to get information about dynamic device personalization profile. Command 'ddp get info (profile_path)' extracts and prints information about the given profile. Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 131 +

Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp

2017-06-12 Thread Wu, Jingjing
Please ignore the empty mail. > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wu, Jingjing > Sent: Monday, June 12, 2017 11:54 PM > To: Olivier Matz ; Xing, Beilei > > Cc: Richardson, Bruce ; Zhang, Helin > ; > dev@dpdk.org > Subject: Re: [dpdk-dev] i40e: pci

Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp

2017-06-12 Thread Wu, Jingjing
HI, Olivier > Thank you for your quick answer. > > Yes, the pci probing continues for the other ports even if one port > failed (since v17.05, commit 10f6c93cea). > > But I find a bit strange to have this check about the SFP in the > PCI probing function instead of having it the port initializat

[dpdk-dev] [pull-request] next-net 17.08 PRE-RC1

2017-06-12 Thread Ferruh Yigit
The following changes since commit a6793d47f328354d0a3a3984060bbfb967e4f91d: ethdev: keep port id unchanged if obtaining by name failed (2017-06-09 18:35:01 +0200) are available in the git repository at: http://dpdk.org/git/next/dpdk-next-net for you to fetch changes up to 6110b1c65ba01d2

Re: [dpdk-dev] [PATCH v3 1/2] eal/pci: introduce a PCI driver flag

2017-06-12 Thread Thomas Monjalon
09/06/2017 12:27, Jerin Jacob: > Some ethdev devices like nicvf thunderx PMD need special treatment for > Secondary queue set(SQS) PCIe VF devices, where, it expects to not unmap > or free the memory without registering the ethdev subsystem. > > Introducing a new RTE_PCI_DRV_KEEP_MAPPED_RES > PCI

Re: [dpdk-dev] [PATCH v3 1/2] eal/pci: introduce a PCI driver flag

2017-06-12 Thread Ferruh Yigit
On 6/9/2017 11:46 AM, Ferruh Yigit wrote: > On 6/9/2017 11:27 AM, Jerin Jacob wrote: >> Some ethdev devices like nicvf thunderx PMD need special treatment for >> Secondary queue set(SQS) PCIe VF devices, where, it expects to not unmap >> or free the memory without registering the ethdev subsystem.

Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp

2017-06-12 Thread Wu, Jingjing
> -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Monday, June 12, 2017 5:46 PM > To: Xing, Beilei > Cc: Richardson, Bruce ; Zhang, Helin > ; > Wu, Jingjing ; dev@dpdk.org > Subject: Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp > > Hi Be

Re: [dpdk-dev] [PATCH v3] drivers/net: document missing speed capabilities feature

2017-06-12 Thread Ferruh Yigit
On 5/17/2017 2:28 PM, Mcnamara, John wrote: > > >> -Original Message- >> From: Yigit, Ferruh >> Sent: Monday, May 15, 2017 1:31 PM >> To: Shepard Siegel ; Ed Czeck >> ; John Miller ; >> Mcnamara, John ; Harish Patil >> ; Rasesh Mody ; Rahul >> Lakkireddy ; Hemant Agrawal >> ; Shreyansh Ja

[dpdk-dev] memory pool size in Raspberry pi 3 AF_PACKET PMD

2017-06-12 Thread Karthikraj palanichamy
I am using DPDK in a Raspberry pi 3 machine using AF_PACKET PMD. I have two memory pools, one for tx and other for rx. When I set the size of memory pool as 8192, there is no problem. But when I increase it to 16384, mempool creation fails though more than 800MB of RAM available. Is this beh

Re: [dpdk-dev] [PATCH v2] ethdev: add fuzzy match pattern

2017-06-12 Thread Adrien Mazarguil
On Thu, Jun 08, 2017 at 09:19:24AM +0200, Thomas Monjalon wrote: > Hi, > > 08/06/2017 00:21, Qi Zhang: > > Add new meta pattern item RTE_FLOW_TYPE_ITEM_FUZZY. > > I disagree about fuzzy wording, because fuzzy is something different > I think. At least it's a generic term, unrelated PMDs could li

Re: [dpdk-dev] [PATCH v5 1/3] net/ring: set ethernet device field

2017-06-12 Thread Ferruh Yigit
On 6/12/2017 4:25 PM, Ferruh Yigit wrote: > The eth_dev->device link was missing for ring PMD, adding it. > > This is to generalize rte_device access from eth_dev. > > Signed-off-by: Ferruh Yigit Series applied to dpdk-next-net/master, thanks.

[dpdk-dev] [PATCH v5 3/3] ethdev: remove driver name from device private data

2017-06-12 Thread Ferruh Yigit
rte_driver->name has the driver name and all physical and virtual devices has access to it. Previously it was not possible for virtual ethernet devices to access rte_driver->name field (because eth_dev used to keep only pci_dev), and it was required to save driver name in the device private struct

[dpdk-dev] [PATCH v5 2/3] net/ring: use EAL APIs in PMD specific API

2017-06-12 Thread Ferruh Yigit
When ring PMD created via PMD specific API instead of EAL abstraction it is missing the virtual device creation done by EAL vdev. And this makes eth_dev unusable exact same as other PMDs used, because of some missing fields, like rte_device->name. Now API calls EAL APIs to create ring PMDs. Sign

[dpdk-dev] [PATCH v5 1/3] net/ring: set ethernet device field

2017-06-12 Thread Ferruh Yigit
The eth_dev->device link was missing for ring PMD, adding it. This is to generalize rte_device access from eth_dev. Signed-off-by: Ferruh Yigit --- drivers/net/ring/rte_eth_ring.c | 33 +++-- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v2 4/4] doc: remove deprecation notice

2017-06-12 Thread Bernard Iremonger
From: "Bernard.Iremonger" Remove deprecation notice for rte_eth_dev_callback_process API changes. Signed-off-by: Bernard.Iremonger --- doc/guides/rel_notes/deprecation.rst | 4 1 file changed, 4 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprec

[dpdk-dev] [PATCH v2 3/4] examples: callback process API changes

2017-06-12 Thread Bernard Iremonger
From: "Bernard.Iremonger" Modify the link_status_interrupt sample application for the rte_eth_dev_callback_process API changes. Signed-off-by: Bernard.Iremonger --- examples/link_status_interrupt/main.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/lin

[dpdk-dev] [PATCH v2 2/4] test: callback process API changes

2017-06-12 Thread Bernard Iremonger
From: "Bernard.Iremonger" Modify the following test code for rte_eth_dev_callback_process API changes: virtual_pmd test_link_bonding Signed-off-by: Bernard.Iremonger --- test/test/test_link_bonding.c | 8 ++-- test/test/virtual_pmd.c | 3 ++- 2 files changed, 8 insertions(+), 3 dele

[dpdk-dev] [PATCH v2 1/4] ethdev: modify callback process API

2017-06-12 Thread Bernard Iremonger
From: "Bernard.Iremonger" Change the rte_eth_dev_callback_process function to return int, and add a void *ret_param parameter. Modify the following PMD's for rte_eth_dev_callback_process API changes: net/bonding net/nfp net/enic net/vhost net/virtio net/thunderx net/e1000: e1000 and igb net/sfc

[dpdk-dev] [PATCH v2 0/4] ethdev: callback process API

2017-06-12 Thread Bernard Iremonger
From: "Bernard.Iremonger" At present the _rte_eth_dev_callback_process function is using the cb_arg parameter to return data to the caller. The cb_arg parameter is an input parameter and should not be used to return data to the caller. In this patchset the return type of _rte_eth_dev_callback_pr

Re: [dpdk-dev] [PATCH v3 2/3] net/ring: create vdev from PMD specific API

2017-06-12 Thread Ferruh Yigit
On 6/12/2017 3:19 PM, Bruce Richardson wrote: > On Mon, Jun 12, 2017 at 03:08:31PM +0100, Ferruh Yigit wrote: >> On 6/12/2017 2:25 PM, Bruce Richardson wrote: >>> On Fri, Jun 09, 2017 at 06:51:19PM +0100, Ferruh Yigit wrote: When ring PMD created via PMD specific API instead of EAL abstraction

Re: [dpdk-dev] [PATCH v2 1/5] net/szedata2: refactor ibuf and obuf names

2017-06-12 Thread Ferruh Yigit
On 6/12/2017 1:03 PM, Matej Vido wrote: > Prefix "cgmii" is removed because it is too specific. > There are different ibuf/obuf modules in different firmwares > but the address space definition is the same. > This patch makes the name general. > > Signed-off-by: Matej Vido Series applied to dpdk

Re: [dpdk-dev] [PATCH] mk: disable new gcc truncation flag

2017-06-12 Thread Markos Chandras
On 06/02/2017 07:38 PM, Markos Chandras wrote: > On 06/02/2017 05:31 PM, Nirmoy Das wrote: >> disable truncation check to ignore below warning >> dpdk/x86_64-native-linuxapp-gcc-default/build/lib/librte_eal/linuxapp/kni/igb_main.c:2476:30: >> error: '%d' directive output may be truncated writing b

Re: [dpdk-dev] [PATCH] doc: add VLAN flow limitation on mlx5 PMD

2017-06-12 Thread Adrien Mazarguil
Hi Shahaf, On Tue, Jun 06, 2017 at 05:20:16PM +0300, Shahaf Shuler wrote: > On mlx5 PMD Flow pattern without any specific vlan will match for vlan > packets as well. > > Signed-off-by: Shahaf Shuler > Acked-by: Nelio Laranjeiro nelio.laranje...@6wind.com > --- > doc/guides/rel_notes/release_17_

Re: [dpdk-dev] Problem with MBUF pool allocation

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 04:15:08PM +0200, Marco Varlese wrote: > Hi, > I'm seeing an error reported by the DPDK EAL when allocating the MBUF pools. > > The error is: > "MBUF: error setting mempool handler" > > I have a multi-node NUMA system and I get the exact same error when trying to > allocat

Re: [dpdk-dev] [PATCH 7/9] bus: add helper to find a bus from a device name

2017-06-12 Thread Gaëtan Rivet
On Sat, Jun 10, 2017 at 10:50:12AM +0200, Jan Blunck wrote: > On Thu, Jun 8, 2017 at 2:51 PM, Gaëtan Rivet wrote: > > On Thu, Jun 08, 2017 at 01:40:46PM +0200, Jan Blunck wrote: > >> On Thu, Jun 8, 2017 at 1:36 PM, Gaëtan Rivet > >> wrote: > >> > On Thu, Jun 08, 2017 at 12:45:17PM +0200, Jan Blu

Re: [dpdk-dev] [PATCH v4 2/3] net/ring: use EAL APIs in PMD specific API

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 03:13:53PM +0100, Ferruh Yigit wrote: > When ring PMD created via PMD specific API instead of EAL abstraction > it is missing the virtual device creation done by EAL vdev. > > And this makes eth_dev unusable exact same as other PMDs used, because > of some missing fields, l

Re: [dpdk-dev] [PATCH v3 2/3] net/ring: create vdev from PMD specific API

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 03:08:31PM +0100, Ferruh Yigit wrote: > On 6/12/2017 2:25 PM, Bruce Richardson wrote: > > On Fri, Jun 09, 2017 at 06:51:19PM +0100, Ferruh Yigit wrote: > >> When ring PMD created via PMD specific API instead of EAL abstraction > >> it is missing the virtual device creation d

[dpdk-dev] Problem with MBUF pool allocation

2017-06-12 Thread Marco Varlese
Hi, I'm seeing an error reported by the DPDK EAL when allocating the MBUF pools. The error is: "MBUF: error setting mempool handler" I have a multi-node NUMA system and I get the exact same error when trying to allocate the memory from the different nodes.  The bootstrap parameters I use to rese

[dpdk-dev] [PATCH v4 3/3] ethdev: remove driver name from device private data

2017-06-12 Thread Ferruh Yigit
rte_driver->name has the driver name and all physical and virtual devices has access to it. Previously it was not possible for virtual ethernet devices to access rte_driver->name field (because eth_dev used to keep only pci_dev), and it was required to save driver name in the device private struct

[dpdk-dev] [PATCH v4 2/3] net/ring: use EAL APIs in PMD specific API

2017-06-12 Thread Ferruh Yigit
When ring PMD created via PMD specific API instead of EAL abstraction it is missing the virtual device creation done by EAL vdev. And this makes eth_dev unusable exact same as other PMDs used, because of some missing fields, like rte_device->name. Now API calls EAL APIs to create ring PMDs. Sign

[dpdk-dev] [PATCH v4 1/3] net/ring: set ethernet device field

2017-06-12 Thread Ferruh Yigit
The eth_dev->device link was missing for ring PMD, adding it. This is to generalize rte_device access from eth_dev. Signed-off-by: Ferruh Yigit --- drivers/net/ring/rte_eth_ring.c | 33 +++-- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/net

Re: [dpdk-dev] [PATCH v3 2/3] net/ring: create vdev from PMD specific API

2017-06-12 Thread Ferruh Yigit
On 6/12/2017 2:25 PM, Bruce Richardson wrote: > On Fri, Jun 09, 2017 at 06:51:19PM +0100, Ferruh Yigit wrote: >> When ring PMD created via PMD specific API instead of EAL abstraction >> it is missing the virtual device creation done by EAL vdev. >> >> And this makes eth_dev unusable exact same as o

Re: [dpdk-dev] [PATCH] eal: don't advertise a physical address when no hugepages

2017-06-12 Thread Adrien Mazarguil
On Fri, Jun 09, 2017 at 10:29:37AM +0200, Olivier Matz wrote: > When populating a mempool with a virtual memory area, the mempool > library expects to be able to get the physical address of each page. > > When started with --no-huge, the physical addresses may not be available > because the pages

[dpdk-dev] [PATCH v6 0/2] ethdev: abstraction layer for QoS traffic management

2017-06-12 Thread Cristian Dumitrescu
This patch set introduces an ethdev-based abstraction layer for Quality of Service (QoS) Traffic Management, which includes: hierarchical scheduling, traffic shaping, congestion management, packet marking. The goal is to provide a simple generic API that is agnostic of the underlying HW, SW or mixe

[dpdk-dev] [PATCH v6 2/2] ethdev: add traffic management API

2017-06-12 Thread Cristian Dumitrescu
This patch introduces the generic ethdev API for the traffic manager capability, which includes: hierarchical scheduling, traffic shaping, congestion management, packet marking. Main features: - Exposed as ethdev plugin capability (similar to rte_flow) - Capability query API per port, per level an

[dpdk-dev] [PATCH v6 1/2] ethdev: add traffic management ops get API

2017-06-12 Thread Cristian Dumitrescu
The rte_flow feature breaks the monolithic approach for ethdev by introducing the new rte_flow API to ethdev using a plugin-like approach. Basically, the rte_flow API is still logically part of ethdev: - It extends the ethdev functionality: rte_flow is a new feature/ capability of ethdev; - all

Re: [dpdk-dev] [PATCH v3 2/3] net/ring: create vdev from PMD specific API

2017-06-12 Thread Bruce Richardson
On Fri, Jun 09, 2017 at 06:51:19PM +0100, Ferruh Yigit wrote: > When ring PMD created via PMD specific API instead of EAL abstraction > it is missing the virtual device creation done by EAL vdev. > > And this makes eth_dev unusable exact same as other PMDs used, because > of some missing fields, l

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

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Mon, 12 Jun 2017 12:51:26 + > From: "Ananyev, Konstantin" > To: Jerin Jacob > CC: "Richardson, Bruce" , Stephen Hemminger > , Yerden Zhumabekov , > "Verkamp, Daniel" , "dev@dpdk.org" > > Subject: RE: [dpdk-dev] [PATCH v2] ring: use aligned memzone alloca

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

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 01:51:26PM +0100, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > > Sent: Monday, June 12, 2017 1:42 PM > > To: Ananyev, Konstantin > > Cc: Richardson, Bruce ; Stephen Hemminger > > ; Yerden Zh

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

2017-06-12 Thread Ananyev, Konstantin
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Monday, June 12, 2017 1:42 PM > To: Ananyev, Konstantin > Cc: Richardson, Bruce ; Stephen Hemminger > ; Yerden Zhumabekov > ; Verkamp, Daniel ; > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] r

Re: [dpdk-dev] [PATCH v3 3/3] doc: update build-sdk-quick txt file

2017-06-12 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of David Hunt > Sent: Wednesday, June 7, 2017 3:38 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; shreyansh.j...@nxp.com; Hunt, David > > Subject: [dpdk-dev] [PATCH v3 3/3] doc: update build-sdk-quick txt file >

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

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Mon, 12 Jun 2017 12:17:48 + > From: "Ananyev, Konstantin" > To: Jerin Jacob , "Richardson, Bruce" > > CC: Stephen Hemminger , Yerden Zhumabekov > , "Verkamp, Daniel" , > "dev@dpdk.org" > Subject: RE: [dpdk-dev] [PATCH v2] ring: use aligned memzone alloca

Re: [dpdk-dev] [PATCH v3] net/ixgbe: enable PTYPE offload for x86 vector PMD

2017-06-12 Thread Zhang, Qi Z
Hi Ferruh: > -Original Message- > From: Yigit, Ferruh > Sent: Monday, June 12, 2017 6:18 PM > To: Zhang, Qi Z ; Ananyev, Konstantin > > Cc: Lu, Wenzhuo ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3] net/ixgbe: enable PTYPE offload for x86 > vector PMD > > On 6/11/20

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

2017-06-12 Thread Ananyev, Konstantin
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Monday, June 12, 2017 12:41 PM > To: Richardson, Bruce > Cc: Ananyev, Konstantin ; Stephen Hemminger > ; Yerden Zhumabekov > ; Verkamp, Daniel ; > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2]

[dpdk-dev] [PATCH v2 3/5] net/szedata2: refactor ibuf and obuf address definition

2017-06-12 Thread Matej Vido
This is to prepare for firmwares with multiple ibufs and obufs. Ibufs and obufs are the modules in FPGA firmware implementing the Ethernet port. There is one ibuf+obuf per Ethernet port. The cards and firmwares allow one physical port to be one Ethernet port or split into more Ethernet ports, e.g.

[dpdk-dev] [PATCH v2 2/5] net/szedata2: refactor ibuf and obuf read and write

2017-06-12 Thread Matej Vido
Remove unused read and write functions. Use rte_read*, rte_write* functions to access ibuf and obuf address space. Signed-off-by: Matej Vido --- drivers/net/szedata2/rte_eth_szedata2.c | 4 +- drivers/net/szedata2/rte_eth_szedata2.h | 184 +++- 2 files changed, 64 i

[dpdk-dev] [PATCH v2 4/5] net/szedata2: move ibuf and obuf to specific header

2017-06-12 Thread Matej Vido
Signed-off-by: Matej Vido --- drivers/net/szedata2/rte_eth_szedata2.h | 216 +- drivers/net/szedata2/szedata2_iobuf.h | 261 2 files changed, 264 insertions(+), 213 deletions(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.h b/dri

[dpdk-dev] [PATCH v2 5/5] net/szedata2: add more supported firmwares

2017-06-12 Thread Matej Vido
Add IBUF and OBUF offsets definitions for new firmwares. Signed-off-by: Matej Vido --- v2: Added release note. Added description of AS = 5 in comment and in documentation. config/common_base | 8 +- doc/guides/nics/szedata2.rst | 32 +-- doc/guides/rel_n

[dpdk-dev] [PATCH v2 1/5] net/szedata2: refactor ibuf and obuf names

2017-06-12 Thread Matej Vido
Prefix "cgmii" is removed because it is too specific. There are different ibuf/obuf modules in different firmwares but the address space definition is the same. This patch makes the name general. Signed-off-by: Matej Vido --- v2: Added more detailed commit message. drivers/net/szedata2/rte_et

[dpdk-dev] [PATCH] eventdev: add producer enqueue hint

2017-06-12 Thread Jerin Jacob
Some PMD like OCTEONTX can have optimized handling of events if the PMD knows it is a producer pattern in advance. For instance, OCTEONTX PMD can support burst mode if op == RTE_EVENT_OP_NEW. Since the event producer initialize(set all_op_new == 1) the event object before the main producer loop, T

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

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Mon, 12 Jun 2017 12:09:07 +0100 > From: Bruce Richardson > To: Jerin Jacob > CC: "Ananyev, Konstantin" , Stephen Hemminger > , Yerden Zhumabekov , > "Verkamp, Daniel" , "dev@dpdk.org" > > Subject: Re: [dpdk-dev] [PATCH v2] ring: use aligned memzone allocatio

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

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 04:04:11PM +0530, Jerin Jacob wrote: > -Original Message- > > Date: Mon, 12 Jun 2017 10:18:39 + > > From: "Ananyev, Konstantin" > > To: Jerin Jacob > > CC: Stephen Hemminger , Yerden Zhumabekov > > , "Richardson, Bruce" , > > "Verkamp, Daniel" , "dev@dpdk.org

Re: [dpdk-dev] [PATCH 00/11] net/e1000: Consistent filter API

2017-06-12 Thread Ferruh Yigit
On 6/12/2017 7:48 AM, Wei Zhao wrote: > The patches mainly finish following functions: > 1) Store and restore all kinds of filters. > 2) Parse all kinds of filters. > 3) Add flow validate function. > 4) Add flow create function. > 5) Add flow destroy function. > 6) Add flow flush function. > > v2

Re: [dpdk-dev] [PATCH v5 01/11] net/e1000: store and restore TCP SYN filter

2017-06-12 Thread Ferruh Yigit
On 6/12/2017 7:48 AM, Wei Zhao wrote: > Add support for storing and restoring TCP SYN > filter in SW. > > Signed-off-by: Wei Zhao Hi Wei, Can you please send a documentation patch for this feature, with two updates: - Release notes update to announce igb rte_flow support - nic features update

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

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Mon, 12 Jun 2017 10:18:39 + > From: "Ananyev, Konstantin" > To: Jerin Jacob > CC: Stephen Hemminger , Yerden Zhumabekov > , "Richardson, Bruce" , > "Verkamp, Daniel" , "dev@dpdk.org" > > Subject: RE: [dpdk-dev] [PATCH v2] ring: use aligned memzone alloca

Re: [dpdk-dev] [PATCH] virtio: fix PCI config err handling

2017-06-12 Thread Yuanhan Liu
On Mon, Jun 05, 2017 at 04:44:33PM +0100, Brian Russell wrote: > In virtio_read_caps, rte_pci_read_config returns the number of bytes > read from PCI config or <0 on error. > If less than the expected number of bytes are read then log the > failure and return rather than carrying on with garbage. >

Re: [dpdk-dev] [PATCH v5 2/2] ethdev: add traffic management API

2017-06-12 Thread Dumitrescu, Cristian
... > > Please update the the missing the doxygen hooks in doc/api/doxy-api- > index.md. > Not sure why this file change did not make it in the patch, will triple check for V6 that I am going to send now. Thanks for checking! > If it makes sense, then add (@see) for the exact capability field

Re: [dpdk-dev] [PATCH] net/virtio: zero the whole memory zone

2017-06-12 Thread Yuanhan Liu
On Mon, Jun 12, 2017 at 12:34:30PM +0800, Tiwei Bie wrote: > Zero the whole memory zone instead of the first few bytes. > > Fixes: c1f86306a026 ("virtio: add new driver") > Cc: sta...@dpdk.org > > Signed-off-by: Tiwei Bie > --- > drivers/net/virtio/virtio_ethdev.c | 2 +- > 1 file changed, 1 in

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

2017-06-12 Thread Ananyev, Konstantin
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Monday, June 12, 2017 4:08 AM > To: Ananyev, Konstantin > Cc: Stephen Hemminger ; Yerden Zhumabekov > ; Richardson, Bruce > ; Verkamp, Daniel ; > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] r

Re: [dpdk-dev] [PATCH v3] net/ixgbe: enable PTYPE offload for x86 vector PMD

2017-06-12 Thread Ferruh Yigit
On 6/11/2017 6:17 AM, Qi Zhang wrote: > Hardware PTYPE in Rx desc will be parsed to fill > mbuf's packet_type. > > Signed-off-by: Qi Zhang <...> > diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile > index 5529d81..8b86fe3 100644 > --- a/drivers/net/ixgbe/Makefile > +++ b/driv

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

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 11:02:32AM +0200, Olivier Matz wrote: > On Fri, 9 Jun 2017 10:02:55 +0100, Bruce Richardson > wrote: > > On Thu, Jun 08, 2017 at 05:42:00PM +0100, Ananyev, Konstantin wrote: > > > > > > > > > > -Original Message- > > > > From: Richardson, Bruce > > > > Sent: Th

[dpdk-dev] [PATCH] pdump: remove unnecessary header file

2017-06-12 Thread Reshma Pattan
Missed to remove unnecessary header file rte_pci.h. Removed it now. Fixes: bb900072("pdump: revert PCI device name conversion") Signed-off-by: Reshma Pattan --- lib/librte_pdump/rte_pdump.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_pdump/rte_pdump.c b/lib/librte_pdump/rte_pd

Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp

2017-06-12 Thread Olivier Matz
Hi Beilei, On Mon, 12 Jun 2017 08:45:43 +, "Xing, Beilei" wrote: > Hi Olivier, > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Olivier Matz > > Sent: Thursday, June 8, 2017 6:14 PM > > To: Richardson, Bruce > > Cc: Zhang, Helin ; Wu, Jingjing > > ;

[dpdk-dev] [PATCH] igb_uio: issue FLR during open and release of device file

2017-06-12 Thread Shijith Thotton
Set UIO info device file operations open and release. Call pci reset function inside open and release to clear device state at start and end. Copied this behaviour from vfio_pci kernel module code. With this patch, it is not mandatory to issue FLR by PMD's during init and close. Bus master enable

[dpdk-dev] [PATCH] net/i40e: fix param check to avoid division by 0

2017-06-12 Thread Yong Wang
In function i40e_vsi_config_tc_queue_mapping(), if 'enabled_tcmap' is 0, 'total_tc' might be 0. Then 'total_tc' might be used in a division by 0 in "qpnum_per_tc = i40e_align_floor(vsi->nb_qps / total_tc)". Fix it by adding a check to parameter 'enabled_tcmap'. Signed-off-by: Yong Wang --- drive

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

2017-06-12 Thread Olivier Matz
On Fri, 9 Jun 2017 10:02:55 +0100, Bruce Richardson wrote: > On Thu, Jun 08, 2017 at 05:42:00PM +0100, Ananyev, Konstantin wrote: > > > > > > > -Original Message- > > > From: Richardson, Bruce > > > Sent: Thursday, June 8, 2017 5:21 PM > > > To: Ananyev, Konstantin > > > Cc: Olivier

Re: [dpdk-dev] [PATCH 2/2] drivers/net: use device name from device structure

2017-06-12 Thread Ferruh Yigit
On 6/10/2017 8:35 AM, Jan Blunck wrote: > On Fri, Jun 9, 2017 at 3:52 PM, Thomas Monjalon wrote: >> 26/05/2017 18:11, Ferruh Yigit: >>> Device name resides in two different locations, in rte_device->name and >>> in ethernet device private data. >> >> Yes would be nice to remove the name from rte_e

Re: [dpdk-dev] [PATCH 3/5] eventdev: add ring structure for events

2017-06-12 Thread Bruce Richardson
On Mon, Jun 12, 2017 at 10:45:47AM +0530, Jerin Jacob wrote: > -Original Message- > > Date: Wed, 7 Jun 2017 14:36:18 +0100 > > From: Bruce Richardson > > To: dev@dpdk.org > > CC: olivier.m...@6wind.com, jerin.ja...@caviumnetworks.com, Bruce > > Richardson > > Subject: [PATCH 3/5] eventde

Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp

2017-06-12 Thread Xing, Beilei
Hi Olivier, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Olivier Matz > Sent: Thursday, June 8, 2017 6:14 PM > To: Richardson, Bruce > Cc: Zhang, Helin ; Wu, Jingjing > ; dev@dpdk.org > Subject: Re: [dpdk-dev] i40e: pci probe fails when using one bogus sfp >

Re: [dpdk-dev] [PATCH v3 2/3] mk: allow use of environment var for template

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Wed, 7 Jun 2017 15:37:56 +0100 > From: David Hunt > To: dev@dpdk.org > CC: tho...@monjalon.net, shreyansh.j...@nxp.com, David Hunt > > Subject: [dpdk-dev] [PATCH v3 2/3] mk: allow use of environment var for > template > X-Mailer: git-send-email 2.7.4 > > Adde

Re: [dpdk-dev] [PATCH v3 1/3] mk: add sensible default target with defconfig

2017-06-12 Thread Jerin Jacob
-Original Message- > Date: Wed, 7 Jun 2017 15:37:55 +0100 > From: David Hunt > To: dev@dpdk.org > CC: tho...@monjalon.net, shreyansh.j...@nxp.com, David Hunt > > Subject: [dpdk-dev] [PATCH v3 1/3] mk: add sensible default target with > defconfig > X-Mailer: git-send-email 2.7.4 > > Use

Re: [dpdk-dev] [PATCH v3 05/11] net/e1000: parse n-tuple filter

2017-06-12 Thread Zhao1, Wei
Hi, Ferruh > -Original Message- > From: Yigit, Ferruh > Sent: Friday, June 9, 2017 8:30 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: Re: [dpdk-dev] [PATCH v3 05/11] net/e1000: parse n-tuple filter > > On 6/9/2017 4:11 AM, Wei Zhao wrote: > > Add rule validate function

[dpdk-dev] [PATCH v5 11/11] net/e1000: flush all the filter

2017-06-12 Thread Wei Zhao
This patch adds a function to flush all the fliter list and filter rule on a port. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 9 +++ drivers/net/e1000/igb_ethdev.c | 67 +-- drivers/net/e1000/igb_flow.c | 141 ++- 3

[dpdk-dev] [PATCH v5 10/11] net/e1000: destroy consistent filter

2017-06-12 Thread Wei Zhao
This patch adds a function to destroy the flow fliter. Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_flow.c | 88 +++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_flow.c b/drivers/net/e1000/igb_flow.c index 2fefa

[dpdk-dev] [PATCH v5 09/11] net/e1000: create consistent filter

2017-06-12 Thread Wei Zhao
This patch adds a function to create the flow directory filter. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 58 + drivers/net/e1000/igb_ethdev.c | 22 +++ drivers/net/e1000/igb_flow.c | 137 ++- 3 files changed, 2

[dpdk-dev] [PATCH v5 08/11] net/e1000: parse flex filter

2017-06-12 Thread Wei Zhao
check if the rule is a flex byte rule, and get the flex info. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 6 + drivers/net/e1000/igb_ethdev.c | 6 - drivers/net/e1000/igb_flow.c | 266 +++ 3 files changed, 272 insertions(+), 6 dele