[dpdk-dev] [PATCH v9 04/11] crypto/virtio: support session related ops

2018-04-15 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang A

[dpdk-dev] [PATCH v9 07/11] crypto/virtio: support AES-CBC

2018-04-15 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed, 41

[dpdk-dev] [PATCH v9 03/11] crypto/virtio: support basic PMD ops

2018-04-15 Thread Jay Zhou
This patch implements the basic operations of virtio crypto PMD, which includes start, stop, close, information getting, queue setup and release of the device. The virtio crypto device has two types of queues, data queue and control queue. It has one data queue at least and has one and only one con

[dpdk-dev] [PATCH v9 00/11] crypto: add virtio poll mode driver

2018-04-15 Thread Jay Zhou
This patch series introduce virtio crypto poll mode driver. Since it is limited by the vhost crypto backend of the virtio-crypto, this patch series only supports a limited subset of crypto services. Only the following algorithms are tested: Cipher algorithms: - RTE_CRYPTO_CIPHER_AES_CBC (128-bi

[dpdk-dev] [PATCH v9 09/11] crypto/virtio: build with meson

2018-04-15 Thread Jay Zhou
Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/meson.build| 2 +- drivers/crypto/virtio/meson.build | 12 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/virtio/meson.build diff --git a/drivers/cry

[dpdk-dev] [PATCH v9 08/11] crypto/virtio: support HMAC-SHA1

2018-04-15 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions(

[dpdk-dev] [PATCH v9 11/11] doc: add virtio crypto PMD guide

2018-04-15 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryp

[dpdk-dev] [PATCH v9 02/11] crypto/virtio: support virtio device init

2018-04-15 Thread Jay Zhou
This patch implements the initialization of the virtio crypto device. The virtio crypto device conforms to virtio-1.0, so this patch only supports modern mode operation. The cryptodev is created at the virtio crypto pci device probing stage. The function of virtio_crypto_pkt_tx_burst() is used to b

[dpdk-dev] [PATCH v9 06/11] crypto/virtio: support stats related ops

2018-04-15 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio/virti

[dpdk-dev] [PATCH v9 01/11] crypto/virtio: add virtio crypto PMD

2018-04-15 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by:

[dpdk-dev] [PATCH v9 05/11] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-15 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zh

[dpdk-dev] [PATCH v9 10/11] test/crypto: add function tests for virtio crypto PMD

2018-04-15 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

Re: [dpdk-dev] [PATCH v2] ethdev: check Rx/Tx offloads

2018-04-15 Thread Thomas Monjalon
13/04/2018 19:31, Ferruh Yigit: > On 3/28/2018 9:57 AM, Wei Dai wrote: > > This patch check if a requested offloading > > is supported in the device capability. > > A per port offloading feature should be enabled or > > disabled at same time in both rte_eth_dev_configure( ) > > and rte_eth_rx_queue

Re: [dpdk-dev] [PATCH v9 09/11] crypto/virtio: build with meson

2018-04-15 Thread De Lara Guarch, Pablo
Hi Jay, > -Original Message- > From: Jay Zhou [mailto:jianjay.z...@huawei.com] > Sent: Sunday, April 15, 2018 9:51 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Zhang, Roy Fan > ; tho...@monjalon.net; > arei.gong...@huawei.com; Zeng, Xin ; > weidong.hu...@huawei.com; wangxinxin.w...@

Re: [dpdk-dev] [PATCH v3] bus/fslmc: use PRIu64 instead of llX in format specifier

2018-04-15 Thread Thomas Monjalon
13/04/2018 14:44, Hemant Agrawal: > > On 4/13/2018 4:52 PM, Gowrishankar wrote: > > From: Gowrishankar Muthukrishnan > > > > Instead of llX, use C99 standard "PRIu64" in format specifier. Former one > > breaks compile in ppc64le. > > > > Fixes: c2c167fdb3 ("bus/fslmc: support memory event callb

Re: [dpdk-dev] [PATCH] eal/ppc: fix secondary process to map hugepages in correct order

2018-04-15 Thread Thomas Monjalon
16/02/2017 08:22, Chao Zhu: > Thomas, > > We have several different internal fixes and didn't get a conclusion. Let me > summarize them and give a final patch sets. > Thanks for your reminder! This patch is now classified as rejected.

Re: [dpdk-dev] [PATCH v2] ip_frag: fix double free of chained mbufs

2018-04-15 Thread Thomas Monjalon
> > The first mbuf and the last mbuf to be visited in the preceding loop > > are not set to NULL in the fragmentation table. This creates the > > possibility of a double free when the fragmentation table is later freed > > with rte_ip_frag_table_destroy(). > > > > Fixes: 95908f52393d ("ip_frag: f

Re: [dpdk-dev] [PATCH] lib/librte_hash: fix incorrect comment for lookup

2018-04-15 Thread Thomas Monjalon
> > rte_hash_lookup_with_hash() has wrong comment for its 'sig' param. > > > > Fixes: 1a9f648be291 ("hash: fix for multi-process apps") > > > > Signed-off-by: Shreyansh Jain > > Acked-by: Pablo de Lara > > Also, this should be backported to the stable branch, so I CC sta...@dpdk.org. Applied

Re: [dpdk-dev] [PATCH v2] doc: reduce initial offload API scope to drivers

2018-04-15 Thread Thomas Monjalon
15/04/2018 07:28, Shahaf Shuler: > Saturday, April 14, 2018 12:21 AM, Ferruh Yigit: > > Subject: [PATCH v2] doc: reduce initial offload API scope to drivers > > > > Do ethdev new offloading API switch in two steps. > > > > In v18.05 target is implementing the new ethdev-PMD offload interface, > >

Re: [dpdk-dev] [PATCH v4] net/ixgbe: add access and locking APIs for MDIO

2018-04-15 Thread Zhang, Qi Z
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shweta Choudaha > Sent: Saturday, April 14, 2018 12:35 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Ananyev, Konstantin > ; Zhang, Helin ; > Yigit, Ferruh ; shweta.choud...@att.com > Subject: [dpdk-dev] [PATCH v4] ne

Re: [dpdk-dev] [PATCH 1/3] net/szedata2: do not affect Ethernet interfaces

2018-04-15 Thread Yasufumi Ogawa
On 2018/04/12 16:38, Matej Vido wrote: On 11.04.2018 12:51, Ferruh Yigit wrote: On 4/11/2018 10:36 AM, Matej Vido wrote: On 10.04.2018 17:28, Ferruh Yigit wrote: On 4/6/2018 3:12 PM, Matej Vido wrote: NFB cards employ multiple Ethernet ports. Until now, Ethernet port-related operations were p

Re: [dpdk-dev] [PATCH v7 7/8] examples/vhost_crypto: add vhost crypto sample application

2018-04-15 Thread Thomas Monjalon
Hi, 05/04/2018 18:01, Fan Zhang: > This patch adds vhost_crypto sample application to DPDK. > > Signed-off-by: Fan Zhang > --- > examples/vhost_crypto/Makefile| 32 +++ > examples/vhost_crypto/main.c | 541 > ++ > examples/vhost_crypto/meson.build

[dpdk-dev] [PATCH v7] vfio: change to use generic multi-process channel

2018-04-15 Thread Jianfeng Tan
Previously, vfio uses its own private channel for the secondary process to get container fd and group fd from the primary process. This patch changes to use the generic mp channel. Test: 1. Bind two NICs to vfio-pci. 2. Start the primary and secondary process. $ (symmetric_mp) -c 2 -- -p

[dpdk-dev] [PATCH v7 01/22] kvargs: build before EAL

2018-04-15 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/Makefile | 3 +-- lib/librte_eal/common/Makefile| 2 +- lib/librte_kvargs/Makefile| 3 ++- lib/librte_kvargs/rte_kvargs.c

[dpdk-dev] [PATCH v7 00/22] Device querying

2018-04-15 Thread Gaetan Rivet
This patchset introduces a new EAL API for querying devices, filtered by arbitrary properties. The following elements are introduced to this end: * A new object, "rte_class", is used to describe the device class abstraction layer (eth, crypto, ...). * Both rte_bus and rte_class now offer a

[dpdk-dev] [PATCH v7 02/22] eal: list acceptable init priorities

2018-04-15 Thread Gaetan Rivet
Build a central list to quickly see each used priorities for constructors, allowing to verify that they are both above 100 and in the proper order. Signed-off-by: Gaetan Rivet Acked-by: Neil Horman Acked-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_log.c | 2 +- lib/librte_eal/c

[dpdk-dev] [PATCH v7 03/22] eal: add last init priority

2018-04-15 Thread Gaetan Rivet
Add the priority RTE_PRIORITY_LAST, used for initialization routines meant to be run after all other constructors. This priority becomes the default priority for all DPDK constructors. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_common.h | 23 --- 1 fil

[dpdk-dev] [PATCH v7 04/22] eal: introduce dtor macros

2018-04-15 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 69e5ed1e3..d48e0ec56 100644 --- a/lib/librte_eal/c

[dpdk-dev] [PATCH v7 05/22] eal: introduce device class abstraction

2018-04-15 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 v7 07/22] eal/dev: add device iterator interface

2018-04-15 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 v7 06/22] eal/class: register destructor

2018-04-15 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 v7 08/22] eal/class: add device iteration

2018-04-15 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 v7 12/22] kvargs: add generic string matching callback

2018-04-15 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/Makefile | 1 + lib/librte_kvargs/rte_kvargs.c | 10 ++ lib/librte_kvargs/rte_kvargs.h | 28 ++

[dpdk-dev] [PATCH v7 10/22] eal/dev: implement device iteration initialization

2018-04-15 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 v7 11/22] eal/dev: implement device iteration

2018-04-15 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 v7 09/22] eal/bus: add device iteration

2018-04-15 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 v7 13/22] bus/pci: fix find device implementation

2018-04-15 Thread Gaetan Rivet
If start is set, and a device before it matches the data passed for comparison, then this first device is returned. This induces potentially infinite loops. Fixes: c7fe1eea8a74 ("bus: simplify finding starting point") Cc: sta...@dpdk.org Signed-off-by: Gaetan Rivet --- drivers/bus/pci/pci_comm

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

2018-04-15 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/bus/pci/Makefile | 2 +- drivers/bus/pci/pci_common.c | 42 ++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/drivers/bus/pci/Makefile b/drivers/bus/pci/Makefile index 804a198d1..bbda567c1 100644

[dpdk-dev] [PATCH v7 16/22] bus/vdev: fix find device implementation

2018-04-15 Thread Gaetan Rivet
If start is set and a device before it matches the data, this device is returned. This induces potentially infinite loops. Fixes: c7fe1eea8a74 ("bus: simplify finding starting point") Cc: sta...@dpdk.org Signed-off-by: Gaetan Rivet --- drivers/bus/vdev/rte_bus_vdev.h | 3 +++ drivers/bus/vdev

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

2018-04-15 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_common.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v7 17/22] bus/vdev: implement device iteration

2018-04-15 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/bus/vdev/Makefile | 2 +- drivers/bus/vdev/vdev.c | 42 ++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vdev/Makefile b/drivers/bus/vdev/Makefile index 24d424a38..52728833c 100644 ---

[dpdk-dev] [PATCH v7 20/22] ethdev: register ether layer as a class

2018-04-15 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/Makefile | 2 +- lib/librte_ether/Makefile| 3 +- lib/librte_ether/rte_class_eth.c | 79 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 lib/librte_ether/rte_class_eth.

[dpdk-dev] [PATCH v7 18/22] bus/vdev: add device matching field driver

2018-04-15 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/Makefile | 1 + drivers/bus/vdev/vdev.c | 14 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH v7 19/22] ethdev: add private generic device iterator

2018-04-15 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_ether. Signed-off-by: Gaetan Rivet --- lib/librte_ether/Makefile

[dpdk-dev] [PATCH v7 21/22] ethdev: add device matching field name

2018-04-15 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_ether/rte_class_eth.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_ether/rte_class_eth.c b/lib/librte_ethe

Re: [dpdk-dev] [PATCH v7] vfio: change to use generic multi-process channel

2018-04-15 Thread Tan, Jianfeng
Sorry, forget the version change log. FYI: v6->v7: - Rebase on master. v5->v6: (Address comments from Anatoly) - Naming, return checking, logging. - Move vfio action register after rte_bus_probe(). On 4/15/2018 11:06 PM, Jianfeng Tan wrote: Previously, vfio uses its own private channel f

[dpdk-dev] [PATCH v7 22/22] app/testpmd: add show device command

2018-04-15 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

Re: [dpdk-dev] [PATCH v5 02/21] eal: list acceptable init priorities

2018-04-15 Thread Gaëtan Rivet
Hello Neil, On Sat, Apr 14, 2018 at 02:45:45PM -0400, Neil Horman wrote: > On Fri, Apr 13, 2018 at 02:55:11PM +0200, Gaëtan Rivet wrote: > > Hi Shreyansh, > > > > On Fri, Apr 13, 2018 at 06:22:43PM +0530, Shreyansh Jain wrote: > > > On Friday 13 April 2018 05:12 PM, Neil Horman wrote: > > > > On

[dpdk-dev] [PATCH v7 0/5] add ifcvf vdpa driver

2018-04-15 Thread Xiao Wang
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 as a HW vhost backend which can send/receive packets to/from virtio directly by DMA. Besides, it supports dirty pa

[dpdk-dev] [PATCH v7 1/5] vfio: extend data structure for multi container

2018-04-15 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 extends the vfio_config struc

[dpdk-dev] [PATCH v7 2/5] vfio: add multi container support

2018-04-15 Thread Xiao Wang
This patch adds APIs to support container create/destroy and device bind/unbind with a container. It also provides API for IOMMU programing on a specified container. A driver could use "rte_vfio_create_container" helper to create a new container from eal, use "rte_vfio_bind_group" to bind a device

[dpdk-dev] [PATCH v7 3/5] net/virtio: skip device probe in vdpa mode

2018-04-15 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 Reviewed-by: Ferru

[dpdk-dev] [PATCH v7 4/5] net/ifcvf: add ifcvf vdpa driver

2018-04-15 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 v7 5/5] doc: add ifcvf driver document and release note

2018-04-15 Thread Xiao Wang
Signed-off-by: Xiao Wang Reviewed-by: Maxime Coquelin Reviewed-by: Ferruh Yigit --- doc/guides/nics/features/ifcvf.ini | 8 +++ doc/guides/nics/ifcvf.rst | 98 ++ doc/guides/nics/index.rst | 1 + doc/guides/rel_notes/release_18_05.

Re: [dpdk-dev] [PATCH v7 7/8] examples/vhost_crypto: add vhost crypto sample application

2018-04-15 Thread Thomas Monjalon
15/04/2018 16:34, Thomas Monjalon: > Hi, > > 05/04/2018 18:01, Fan Zhang: > > This patch adds vhost_crypto sample application to DPDK. > > > > Signed-off-by: Fan Zhang > > --- > > examples/vhost_crypto/Makefile| 32 +++ > > examples/vhost_crypto/main.c | 541 > > +

Re: [dpdk-dev] [PATCH v5 2/5] vhost: support selective datapath

2018-04-15 Thread Thomas Monjalon
03/04/2018 10:02, Maxime Coquelin: > On 04/02/2018 01:46 PM, Zhihong Wang wrote: > > lib/librte_vhost/Makefile | 4 +- > > lib/librte_vhost/rte_vdpa.h| 87 + > > lib/librte_vhost/rte_vhost_version.map | 7 ++ > > lib/librte_vhost/vdpa.c

Re: [dpdk-dev] Mellanox 100GbE MCX516A-CCAT

2018-04-15 Thread Olga Shern
Hi Yasuhiro, Please contact Mellanox support and open a case , supp...@mellanox.com Best Regards, Olga --- Olga Shern SW Sr. Director DPDK Mellanox Technologies, Raanana, Israel -Original Message- From: dev [mailto:dev-boun...@dp

Re: [dpdk-dev] [pull-request] next-net 18.05 PRE2-RC1

2018-04-15 Thread Thomas Monjalon
14/04/2018 01:06, Ferruh Yigit: > http://dpdk.org/git/next/dpdk-next-net Pulled with few fixes notified in related threads.

Re: [dpdk-dev] [PATCH v9 09/11] crypto/virtio: build with meson

2018-04-15 Thread Zhoujian (jay)
Hi Pablo, > -Original Message- > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.gua...@intel.com] > Sent: Sunday, April 15, 2018 8:09 PM > To: Zhoujian (jay) ; dev@dpdk.org > Cc: Zhang, Roy Fan ; tho...@monjalon.net; Gonglei > (Arei) ; Zeng, Xin ; > Huangweidong (C) ; wangxin (U) > ; lo

[dpdk-dev] [PATCH v10 06/10] crypto/virtio: support stats related ops

2018-04-15 Thread Jay Zhou
This patch implements the statistics of the packets. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_cryptodev.c | 66 +++- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio/virti

[dpdk-dev] [PATCH v10 04/10] crypto/virtio: support session related ops

2018-04-15 Thread Jay Zhou
This patch implements session related operations, which includes creating and destroying the session. For now, it only supports the session-oriented API implementation. The control queue used to create or destroy sessions for symmetric algorithms. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang A

[dpdk-dev] [PATCH v10 01/10] crypto/virtio: add virtio crypto PMD

2018-04-15 Thread Jay Zhou
The virtio crypto device is a virtual cryptography device as well as a kind of virtual hardware accelerator for virtual machines. The linux kernel virtio-crypto driver has been merged, and this patch introduces virtio crypto PMD to achieve better performance. Signed-off-by: Jay Zhou Reviewed-by:

[dpdk-dev] [PATCH v10 03/10] crypto/virtio: support basic PMD ops

2018-04-15 Thread Jay Zhou
This patch implements the basic operations of virtio crypto PMD, which includes start, stop, close, information getting, queue setup and release of the device. The virtio crypto device has two types of queues, data queue and control queue. It has one data queue at least and has one and only one con

[dpdk-dev] [PATCH v10 00/10] crypto: add virtio poll mode driver

2018-04-15 Thread Jay Zhou
This patch series introduce virtio crypto poll mode driver. Since it is limited by the vhost crypto backend of the virtio-crypto, this patch series only supports a limited subset of crypto services. Only the following algorithms are tested: Cipher algorithms: - RTE_CRYPTO_CIPHER_AES_CBC (128-bi

[dpdk-dev] [PATCH v10 02/10] crypto/virtio: support virtio device init

2018-04-15 Thread Jay Zhou
This patch implements the initialization of the virtio crypto device. The virtio crypto device conforms to virtio-1.0, so this patch only supports modern mode operation. The cryptodev is created at the virtio crypto pci device probing stage. The function of virtio_crypto_pkt_tx_burst() is used to b

[dpdk-dev] [PATCH v10 07/10] crypto/virtio: support AES-CBC

2018-04-15 Thread Jay Zhou
The AES-CBC cipher only algorithm has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 30 ++ drivers/crypto/virtio/virtio_cryptodev.c | 11 2 files changed, 41

[dpdk-dev] [PATCH v10 08/10] crypto/virtio: support HMAC-SHA1

2018-04-15 Thread Jay Zhou
The AES-CBC with HMAC-SHA1 has been supported now. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- drivers/crypto/virtio/virtio_crypto_capabilities.h | 21 + drivers/crypto/virtio/virtio_cryptodev.c | 4 +++- 2 files changed, 24 insertions(

[dpdk-dev] [PATCH v10 10/10] doc: add virtio crypto PMD guide

2018-04-15 Thread Jay Zhou
This patch adds the guide for virtio crypto PMD. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- MAINTAINERS | 2 + doc/guides/cryptodevs/features/virtio.ini | 26 +++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryp

[dpdk-dev] [PATCH v10 05/10] crypto/virtio: support crypto enqueue/dequeue burst API

2018-04-15 Thread Jay Zhou
This patch implements the functions of virtio_crypto_pkt_tx_burst() and virtio_crypto_pkt_rx_burst(). The encryption and decryption requests are placed in the data queue and are ultimately handled by the backend crypto accelerators. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zh

[dpdk-dev] [PATCH v10 09/10] test/crypto: add function tests for virtio crypto PMD

2018-04-15 Thread Jay Zhou
Only RTE_CRYPTO_CIPHER_AES_CBC cipher algorithm are tested as unit test, it is supported both by the cryptodev-backend-builtin and cryptodev-vhost-user of qemu side. Signed-off-by: Jay Zhou Reviewed-by: Fan Zhang Acked-by: Fan Zhang --- test/test/test_cryptodev.c | 48

Re: [dpdk-dev] [PATCH v2] ethdev: check Rx/Tx offloads

2018-04-15 Thread Dai, Wei
Thanks, Thomas and Ferruh I think I can implement v3 for this. > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Sunday, April 15, 2018 6:37 PM > To: Yigit, Ferruh ; Dai, Wei > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] ethdev: check Rx/Tx offloa

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

2018-04-15 Thread Zhang, Helin
> -Original Message- > From: Zhang, Qi Z > Sent: Thursday, April 12, 2018 1:22 PM > To: Tonghao Zhang; Xing, Beilei; Dai, Wei; Zhang, Helin; Lu, Wenzhuo > Cc: dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v3 0/5] ixgbe: fix bugs or just improve. > > On Mon, Feb 5, 2018 at 8:51 AM, wrot

[dpdk-dev] Changes between two releases (16.11 with 17.11)

2018-04-15 Thread Thanneeru Srinivasulu
Hi all, Is there way to check change log specific to dpdk core, between two releases? Say, how can I check for changes from 16.11 to 17.11 specific to dpdk. (excluding device specific changes). -- Regards, Srinivas

[dpdk-dev] [PATCH v3 0/4] rte_flow extension for vSwitch acceleration

2018-04-15 Thread Qi Zhang
v3: - remove patch for port action and enhanced statistic query. - reworked IPv6 ND related pattern base on Adrien's suggestion. - remove generic increament/decrement/copy action - rework packet modification action(RTE_FLOW_ACTION_TYPE_FIELD_SET). - Add OpenFlow friendly TTL change actions. - Add O

[dpdk-dev] [PATCH v3 2/4] ethdev: add packet field set aciton in flow API

2018-04-15 Thread Qi Zhang
Add new action RTE_FLOW_ACTION_TYPE_FIELD_SET, it is used to modify fields of specific protocol layer of the packet, for packet that does not include the specific protocal layer, the action is skipped. Signed-off-by: Qi Zhang --- doc/guides/prog_guide/rte_flow.rst | 30 ++

[dpdk-dev] [PATCH v3 1/4] ethdev: add more protocol support in flow API

2018-04-15 Thread Qi Zhang
Add new protocol header match support as below RTE_FLOW_ITEM_TYPE_ARP_IPV4 - matches an IPv4 ARP header RTE_FLOW_ITEM_TYPE_IPV6_EXT - matches an IPv6 extension header with any type. RTE_FLOW_ITEM_TYPE_ICMP6 - matches an ICMPv6 header followed by any message body. RTE_FLOW_I

[dpdk-dev] [PATCH v3 3/4] ethdev: add TTL change actions in flow API

2018-04-15 Thread Qi Zhang
Add couple OpenFlow frienldy TTL change actions. RTE_FLOW_ACTION_MLPS_TTL_DEC - decrement MPLS TTL. RTE_FLOW_ACTION_IP_TTL_DEC - decrement IP TTL. RTE_FLOW_ACTION_TTL_COPY_OUT - copy TTL outwards. RTE_FLOW_ACTION_TTL_COPY_IN - copy TTL inwards. Signed-off-by: Qi Zhang --- app/test-pmd/cmdline_f

[dpdk-dev] [PATCH v3 4/4] ethdev: add VLAN and MPLS pop push action in flow API

2018-04-15 Thread Qi Zhang
Add couple Openflow frienldy VLAN/MPLS push/pop actions. RTE_FLOW_ACTION_VLAN_POP - pop a VLAN header. RTE_FLOW_ACTION_VLAN_PUSH - push a VLAN header. RTE_FLOW_ACTION_MPLS_POP - pop a MPLS header. RTE_FLOW_ACTION_MPLS_PUSH - push a MPLS header. Signed-off-by: Qi Zhang --- app/test-pmd/cmdline_f

Re: [dpdk-dev] [PATCH v3 3/4] ethdev: add TTL change actions in flow API

2018-04-15 Thread Shahaf Shuler
Hi Qi, Am wondering if we can make the below more generic and not tailored for specific use cases. Monday, April 16, 2018 8:17 AM, Qi Zhang: > Subject: [dpdk-dev] [PATCH v3 3/4] ethdev: add TTL change actions in flow > API > > Add couple OpenFlow frienldy TTL change actions. > > RTE_FLOW_ACTI

Re: [dpdk-dev] [PATCH] eal: fix compilation without VFIO

2018-04-15 Thread Shahaf Shuler
Friday, April 13, 2018 4:59 PM, Thomas Monjalon: > > > > OK. Shahaf, will you submit a v2 with this, or should i do it? I think > > it should be just a matter of #ifndef VFIO_PRESENT //define > > vfio_device_info struct #endif - this should take care of the problem > > of hiding the function defini

[dpdk-dev] [PATCH] ethdev: remove new to old offloads API helpers

2018-04-15 Thread Shahaf Shuler
According to commit 315ee8374e0e ("doc: reduce initial offload API rework scope to drivers") All PMDs should have moved to the new offloads API. Therefore it is safe to remove the new->old convert helps. The old->new helpers will remain to support application which still use

[dpdk-dev] [PATCH] crypto/mrvl: add MRVL PMD to meson

2018-04-15 Thread Tomasz Duszynski
Add MRVL CRYPTO PMD to meson build system. Signed-off-by: Tomasz Duszynski --- drivers/crypto/meson.build | 2 +- drivers/crypto/mrvl/meson.build | 21 + 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/mrvl/meson.build diff --git a/d

[dpdk-dev] [PATCH v3 0/4] rte_flow extension for vSwitch acceleration

2018-04-15 Thread Qi Zhang
v3: - remove patch for port action and enhanced statistic query. - reworked IPv6 ND related pattern base on Adrien's suggestion. - remove generic increament/decrement/copy action - rework packet modification action(RTE_FLOW_ACTION_TYPE_FIELD_SET). - Add OpenFlow friendly TTL change actions. - Add O

[dpdk-dev] [PATCH v3 3/4] ethdev: add TTL change actions in flow API

2018-04-15 Thread Qi Zhang
Add couple OpenFlow frienldy TTL change actions. RTE_FLOW_ACTION_MLPS_TTL_DEC - decrement MPLS TTL. RTE_FLOW_ACTION_IP_TTL_DEC - decrement IP TTL. RTE_FLOW_ACTION_TTL_COPY_OUT - copy TTL outwards. RTE_FLOW_ACTION_TTL_COPY_IN - copy TTL inwards. Signed-off-by: Qi Zhang --- app/test-pmd/cmdline_f

[dpdk-dev] [PATCH v3 1/4] ethdev: add more protocol support in flow API

2018-04-15 Thread Qi Zhang
Add new protocol header match support as below RTE_FLOW_ITEM_TYPE_ARP_IPV4 - matches an IPv4 ARP header RTE_FLOW_ITEM_TYPE_IPV6_EXT - matches an IPv6 extension header with any type. RTE_FLOW_ITEM_TYPE_ICMP6 - matches an ICMPv6 header followed by any message body. RTE_FLOW_I

[dpdk-dev] [PATCH v3 2/4] ethdev: add packet field set aciton in flow API

2018-04-15 Thread Qi Zhang
Add new action RTE_FLOW_ACTION_TYPE_FIELD_SET, it is used to modify fields of specific protocol layer of the packet, the action only apply on packets that contain the requireds protocol layer. Signed-off-by: Qi Zhang --- doc/guides/prog_guide/rte_flow.rst | 30 +++ lib/li

[dpdk-dev] [PATCH v3 4/4] ethdev: add VLAN and MPLS pop push action in flow API

2018-04-15 Thread Qi Zhang
Add couple Openflow frienldy VLAN/MPLS push/pop actions. RTE_FLOW_ACTION_VLAN_POP - pop a VLAN header. RTE_FLOW_ACTION_VLAN_PUSH - push a VLAN header. RTE_FLOW_ACTION_MPLS_POP - pop a MPLS header. RTE_FLOW_ACTION_MPLS_PUSH - push a MPLS header. Signed-off-by: Qi Zhang --- app/test-pmd/cmdline_f

Re: [dpdk-dev] Problem with using VF: Initialization Failure: -15

2018-04-15 Thread Weglicki, MichalX
Hello, Yes, sorry, the code flow I've presented was taken from investigation of vfio_pci, but I'm not sure which hardware exactly (I've tested also some other HWs). If it still doesn't make sense, maybe those are wrong assumptions. Should I resent this question to u...@dpdk.org ? I don't want

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

2018-04-15 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] [v2, 2/3] cryptodev: support session private data setting

2018-04-15 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] [v3,3/3] doc: add private data info in crypto guide

2018-04-15 Thread Abhinandan Gujjar
Signed-off-by: Abhinandan Gujjar Acked-by: Akhil Goyal --- doc/guides/prog_guide/cryptodev_lib.rst | 27 +++ 1 file changed, 27 insertions(+) diff --git a/doc/guides/prog_guide/cryptodev_lib.rst b/doc/guides/prog_guide/cryptodev_lib.rst index 066fe2d..b279a20 100644 ---