[dpdk-dev] [PATCH] net/ixgbe: fix PF DCB info

2017-10-22 Thread Wei Dai
When SRIOV is active, the function ixgbe_dev_get_dcb_info( ) should return the DCB traffic class info of its own queues, not including any DCB info of the queues of any its VF. When VMDQ is active, all queues are belonged to the PF, the function ixgbe_dev_get_dcb_info can return DCB info of all que

[dpdk-dev] [PATCH v2] net/virtio: fix wrong TX pkt length stats

2017-10-22 Thread Zhiyong Yang
In the function virtqueue_enqueue_xmit(), when can_push is true, vtnet_hdr_size is added to pkt_len by calling rte_pktmbuf_prepend. So, virtio header length should be subtracted before calling stats function. Fixes: 58169a9c8153 ("net/virtio: support Tx checksum offload") Cc: sta...@dpdk.org Cc:

[dpdk-dev] FW: [PATCH v3] eal: enable vfio independent of PCI bus

2017-10-22 Thread Hemant Agrawal
Hi Anatoly, Will you please review the following patch? Regards, Hemant -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Hemant Agrawal Sent: Wednesday, October 11, 2017 12:12 PM To: tho...@monjalon.net; anatoly.bura...@intel.com Cc: dev@dpdk.org Subject: [d

Re: [dpdk-dev] [PATCH v5 3/5] drivers: add net as dependency for event drivers

2017-10-22 Thread Jerin Jacob
-Original Message- > Date: Mon, 23 Oct 2017 18:07:04 +0530 > From: Nipun Gupta > To: dev@dpdk.org > CC: hemant.agra...@nxp.com, jerin.ja...@caviumnetworks.com, > nikhil@intel.com, Nipun Gupta > Subject: [PATCH v5 3/5] drivers: add net as dependency for event drivers > X-Mailer: git-s

[dpdk-dev] [PATCH v5 5/5] event/dpaa2: improve the err handling and log msg

2017-10-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/event/dpaa2/dpaa2_eventdev.c | 9 + drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c ind

[dpdk-dev] [PATCH v5 4/5] event/dpaa2: support event eth adapter

2017-10-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Reviewed-by: Nikhil Rao Acked-by: Hemant Agrawal --- Changes in v4: Move driver/Makefile changes in separate patch (Jerin) Changes in v3: Fix shared library build Changes in v2: Support rx_queue_id = -1 in eth adapter queue and and del (Nikhil) Remove duplicate

[dpdk-dev] [PATCH v5 2/5] net/dpaa2: add API's to support event eth adapter

2017-10-22 Thread Nipun Gupta
Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- Changes in v3: Check the queue schedule type before configuring MC (Hemant) drivers/net/dpaa2/dpaa2_ethdev.c| 62 + drivers/net/dpaa2/dpaa2_ethdev.h| 15 +++ drivers/net/dpaa2/dpaa2

[dpdk-dev] [PATCH v5 1/5] drivers: add queue parameter in event processing callback

2017-10-22 Thread Nipun Gupta
For event dequeues for ethernet queues, a dpaa2_queue structure is required to get the configuration for that ethernet queue. Based on this configuration the rte_event is to be filled at the ingress side. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- This patch series is based over the

[dpdk-dev] [PATCH v5 3/5] drivers: add net as dependency for event drivers

2017-10-22 Thread Nipun Gupta
With the introduction of eventdev-ethdev RX adapter support in event device, some of the event device will have dependency on their respective ethernet drivers. This patch adds the net as a dependency for eventdevs. Signed-off-by: Nipun Gupta --- Changes in v5: Added get commit message (Jerin)

[dpdk-dev] [PATCH] doc: how to set VF MAC address on ixgbe

2017-10-22 Thread Wenzhuo Lu
Add the description of how to add a MAC address for a VF from PF on ixgbe. Signed-off-by: Wenzhuo Lu --- doc/guides/nics/ixgbe.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst index 696ff69..bd0dc68 100644 --- a/doc/guides

Re: [dpdk-dev] [PATCH] pci: fix check uio bind

2017-10-22 Thread Tan, Jianfeng
Hi Gaëtan, > -Original Message- > From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com] > Sent: Saturday, October 21, 2017 4:08 AM > To: Tan, Jianfeng > Cc: dev@dpdk.org; santosh.shu...@caviumnetworks.com; > jerin.ja...@caviumnetworks.com; Burakov, Anatoly > Subject: Re: [PATCH] pci: fix chec

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell memory barrier

2017-10-22 Thread Yongseok Koh
On Sun, Oct 22, 2017 at 12:46:53PM +0300, Sagi Grimberg wrote: > > > Configuring UAR as IO-mapped makes maximum throughput decline by noticeable > > amount. If UAR is configured as write-combining register, a write memory > > barrier is needed on ringing a doorbell. rte_wmb() is mostly effective w

Re: [dpdk-dev] [PATCH v4 00/12] introduce security offload library

2017-10-22 Thread Thomas Monjalon
22/10/2017 22:37, Akhil Goyal: > Hi All, > On 10/21/2017 9:43 PM, Akhil Goyal wrote: > > Hi Thomas, > > On 10/20/2017 3:02 PM, Thomas Monjalon wrote: > >> 16/10/2017 12:44, Thomas Monjalon: > >>> 15/10/2017 00:17, Akhil Goyal: > This patchset introduce the rte_security library in DPDK. >

Re: [dpdk-dev] [PATCH v4 00/12] introduce security offload library

2017-10-22 Thread Akhil Goyal
Hi All, On 10/21/2017 9:43 PM, Akhil Goyal wrote: Hi Thomas, On 10/20/2017 3:02 PM, Thomas Monjalon wrote: 16/10/2017 12:44, Thomas Monjalon: 15/10/2017 00:17, Akhil Goyal: This patchset introduce the rte_security library in DPDK. This also includes the sample implementation of drivers and cha

[dpdk-dev] [PATCH v2 2/2] crypto/dpaa_sec: add support for out of place buffers

2017-10-22 Thread alok.makhariya
From: Alok Makhariya Enable out of place buffer test cases in dpaa_sec Signed-off-by: Alok Makhariya Acked-by: Akhil Goyal --- changes in v2: corrected compilation issues in test drivers/crypto/dpaa_sec/dpaa_sec.c | 46 ++--- test/test/test_cryptodev.c

[dpdk-dev] [PATCH v2 1/2] crypto/dpaa2_sec: add support for out of place buffers

2017-10-22 Thread alok.makhariya
From: Alok Makhariya Enable out of place buffer test cases in nxp dpaa2_sec Signed-off-by: Alok Makhariya Acked-by: Akhil Goyal --- changes in v2: corrected compilation issues in test drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 42 +++-- test/test/test_cryptodev.c

[dpdk-dev] [PATCH v1] net/mlx4: fix no Rx interrupts

2017-10-22 Thread Moti Haimovsky
This commit addresses the issue of rx interrupts support with the new Rx datapath introduced in DPDK version 17.11. In order to generate an Rx interrupt an event queue is armed with the consumer index of the Rx completion queue. Since version 17.11 this index is handled by the PMD so it is now the

Re: [dpdk-dev] [PATCH] igb_uio: remove device reset in open

2017-10-22 Thread Patil, Harish
-Original Message- From: dev on behalf of Harish Patil Date: Friday, October 20, 2017 at 3:18 PM To: Ferruh Yigit , Jingjing Wu , "Thotton, Shijith" , Gregory Etelson Cc: Thomas Monjalon , "dev@dpdk.org" , "sta...@dpdk.org" , Jianfeng Tan , George Prekas , Sergio Gonzalez Monroy Subject

[dpdk-dev] [PATCH v9 4/4] test: flow classify library unit tests

2017-10-22 Thread Bernard Iremonger
Add flow_classify_autotest program. Set up IPv4 ACL field definitions. Create table_acl for use by librte_flow_classify API's. Create an mbuf pool for use by rte_flow_classify_query. For each of the librte_flow_classify API's: test with invalid parameters test with invalid patterns test with inva

[dpdk-dev] [PATCH v9 3/4] test: add packet burst generator functions

2017-10-22 Thread Bernard Iremonger
add initialize_tcp_header function add initialize_stcp_header function add initialize_ipv4_header_proto function add generate_packet_burst_proto function Signed-off-by: Bernard Iremonger --- test/test/packet_burst_generator.c | 191 + test/test/packet_burst_ge

[dpdk-dev] [PATCH v9 0/4] flow classification library

2017-10-22 Thread Bernard Iremonger
DPDK works with packets, but some network administration tools work with flow information. This library is proposed to provide an API to classify received packets using flow patterns. Basically the library consists of APIs to create the classifier object, add a table to the classifer, add and

[dpdk-dev] [PATCH v9 2/4] examples/flow_classify: flow classify sample application

2017-10-22 Thread Bernard Iremonger
The flow_classify sample application exercises the following librte_flow_classify API's: rte_flow_classifier_create rte_flow_classifier_query rte_flow_classify_table_create rte_flow_classify_table_entry_add rte_flow_classify_table_entry_delete It sets up the IPv4 ACL field definitions. It creates

[dpdk-dev] [PATCH v9 1/4] librte_flow_classify: add flow classify library

2017-10-22 Thread Bernard Iremonger
From: Ferruh Yigit The following APIs's are implemented in the librte_flow_classify library: rte_flow_classifier_create rte_flow_classifier_free rte_flow_classifier_query rte_flow_classify_table_create rte_flow_classify_table_entry_add rte_flow_classify_table_entry_delete The following librte_t

[dpdk-dev] [PATCH 4/4] doc: add switch restart support to fm10k guide

2017-10-22 Thread Xiao Wang
This patch documents how DPDK app should handle the event of switch quit-restart to resume its network without an app-level restart. Signed-off-by: Xiao Wang --- doc/guides/nics/fm10k.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/guides/nics/fm10k.rst b/doc/guides/nics/

[dpdk-dev] [PATCH 3/4] net/fm10k: support switch restart on VF

2017-10-22 Thread Xiao Wang
For events indicating a change in the state of the switch manager, the driver will restore the basic port configurations and then pass this event to application so that the application can restore any additional configurations if required. In this way, once the switch manager restarts, the DPDK app

[dpdk-dev] [PATCH 1/4] net/fm10k: redefine link status semantics

2017-10-22 Thread Xiao Wang
As fm10k host interface is not directly connected to PHY, marking the link status as UP doesn't mean a lot to the application. So, this patch basically redefines the link status as the state of switch manager: when switch manager is running, it's LINK_UP; when switch manager goes down by calling th

[dpdk-dev] [PATCH 2/4] net/fm10k: support switch restart on PF

2017-10-22 Thread Xiao Wang
For events indicating the change in the state of the switch manager. The driver will restore the basic port configurations and then pass this event to application so that the application can restore any additional configurations if required. In this way, once the switch manager restarts, the DPDK a

[dpdk-dev] [PATCH 0/4] net/fm10k: support switch restart

2017-10-22 Thread Xiao Wang
For fm10k multi host based design, DPDK app running in VM or host needs to get aware of the switch's state because switch may undergo a quit-restart. This patch series supports switch restart feature for DPDK app to be able to resume its packet processing without an app-level restart. Xiao Wang (4

Re: [dpdk-dev] [PATCH v2 1/6] examples/ipsec-secgw: fix initialization of aead crypto devices

2017-10-22 Thread Thomas Monjalon
22/10/2017 09:21, Aviad Yehezkel: > On 10/20/2017 12:50 PM, De Lara Guarch, Pablo wrote: > > From: avia...@dev.mellanox.co.il > >> From: Aviad Yehezkel > >> > >> Fixes: 501e9c226adf ("examples/ipsec-secgw: add AEAD parameters") > >> Cc: pablo.de.lara.gua...@intel.com > > > > You should CC stable

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell memory barrier

2017-10-22 Thread Sagi Grimberg
Configuring UAR as IO-mapped makes maximum throughput decline by noticeable amount. If UAR is configured as write-combining register, a write memory barrier is needed on ringing a doorbell. rte_wmb() is mostly effective when the size of a burst is comparatively small. Personally I don't think

[dpdk-dev] [PATCH v3 7/7] doc: update software event device

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula Update software event device documentation to include use of service cores for event distribution. Signed-off-by: Pavan Nikhilesh Acked-by: John McNamara --- doc/guides/eventdevs/sw.rst | 13 ++--- doc/guides/tools/testeventdev.rst | 8 +--- 2 files

[dpdk-dev] [PATCH v3 6/7] eventdev: remove eventdev schedule API

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula remove eventdev schedule api and enforce sw driver to use service core feature for event scheduling. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- drivers/event/dpaa2/dpaa2_eventdev.c | 1 - drivers/event/octeontx/ssovf_evdev.c | 1 - drivers/e

[dpdk-dev] [PATCH v3 3/7] app/test-eventdev: update app to use service cores

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula Use service cores for offloading event scheduling in case of centralized scheduling instead of calling the schedule api directly. This removes the dependency on dedicated scheduler core specified by giving command line option --slcore. Signed-off-by: Pavan Nikhilesh Acke

[dpdk-dev] [PATCH v3 5/7] examples/eventdev: update sample app to use service

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula Update the sample app eventdev_pipeline_sw_pmd to use service cores for event scheduling in case of sw eventdev. Signed-off-by: Pavan Nikhilesh --- examples/eventdev_pipeline_sw_pmd/main.c | 51 +--- 1 file changed, 33 insertions(+), 18 delet

[dpdk-dev] [PATCH v3 2/7] event/sw: extend service capability

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula Extend the service capability of the sw event device by exposing service id to the application. The application can use service id to configure service cores to run event scheduling. Signed-off-by: Pavan Nikhilesh Acked-by: Harry van Haaren --- drivers/event/sw/sw_evde

[dpdk-dev] [PATCH v3 4/7] test/eventdev: update test to use service core

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula Use service core for event scheduling instead of calling the event schedule api directly. Signed-off-by: Pavan Nikhilesh --- test/test/test_eventdev_sw.c | 120 --- 1 file changed, 67 insertions(+), 53 deletions(-) diff --git a/t

[dpdk-dev] [PATCH v3 1/7] eventdev: add API to get service id

2017-10-22 Thread Pavan Nikhilesh
From: Pavan Bhagavatula In case of sw event device the scheduling can be done on a service core using the service registered at the time of probe. This patch adds a helper function to get the service id that can be used by the application to assign a lcore for the service to run on. Signed-off-b

[dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell memory barrier

2017-10-22 Thread Yongseok Koh
Configuring UAR as IO-mapped makes maximum throughput decline by noticeable amount. If UAR is configured as write-combining register, a write memory barrier is needed on ringing a doorbell. rte_wmb() is mostly effective when the size of a burst is comparatively small. Fixes: 9f9bebae5530 ("net/mlx

Re: [dpdk-dev] [PATCH v2 1/6] examples/ipsec-secgw: fix initialization of aead crypto devices

2017-10-22 Thread Aviad Yehezkel
On 10/20/2017 12:50 PM, De Lara Guarch, Pablo wrote: -Original Message- From: avia...@dev.mellanox.co.il [mailto:avia...@dev.mellanox.co.il] Sent: Thursday, October 19, 2017 7:53 PM To: dev@dpdk.org; Gonzalez Monroy, Sergio ; De Lara Guarch, Pablo ; avia...@mellanox.com Cc: bor...@mell