[dpdk-dev] [dpdk-dev, v1, 5/5] doc: add event crypto adapter documentation

2018-04-03 Thread Abhinandan Gujjar
Add entries in the programmer's guide, API index, maintainer's file and release notes for the event crypto adapter. Signed-off-by: Abhinandan Gujjar --- MAINTAINERS| 7 + doc/api/doxy-api-index.md | 1 + doc/guides/prog_guide/event_cry

[dpdk-dev] [dpdk-dev, v1, 4/5] eventdev: add event crypto adapter to meson build system

2018-04-03 Thread Abhinandan Gujjar
Signed-off-by: Abhinandan Gujjar --- lib/librte_eventdev/meson.build | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/librte_eventdev/meson.build b/lib/librte_eventdev/meson.build index e1e22a5..d3d305a 100644 --- a/lib/librte_eventdev/meson.build +++ b/lib/librte_e

[dpdk-dev] [dpdk-dev, v1, 3/5] test: add event crypto adapter auto-test

2018-04-03 Thread Abhinandan Gujjar
Signed-off-by: Abhinandan Gujjar --- test/test/Makefile| 1 + test/test/test_event_crypto_adapter.c | 866 ++ 2 files changed, 867 insertions(+) create mode 100644 test/test/test_event_crypto_adapter.c diff --git a/test/test/Makefile b/test/

[dpdk-dev] [dpdk-dev, v1, 2/5] eventdev: add crypto adapter implementation

2018-04-03 Thread Abhinandan Gujjar
Signed-off-by: Abhinandan Gujjar Signed-off-by: Nikhil Rao Signed-off-by: Gage Eads --- config/common_base |1 + lib/Makefile |3 +- lib/librte_eventdev/Makefile |3 + lib/librte_eventdev/rte_event_crypt

[dpdk-dev] [dpdk-dev, v1, 1/5] eventdev: add caps API and PMD callbacks for crypto adapter

2018-04-03 Thread Abhinandan Gujjar
Signed-off-by: Abhinandan Gujjar --- lib/librte_eventdev/rte_eventdev.c | 25 + lib/librte_eventdev/rte_eventdev.h | 35 +++ lib/librte_eventdev/rte_eventdev_pmd.h | 176 + 3 files changed, 236 insertions(+) diff --git a/lib/librte_eventdev/rte_e

[dpdk-dev] [PATCH v5 2/3] Add Intel FPGA BUS Rawdev Driver

2018-04-03 Thread Rosen Xu
Signed-off-by: Rosen Xu Signed-off-by: Yanglong Wu --- config/common_base | 1 + drivers/raw/Makefile | 1 + drivers/raw/ifpga_rawdev/Makefile | 36 ++ drivers/raw/ifpga_rawdev/ifpga_rawdev.c| 592 ++

[dpdk-dev] [PATCH v5 0/3] Introduce Intel FPGA BUS

2018-04-03 Thread Rosen Xu
Intel FPGA BUS in DPDK - This patch set introduces Intel FPGA BUS support in DPDK. v5 updates: === - Fixed SHARED LIB Build issue - Changed command name to IFPGA Rawdev name, so remove pci library datastruct and function. - Fixed PATCH v2/v3/v4 comments v4

[dpdk-dev] [PATCH v5 1/3] Add Intel FPGA BUS Library

2018-04-03 Thread Rosen Xu
Signed-off-by: Rosen Xu --- config/common_base | 5 + drivers/bus/Makefile| 1 + drivers/bus/ifpga/Makefile | 32 ++ drivers/bus/ifpga/ifpga_bus.c | 504 drivers/bus/ifpga/ifpga_commo

Re: [dpdk-dev] [PATCH v4 2/2] eal/vfio: export internal vfio functions

2018-04-03 Thread Hemant Agrawal
> Hi Hemant, > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Hemant Agrawal > > Sent: Tuesday, April 3, 2018 7:10 PM > > To: dev@dpdk.org > > Cc: Burakov, Anatoly ; tho...@monjalon.net > > Subject: [dpdk-dev] [PATCH v4 2/2] eal/vfio: export internal vfio >

[dpdk-dev] [dpdk-dev, v1, 3/3] doc: update cryptodev documentation for set/get private data

2018-04-03 Thread Abhinandan Gujjar
Signed-off-by: Abhinandan Gujjar --- doc/guides/prog_guide/cryptodev_lib.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/guides/prog_guide/cryptodev_lib.rst b/doc/guides/prog_guide/cryptodev_lib.rst index 066fe2d..57b3f6e 100644 --- a/doc/guides/prog_guide

[dpdk-dev] [dpdk-dev, v1, 1/3] cryptodev: set private data for session-less mode

2018-04-03 Thread Abhinandan Gujjar
The application may want to store private data along with the rte_crypto_op that is transparent to the rte_cryptodev layer. For e.g., If an eventdev based application is submitting a crypto session-less operation and wants to indicate event information required to construct a new event that will be

[dpdk-dev] [dpdk-dev, v1, 2/3] cryptodev: add support to set session private data

2018-04-03 Thread Abhinandan Gujjar
The application may want to store private data along with the rte_cryptodev that is transparent to the rte_cryptodev layer. For e.g., If an eventdev based application is submitting a rte_cryptodev_sym_session operation and wants to indicate event information required to construct a new event that w

[dpdk-dev] [PATCH v4 4/4] doc: add ifcvf driver document and release note

2018-04-03 Thread Xiao Wang
Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- doc/guides/nics/features/ifcvf.ini | 8 doc/guides/nics/ifcvf.rst | 85 ++ doc/guides/nics/index.rst | 1 + doc/guides/rel_notes/release_18_05.rst | 9 4 files cha

[dpdk-dev] [PATCH v4 2/4] net/virtio: skip device probe in vdpa mode

2018-04-03 Thread Xiao Wang
If we want a virtio device to work in vDPA (vhost data path acceleration) mode, we could add a "vdpa=1" devarg for this device to specify the mode. This patch let virtio pmd skip device probe when detecting this parameter. Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin --- drivers/net/v

[dpdk-dev] [PATCH v4 3/4] net/ifcvf: add ifcvf vdpa driver

2018-04-03 Thread Xiao Wang
The IFCVF vDPA (vhost data path acceleration) driver provides support for the Intel FPGA 100G VF (IFCVF). IFCVF's datapath is virtio ring compatible, it works as a HW vhost backend which can send/receive packets to/from virtio directly by DMA. Different VF devices serve different virtio frontends

[dpdk-dev] [PATCH v4 1/4] eal/vfio: add multiple container support

2018-04-03 Thread Xiao Wang
Currently eal vfio framework binds vfio group fd to the default container fd during rte_vfio_setup_device, while in some cases, e.g. vDPA (vhost data path acceleration), we want to put vfio group to a separate container and program IOMMU via this container. This patch adds some APIs to support con

[dpdk-dev] [PATCH v4 0/4] add ifcvf vdpa driver

2018-04-03 Thread Xiao Wang
This patch set has dependency on http://dpdk.org/dev/patchwork/patch/36772/ (vhost: support selective datapath). IFCVF driver The IFCVF vDPA (vhost data path acceleration) driver provides support for the Intel FPGA 100G VF (IFCVF). IFCVF's datapath is virtio ring compatible, it works

Re: [dpdk-dev] [PATCH v4 1/1] net/virtio-user: add support for server mode

2018-04-03 Thread Tiwei Bie
On Tue, Apr 03, 2018 at 11:16:26PM +0800, Tan, Jianfeng wrote: > On 4/3/2018 8:20 PM, zhiyong.y...@intel.com wrote: [...] > > @@ -267,21 +270,27 @@ virtio_user_dev_setup(struct virtio_user_dev *dev) > > dev->vhostfds = NULL; > > dev->tapfds = NULL; > > Add a check here: > if (dev->is_serve

Re: [dpdk-dev] [PATCH V18 2/5] bus/pci: implement handle hot unplug operation

2018-04-03 Thread Tan, Jianfeng
> -Original Message- > From: Guo, Jia > Sent: Wednesday, April 4, 2018 2:17 AM > To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; > Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; > tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan, > Jianfeng > C

[dpdk-dev] [PATCH v3] net/i40e: add flow RSS queue index check

2018-04-03 Thread Wei Zhao
There need a queue index check for RSS queue region in order to aviod error from configuration. Fixes: ecad87d22383 ("net/i40e: move RSS to flow API") Signed-off-by: Wei Zhao Tested-by: Peng Yuan --- Changes in v2: move check code out from the big loop. change in v3: delete unnecessary da

[dpdk-dev] [PATCH v2] net/i40e: add flow RSS queue index check

2018-04-03 Thread Wei Zhao
There need a queue index check for RSS queue region in order to aviod error from configuration. Fixes: ecad87d22383 ("net/i40e: move RSS to flow API") Signed-off-by: Wei Zhao Tested-by: Peng Yuan --- Changes in v2: move check code out from the big loop. --- --- drivers/net/i40e/i40e_flow.c

Re: [dpdk-dev] [PATCH] net/i40e: add flow RSS queue index check

2018-04-03 Thread Zhao1, Wei
> -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, April 4, 2018 11:59 AM > To: Zhao1, Wei ; dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH] net/i40e: add flow RSS queue index check > > > > > -Original Message- > > From: Zhao1, Wei > > Sent: Wednesday, April 4, 20

Re: [dpdk-dev] [PATCH v4 2/2] octeontx: move mbox to common folder

2018-04-03 Thread santosh
On Wednesday 04 April 2018 08:59 AM, Jerin Jacob wrote: > -Original Message- >> Date: Mon, 2 Apr 2018 14:40:00 +0530 >> From: Pavan Nikhilesh >> To: jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com, >> tho...@monjalon.net, anatoly.bura...@intel.com, lir...@marvell.com,

Re: [dpdk-dev] [PATCH v4 1/2] drivers: add common folder

2018-04-03 Thread santosh
On Monday 02 April 2018 02:39 PM, Pavan Nikhilesh wrote: > Add driver/common folder and skeleton makefile for adding commonly used > functions across mempool, event and net devices. > > Signed-off-by: Pavan Nikhilesh > --- Acked-by: Santosh Shukla

Re: [dpdk-dev] [PATCH V18 1/5] bus: introduce device hot unplug handle

2018-04-03 Thread Tan, Jianfeng
> -Original Message- > From: Guo, Jia > Sent: Wednesday, April 4, 2018 2:17 AM > To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; > Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; > tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan, > Jianfeng > C

Re: [dpdk-dev] [PATCH] net/i40e: fix flow RSS queue region error

2018-04-03 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Tuesday, April 3, 2018 2:09 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Zhao1, Wei > Subject: [PATCH] net/i40e: fix flow RSS queue region error > > Queue region comparison error in configuration parameters. > > Fixes: ecad87d22383 ("net/i40

Re: [dpdk-dev] [PATCH] net/i40e: add flow RSS queue index check

2018-04-03 Thread Zhao1, Wei
Ok,I will add more comment in other independent patch > -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, April 4, 2018 11:59 AM > To: Zhao1, Wei ; dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH] net/i40e: add flow RSS queue index check > > > > > -Original Message-

Re: [dpdk-dev] [PATCH v3 4/6] drivers/bus: Add Intel FPGA Bus Lib Code

2018-04-03 Thread Xu, Rosen
Hi Gaetan, > -Original Message- > From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com] > Sent: Wednesday, March 28, 2018 21:52 > To: Xu, Rosen > Cc: dev@dpdk.org; Doherty, Declan ; > Richardson, Bruce ; shreyansh.j...@nxp.com; > Zhang, Tianfei ; Wu, Hao > Subject: Re: [PATCH v3 4/6] driver

Re: [dpdk-dev] [PATCH V18 1/4] eal: add device event handle in interrupt thread

2018-04-03 Thread Guo, Jia
On 4/4/2018 9:47 AM, Tan, Jianfeng wrote: -Original Message- From: Guo, Jia Sent: Tuesday, April 3, 2018 6:34 PM To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; tho...@monjalon.net; mo...@mellanox.com; Van Ha

Re: [dpdk-dev] [PATCH] net/i40e: add flow RSS queue index check

2018-04-03 Thread Zhang, Qi Z
> -Original Message- > From: Zhao1, Wei > Sent: Wednesday, April 4, 2018 11:19 AM > To: dev@dpdk.org; sta...@dpdk.org > Cc: Zhang, Qi Z ; Zhao1, Wei > Subject: [PATCH] net/i40e: add flow RSS queue index check > > There need a queue index check for RSS queue region in order to aviod erro

[dpdk-dev] [PATCH 2/3] net/cxgbe: add option to keep outer VLAN tag in Q-in-Q

2018-04-03 Thread Rahul Lakkireddy
From: Shagun Agrawal Add devargs option to keep outer VLAN tag in Q-in-Q packets. Signed-off-by: Shagun Agrawal Signed-off-by: Kumar Sanghvi Signed-off-by: Rahul Lakkireddy --- doc/guides/nics/cxgbe.rst| 16 drivers/net/cxgbe/base/t4_regs.h | 54 ++ d

[dpdk-dev] [PATCH 3/3] net/cxgbe: update to Rx/Tx offload API

2018-04-03 Thread Rahul Lakkireddy
From: Shagun Agrawal Update to new Rx/Tx offload API. Always set CRC stripping during configuration, since it can't be disabled. Signed-off-by: Shagun Agrawal Signed-off-by: Kumar Sanghvi Signed-off-by: Rahul Lakkireddy --- drivers/net/cxgbe/cxgbe_ethdev.c | 87 ++

[dpdk-dev] [PATCH 1/3] doc: add CXGBEVF PMD documentation

2018-04-03 Thread Rahul Lakkireddy
From: Kumar Sanghvi Add documentation on running DPDK on SR-IOV virtual functions for Chelsio NICs. Signed-off-by: Kumar Sanghvi Signed-off-by: Rahul Lakkireddy --- doc/guides/nics/cxgbe.rst| 127 ++- doc/guides/nics/features/cxgbevf.ini | 1 + 2

[dpdk-dev] [PATCH 0/3] cxgbe: Rx/Tx offload API, devargs, and doc updates

2018-04-03 Thread Rahul Lakkireddy
Patch 1 updates document for CXGBEVF PMD. Patch 2 adds runtime devargs option to CXGBE PMD to keep/strip outer vlan in Q-in-Q packets. Patch 3 updates CXGBE PMD to use the new Rx/TX Offload API. Thanks, Rahul Kumar Sanghvi (1): doc: add CXGBEVF PMD documentation Shagun Agrawal (2): net/cxg

Re: [dpdk-dev] [PATCH v4 1/1] net/virtio-user: add support for server mode

2018-04-03 Thread Tan, Jianfeng
> -Original Message- > From: Yang, Zhiyong > Sent: Wednesday, April 4, 2018 11:32 AM > To: Tan, Jianfeng; dev@dpdk.org > Cc: maxime.coque...@redhat.com; tho...@monjalon.net; Wang, Zhihong; > Bie, Tiwei > Subject: RE: [PATCH v4 1/1] net/virtio-user: add support for server mode > > Hi Jiaf

[dpdk-dev] [PATCH] net/i40e: add flow RSS queue index check

2018-04-03 Thread Wei Zhao
There need a queue index check for RSS queue region in order to aviod error from configuration. Fixes: ecad87d22383 ("net/i40e: move RSS to flow API") Signed-off-by: Wei Zhao Tested-by: Peng Yuan --- drivers/net/i40e/i40e_flow.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

Re: [dpdk-dev] [PATCH v4 1/1] net/virtio-user: add support for server mode

2018-04-03 Thread Yang, Zhiyong
Hi Jiafeng, Thanks for your review and comments firstly. Reply inline. > -Original Message- > From: Tan, Jianfeng > Sent: Tuesday, April 3, 2018 11:16 PM > To: Yang, Zhiyong ; dev@dpdk.org > Cc: maxime.coque...@redhat.com; tho...@monjalon.net; Wang, Zhihong > ; Bie, Tiwei > Subject: Re:

Re: [dpdk-dev] [PATCH v4 2/2] octeontx: move mbox to common folder

2018-04-03 Thread Jerin Jacob
-Original Message- > Date: Mon, 2 Apr 2018 14:40:00 +0530 > From: Pavan Nikhilesh > To: jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com, > tho...@monjalon.net, anatoly.bura...@intel.com, lir...@marvell.com, > bruce.richard...@intel.com, fiona.tr...@intel.com, shreyansh

Re: [dpdk-dev] [PATCH V18 4/4] app/testpmd: enable device hotplug monitoring

2018-04-03 Thread Tan, Jianfeng
> -Original Message- > From: Guo, Jia > Sent: Tuesday, April 3, 2018 6:34 PM > To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; > Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; > tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan, > Jianfeng > Cc:

Re: [dpdk-dev] [PATCH V18 3/4] eal/linux: uevent parse and process

2018-04-03 Thread Tan, Jianfeng
Hi Jeff, Looks much better now, but still have some issues to address. > -Original Message- > From: Guo, Jia > Sent: Tuesday, April 3, 2018 6:34 PM > To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; > Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; > tho...@mon

[dpdk-dev] Can't ping through specific IP on ixgbevf bond port

2018-04-03 Thread Sam
Hi all, I'm using OVS2.3.0-DPDK2.2 and ixgbevf-4.0.3 under CentOS-7-3.10.0-514 I bond 2 vf port into bond1. Now some IP can't ping through bond1, and bond1 also can't ping these IP. but at the same time, some IP ping bond1 OK. Is there someone got same problem as I said? Thank you~

Re: [dpdk-dev] [PATCH v4 1/2] drivers: add common folder

2018-04-03 Thread Jerin Jacob
-Original Message- > Date: Tue, 3 Apr 2018 12:27:53 +0530 > From: Hemant Agrawal > To: Pavan Nikhilesh , > jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com, > tho...@monjalon.net, anatoly.bura...@intel.com, lir...@marvell.com, > bruce.richard...@intel.com, fiona.tr...@i

Re: [dpdk-dev] [PATCH V18 3/5] eal: add failure handler mechanism for hot plug

2018-04-03 Thread Zhang, Qi Z
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jeff Guo > Sent: Wednesday, April 4, 2018 2:17 AM > To: step...@networkplumber.org; Richardson, Bruce > ; Yigit, Ferruh ; > Ananyev, Konstantin ; > gaetan.ri...@6wind.com; Wu, Jingjing ; > tho...@monjalon.net; mo.

Re: [dpdk-dev] [PATCH V18 2/4] eal: add device event monitor framework

2018-04-03 Thread Tan, Jianfeng
> -Original Message- > From: Guo, Jia > Sent: Tuesday, April 3, 2018 6:34 PM > To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; > Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; > tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan, > Jianfeng > Cc:

Re: [dpdk-dev] [PATCH v3 0/5] ixgbe: fix bugs or just improve.

2018-04-03 Thread Zhang, Qi Z
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tonghao Zhang > Sent: Thursday, March 8, 2018 6:57 PM > To: Xing, Beilei ; Dai, Wei ; Zhang, > Helin ; Lu, Wenzhuo > Cc: dev@dpdk.org; Tonghao Zhang > Subject: Re: [dpdk-dev] [PATCH v3 0/5] ixgbe: fix bugs or ju

Re: [dpdk-dev] [PATCH v10 0/9] eventtimer: introduce event timer adapter

2018-04-03 Thread Jerin Jacob
-Original Message- > Date: Tue, 3 Apr 2018 16:44:14 -0500 > From: Erik Gabriel Carrillo > To: pbhagavat...@caviumnetworks.com, jerin.ja...@caviumnetworks.com > CC: dev@dpdk.org, hemant.agra...@nxp.com > Subject: [PATCH v10 0/9] eventtimer: introduce event timer adapter > X-Mailer: git-sen

Re: [dpdk-dev] [PATCH 1/1] net/ixgbe: Add API to update SBP bit

2018-04-03 Thread Lu, Wenzhuo
Hi Shweta, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shweta Choudaha > Sent: Friday, February 23, 2018 7:59 PM > To: dev@dpdk.org > Cc: shweta.choud...@att.com > Subject: [dpdk-dev] [PATCH 1/1] net/ixgbe: Add API to update SBP bit > > From: Shweta Chouda

Re: [dpdk-dev] [PATCH v3 11/12] doc: update eventdev OcteonTx documentation

2018-04-03 Thread Carrillo, Erik G
> -Original Message- > From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com] > Sent: Tuesday, April 3, 2018 10:05 AM > To: jerin.ja...@caviumnetworks.com; > santosh.shu...@caviumnetworks.com; Carrillo, Erik G > > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3

Re: [dpdk-dev] [PATCH v2 1/1] net/ixgbe: Add access and locking APIs for MDIO

2018-04-03 Thread Lu, Wenzhuo
Hi Shweta, > -Original Message- > From: Shweta Choudaha [mailto:shweta.choud...@gmail.com] > Sent: Thursday, March 22, 2018 1:36 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Ananyev, Konstantin > ; Zhang, Helin ; > Yigit, Ferruh ; shweta.choud...@att.com > Subject: [PATCH v2 1/1] net/ixgbe: A

Re: [dpdk-dev] [PATCH v3 08/12] event/octeontx: add burst mode for timer arm

2018-04-03 Thread Carrillo, Erik G
> -Original Message- > From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com] > Sent: Tuesday, April 3, 2018 10:05 AM > To: jerin.ja...@caviumnetworks.com; > santosh.shu...@caviumnetworks.com; Carrillo, Erik G > > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3

[dpdk-dev] [PATCH v4] vhost: add support for interrupt mode

2018-04-03 Thread Junjie Chen
In some cases we want vhost dequeue work in interrupt mode to release cpus to others when no data to transmit. So we install interrupt handler of vhost device and interrupt vectors for each rx queue when creating new backend according to vhost intrerupt configuration. Thus, applications could regis

Re: [dpdk-dev] [PATCH v3 3/6] mk/rte.app.mk: Add Intel FPGA Bus Build Configuration Macro To App Script

2018-04-03 Thread Xu, Rosen
Hi Gaetan, > -Original Message- > From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com] > Sent: Wednesday, March 28, 2018 21:29 > To: Xu, Rosen > Cc: dev@dpdk.org; Doherty, Declan ; > Richardson, Bruce ; shreyansh.j...@nxp.com; > Zhang, Tianfei ; Wu, Hao > Subject: Re: [PATCH v3 3/6] mk/rte

Re: [dpdk-dev] [PATCH v3 2/6] config/common_base: Add Intel FPGA Build Configuration Macro

2018-04-03 Thread Xu, Rosen
Hi Gaetan, I have squash this patch with their relevant counterparts. For PATCH v4 and later version CONFIG_RTE_LIBRTE_IFPGA_BUS is squashed with ifpga_bus driver, And CONFIG_RTE_LIBRTE_IFPGA_RAWDEV is squashed with ifpga_rawdev driver. Is it ok? > -Original Message- > From: Gaëtan Rivet

Re: [dpdk-dev] [PATCH v3 1/6] Add Intel FPGA BUS Command Parse Code

2018-04-03 Thread Xu, Rosen
Hello Gaetan, Are my answers ok? If so, could you reply it? Many thanks to you. > -Original Message- > From: Xu, Rosen > Sent: Sunday, April 01, 2018 0:26 > To: gaetan.ri...@6wind.com > Cc: dev@dpdk.org; Doherty, Declan ; > Richardson, Bruce ; shreyansh.j...@nxp.com; > Zhang, Tianfei ; Wu

Re: [dpdk-dev] [PATCH v3 05/12] event/octeontx: add event timer stats get and reset

2018-04-03 Thread Carrillo, Erik G
> -Original Message- > From: Pavan Nikhilesh [mailto:pbhagavat...@caviumnetworks.com] > Sent: Tuesday, April 3, 2018 10:05 AM > To: jerin.ja...@caviumnetworks.com; > santosh.shu...@caviumnetworks.com; Carrillo, Erik G > > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3

Re: [dpdk-dev] [PATCH v3 0/6] Introduce Intel FPGA BUS

2018-04-03 Thread Xu, Rosen
Hi Gaetan, > -Original Message- > From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com] > Sent: Wednesday, March 28, 2018 21:18 > To: Xu, Rosen > Cc: dev@dpdk.org; Doherty, Declan ; > Richardson, Bruce ; shreyansh.j...@nxp.com; > Zhang, Tianfei ; Wu, Hao > Subject: Re: [PATCH v3 0/6] Introd

Re: [dpdk-dev] [PATCH v4 2/3] Add Intel FPGA BUS Rawdev Driver

2018-04-03 Thread Xu, Rosen
> -Original Message- > From: Shreyansh Jain [mailto:shreyansh.j...@nxp.com] > Sent: Tuesday, April 03, 2018 17:35 > To: Xu, Rosen > Cc: dev@dpdk.org; Doherty, Declan ; > Richardson, Bruce ; shreyansh.j...@nxp.com; > Yigit, Ferruh ; Ananyev, Konstantin > ; Zhang, Tianfei ; > Wu, Hao ; gae

Re: [dpdk-dev] [PATCH V18 1/4] eal: add device event handle in interrupt thread

2018-04-03 Thread Tan, Jianfeng
> -Original Message- > From: Guo, Jia > Sent: Tuesday, April 3, 2018 6:34 PM > To: step...@networkplumber.org; Richardson, Bruce; Yigit, Ferruh; > Ananyev, Konstantin; gaetan.ri...@6wind.com; Wu, Jingjing; > tho...@monjalon.net; mo...@mellanox.com; Van Haaren, Harry; Tan, > Jianfeng > Cc:

Re: [dpdk-dev] [PATCH v4 1/3] Add Intel FPGA BUS Lib Code

2018-04-03 Thread Xu, Rosen
Hello Shreyansh, > -Original Message- > From: Shreyansh Jain [mailto:shreyansh.j...@nxp.com] > Sent: Tuesday, April 03, 2018 17:25 > To: Xu, Rosen > Cc: dev@dpdk.org; Doherty, Declan ; > Richardson, Bruce ; Yigit, Ferruh > ; Ananyev, Konstantin > ; Zhang, Tianfei ; > Wu, Hao ; gaetan.ri..

Re: [dpdk-dev] [PATCH] net/i40e: fix flow RSS tci using error

2018-04-03 Thread Zhao1, Wei
> -Original Message- > From: Zhang, Qi Z > Sent: Tuesday, April 3, 2018 10:03 PM > To: Zhao1, Wei ; dev@dpdk.org > Subject: RE: [PATCH] net/i40e: fix flow RSS tci using error > > > > > -Original Message- > > From: Zhao1, Wei > > Sent: Tuesday, April 3, 2018 2:10 PM > > To: dev@

Re: [dpdk-dev] [PATCH] eventdev: fix incorrect MP/MC tail updates in rte_event_ring

2018-04-03 Thread Jerin Jacob
-Original Message- > Date: Tue, 3 Apr 2018 10:19:03 +0200 > From: Mattias Rönnblom > To: dev@dpdk.org > CC: jerin.ja...@caviumnetworks.com, Mattias Rönnblom > , bruce.richard...@intel.com > Subject: [PATCH] eventdev: fix incorrect MP/MC tail updates in > rte_event_ring > X-Mailer: git-se

Re: [dpdk-dev] [PATCH] ethdev: rename folder to library name

2018-04-03 Thread Jerin Jacob
-Original Message- > Date: Tue, 3 Apr 2018 10:28:59 +0100 > From: Ferruh Yigit > To: Thomas Monjalon , John McNamara > , Marko Kovacevic > CC: dev@dpdk.org, Ferruh Yigit , Bruce Richardson > > Subject: [dpdk-dev] [PATCH] ethdev: rename folder to library name > X-Mailer: git-send-email

Re: [dpdk-dev] Survey for final decision about per-port offload API

2018-04-03 Thread Yongseok Koh
> On Mar 30, 2018, at 6:47 AM, Thomas Monjalon wrote: > > There are some discussions about a specific part of the offload API: > "To enable per-port offload, the offload should be set on both > device configuration and queue setup." > > It means the application must repeat the port

Re: [dpdk-dev] [PATCH v2 1/6] mbuf: add buffer offset field for flexible indirection

2018-04-03 Thread Yongseok Koh
On Tue, Apr 03, 2018 at 10:26:15AM +0200, Olivier Matz wrote: > Hi, > > On Mon, Apr 02, 2018 at 11:50:03AM -0700, Yongseok Koh wrote: > > When attaching a mbuf, indirect mbuf has to point to start of buffer of > > direct mbuf. By adding buf_off field to rte_mbuf, this becomes more > > flexible. In

Re: [dpdk-dev] [PATCH v3 11/68] eal: enable reserving physically contiguous memzones

2018-04-03 Thread Stephen Hemminger
On Wed, 4 Apr 2018 00:21:23 +0100 Anatoly Burakov wrote: > This adds a new set of _contig API's to rte_memzone. For now, > hugepage memory is always contiguous, but we need to prepare the > drivers for the switch. > > Signed-off-by: Anatoly Burakov Why not make fragmentation an optional flag

Re: [dpdk-dev] [PATCH v3 03/68] eal: make malloc heap a doubly-linked list

2018-04-03 Thread Stephen Hemminger
On Wed, 4 Apr 2018 00:21:15 +0100 Anatoly Burakov wrote: > As we are preparing for dynamic memory allocation, we need to be > able to handle holes in our malloc heap, hence we're switching to > doubly linked list, and prepare infrastructure to support it. > > Since our heap is now aware where a

[dpdk-dev] [PATCH v3 53/68] eal: add "single file segments" command-line option

2018-04-03 Thread Anatoly Burakov
Currently, DPDK stores all pages as separate files in hugetlbfs. This option will allow storing all pages in one file (one file per memseg list). We do this by using fallocate() calls on FreeBSD, however this is only supported on fairly recent (4.3+) kernels, so ftruncate() fallback is provided to

[dpdk-dev] [PATCH v3 66/68] eal: add memory validator callback

2018-04-03 Thread Anatoly Burakov
This API will enable application to register for notifications on page allocations that are about to happen, giving the application a chance to allow or deny the allocation when total memory utilization as a result would be above specified limit on specified socket. Signed-off-by: Anatoly Burakov

[dpdk-dev] [PATCH v3 68/68] eal: prevent preallocated pages from being freed

2018-04-03 Thread Anatoly Burakov
It is common sense to expect for DPDK process to not deallocate any pages that were preallocated by "-m" or "--socket-mem" flags - yet, currently, DPDK memory subsystem will do exactly that once it finds that the pages are unused. Fix this by marking pages as unfreebale, and preventing malloc from

[dpdk-dev] [PATCH v3 61/68] eal: add support for multiprocess memory hotplug

2018-04-03 Thread Anatoly Burakov
This enables multiprocess synchronization for memory hotplug requests at runtime (as opposed to initialization). Basic workflow is the following. Primary process always does initial mapping and unmapping, and secondary processes always follow primary page map. Only one allocation request can be ac

[dpdk-dev] [PATCH v3 65/68] eal: enable non-legacy memory mode

2018-04-03 Thread Anatoly Burakov
Now that every other piece of the puzzle is in place, enable non-legacy init mode. Signed-off-by: Anatoly Burakov --- lib/librte_eal/linuxapp/eal/eal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index e7c6dcf..99c22

[dpdk-dev] [PATCH v3 49/68] eal: replace memseg with memseg lists

2018-04-03 Thread Anatoly Burakov
Before, we were aggregating multiple pages into one memseg, so the number of memsegs was small. Now, each page gets its own memseg, so the list of memsegs is huge. To accommodate the new memseg list size and to keep the under-the-hood workings sane, the memseg list is now not just a single list, bu

[dpdk-dev] [PATCH v3 57/68] eal: make use of memory hotplug for init

2018-04-03 Thread Anatoly Burakov
Add a new (non-legacy) memory init path for EAL. It uses the new memory hotplug facilities. If no -m or --socket-mem switches were specified, the new init will not allocate anything, whereas if those switches were passed, appropriate amounts of pages would be requested, just like for legacy init.

[dpdk-dev] [PATCH v3 67/68] eal: enable validation before new page allocation

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/malloc_heap.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/malloc_heap.c b/lib/librte_eal/common/malloc_heap.c index 18c7b69..f8daf84 100644 --- a/lib/librte_eal/common/malloc_heap.c +

[dpdk-dev] [PATCH v3 54/68] eal: add API to check if memory is contiguous

2018-04-03 Thread Anatoly Burakov
For now, memory is always contiguous because legacy mem mode is enabled unconditionally, but this function will be helpful down the line when we implement support for allocating physically non-contiguous memory. We can no longer guarantee physically contiguous memory unless we're in legacy or IOVA_

[dpdk-dev] [PATCH v3 64/68] vfio: enable support for mem event callbacks

2018-04-03 Thread Anatoly Burakov
Enable callbacks on first device attach, disable callbacks on last device attach. Signed-off-by: Anatoly Burakov --- Notes: v3: - Moved callbacks to attach/detach as opposed to init lib/librte_eal/linuxapp/eal/eal_vfio.c | 83 +++--- 1 file changed, 77 inser

[dpdk-dev] [PATCH v3 50/68] eal: replace memzone array with fbarray

2018-04-03 Thread Anatoly Burakov
It's there, so we might as well use it. Some operations will be sped up by that. Since we have to allocate an fbarray for memzones, we have to do it before we initialize memory subsystem, because that, in secondary processes, will (later) allocate more fbarrays than the primary process, which will

[dpdk-dev] [PATCH v3 60/68] eal: enable memory hotplug support in rte_malloc

2018-04-03 Thread Anatoly Burakov
This set of changes enables rte_malloc to allocate and free memory as needed. Currently, it is disabled because legacy mem mode is enabled unconditionally. The way it works is, first malloc checks if there is enough memory already allocated to satisfy user's request. If there isn't, we try and all

[dpdk-dev] [PATCH v3 62/68] eal: add support for callbacks on memory hotplug

2018-04-03 Thread Anatoly Burakov
Each process will have its own callbacks. Callbacks will indicate whether it's allocation and deallocation that's happened, and will also provide start VA address and length of allocated block. Since memory hotplug isn't supported on FreeBSD and in legacy mem mode, it will not be possible to regis

[dpdk-dev] [PATCH v3 63/68] eal: enable callbacks on malloc/free and mp sync

2018-04-03 Thread Anatoly Burakov
Callbacks will be triggered just after allocation and just before deallocation, to ensure that memory address space referenced in the callback is always valid by the time callback is called. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/malloc_heap.c| 21 +

[dpdk-dev] [PATCH v3 58/68] eal: share hugepage info primary and secondary

2018-04-03 Thread Anatoly Burakov
Since we are going to need to map hugepages in both primary and secondary processes, we need to know where we should look for hugetlbfs mountpoints. So, share those with secondary processes, and map them on init. Signed-off-by: Anatoly Burakov --- lib/librte_eal/bsdapp/eal/eal.c

[dpdk-dev] [PATCH v3 51/68] eal: add support for mapping hugepages at runtime

2018-04-03 Thread Anatoly Burakov
Nothing uses this code yet. The bulk of it is copied from old memory allocation code (linuxapp eal_memory.c). We provide an EAL-internal API to allocate either one page or multiple pages, guaranteeing that we'll get contiguous VA for all of the pages that we requested. Not supported on FreeBSD. L

[dpdk-dev] [PATCH v3 55/68] eal: prepare memseg lists for multiprocess sync

2018-04-03 Thread Anatoly Burakov
In preparation for implementing multiprocess support, we are adding a version number to memseg lists. We will not need any locks, because memory hotplug will have a global lock (so any time memory map and thus version number might change, we will already be holding a lock). There are two ways of i

[dpdk-dev] [PATCH v3 59/68] eal: add secondary process init with memory hotplug

2018-04-03 Thread Anatoly Burakov
Secondary initialization will just sync memory map with primary process. Signed-off-by: Anatoly Burakov --- Notes: v3: - Improved handling of EAL hugepage info lib/librte_eal/common/eal_common_memory.c | 1 + lib/librte_eal/linuxapp/eal/eal_memory.c | 18 +++--- 2 files c

[dpdk-dev] [PATCH v3 56/68] eal: read hugepage counts from node-specific sysfs path

2018-04-03 Thread Anatoly Burakov
For non-legacy memory init mode, instead of looking at generic sysfs path, look at sysfs paths pertaining to each NUMA node for hugepage counts. Note that per-NUMA node path does not provide information regarding reserved pages, so we might not get the best info from these paths, but this saves us

[dpdk-dev] [PATCH v3 48/68] eal: add rte_fbarray

2018-04-03 Thread Anatoly Burakov
rte_fbarray is a simple indexed array stored in shared memory via mapping files into memory. Rationale for its existence is the following: since we are going to map memory page-by-page, there could be quite a lot of memory segments to keep track of (for smaller page sizes, page count can easily rea

[dpdk-dev] [PATCH v3 45/68] eal: use memzone walk instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/eal_common_memzone.c | 42 +++--- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c index 36d2553..88f401f 100644

[dpdk-dev] [PATCH v3 32/68] vfio/type1: use memseg walk instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 45 -- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp/eal/eal_vfio.c index 2421d51..2a34ae9 100644 --- a/l

[dpdk-dev] [PATCH v3 52/68] eal: add support for unmapping pages at runtime

2018-04-03 Thread Anatoly Burakov
This isn't used anywhere yet, but the support is now there. Also, adding cleanup to allocation procedures, so that if we fail to allocate everything we asked for, we can free all of it back. Signed-off-by: Anatoly Burakov --- lib/librte_eal/bsdapp/eal/eal_memalloc.c | 15 +++ lib/librte_eal/c

[dpdk-dev] [PATCH v3 46/68] vfio: allow to map other memory regions

2018-04-03 Thread Anatoly Burakov
Currently it is not possible to use memory that is not owned by DPDK to perform DMA. This scenarion might be used in vhost applications (like SPDK) where guest send its own memory table. To fill this gap provide API to allow registering arbitrary address in VFIO container. Signed-off-by: Pawel Wod

[dpdk-dev] [PATCH v3 47/68] eal: add "legacy memory" option

2018-04-03 Thread Anatoly Burakov
This adds a "--legacy-mem" command-line switch. It will be used to go back to the old memory behavior, one where we can't dynamically allocate/free memory (the downside), but one where the user can get physically contiguous memory, like before (the upside). For now, nothing but the legacy behavior

[dpdk-dev] [PATCH v3 44/68] crypto/dpaa_sec: use virt2memseg instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/crypto/dpaa_sec/dpaa_sec.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index b04510f..a14e669 100644 --- a/drivers/crypto/dpaa_sec/dpaa_

[dpdk-dev] [PATCH v3 41/68] bus/fslmc: use virt2memseg instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index d38fc49..45fd41e 100644 --- a/drivers/bus/fslmc/p

[dpdk-dev] [PATCH v3 43/68] net/mlx5: use virt2memseg instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/net/mlx5/mlx5_mr.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c index 2bf1f9c..d8c04dc 100644 --- a/drivers/net/mlx5/mlx5_mr.c +++ b/drivers/net/mlx5/mlx5_

[dpdk-dev] [PATCH v3 31/68] test: use memseg walk instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- test/test/test_malloc.c | 40 +++- test/test/test_memory.c | 23 +++-- test/test/test_memzone.c | 53 3 files changed, 74 insertions(+), 42 deletions(-) diff --gi

[dpdk-dev] [PATCH v3 42/68] net/mlx4: use virt2memseg instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/net/mlx4/mlx4_mr.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/net/mlx4/mlx4_mr.c b/drivers/net/mlx4/mlx4_mr.c index 9a1e4de..47dd542 100644 --- a/drivers/net/mlx4/mlx4_mr.c +++ b/drivers/net/mlx4/mlx4_m

[dpdk-dev] [PATCH v3 37/68] bus/dpaa: use iova2virt instead of memseg iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/bus/dpaa/rte_dpaa_bus.h | 12 +--- drivers/event/dpaa/Makefile | 3 +++ drivers/mempool/dpaa/Makefile | 3 +++ drivers/net/dpaa/Makefile | 3 +++ 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/bus/dpaa/rte

[dpdk-dev] [PATCH v3 39/68] crypto/dpaa_sec: use iova2virt instead of memseg iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/crypto/dpaa_sec/dpaa_sec.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index c5191ce..b04510f 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++

[dpdk-dev] [PATCH v3 40/68] eal: add virt2memseg function

2018-04-03 Thread Anatoly Burakov
This can be used as a virt2iova function that only looks up memory that is owned by DPDK (as opposed to doing pagemap walks). Using this will result in less dependency on internals of mem API. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/eal_common_memory.c | 37

[dpdk-dev] [PATCH v3 28/68] net/mlx5: use memseg walk instead of iteration

2018-04-03 Thread Anatoly Burakov
Signed-off-by: Anatoly Burakov --- drivers/net/mlx5/Makefile | 3 +++ drivers/net/mlx5/mlx5.c | 24 +++- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index afda411..25c8e10 100644 --- a/drivers/net/mlx

  1   2   3   4   >