[dpdk-dev] [PATCH v3] net/vhost: fix segfault when creating vdev dynamically

2018-03-29 Thread Junjie Chen
When creating vdev dynamically, vhost pmd driver starts directly without checking TX/RX queues are ready or not, and thus causes segmentation fault when vhost library accesses queues. This patch adds a flag to check whether queues are setup or not, and adds queues setup into dev_start function to a

Re: [dpdk-dev] [PATCH v3] ethdev: replace bus specific struct with generic dev

2018-03-29 Thread David Marchand
Hello Ferruh, On Thu, Mar 29, 2018 at 7:52 PM, Ferruh Yigit wrote: > Public struct rte_eth_dev_info has a "struct rte_pci_device" field in it > although it is common for all ethdev in all buses. > > Replacing pci specific struct with generic device struct and updating > places that are using pci

Re: [dpdk-dev] [PATCH v3 5/7] cryptodev: add document for virtio crypto PMD

2018-03-29 Thread Zhoujian (jay)
> -Original Message- > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.gua...@intel.com] > Sent: Friday, March 30, 2018 6:36 AM > To: Zhoujian (jay) ; dev@dpdk.org > Cc: Zhang, Roy Fan ; tho...@monjalon.net; Gonglei > (Arei) ; Zeng, Xin ; > Huangweidong (C) ; wangxin (U) > ; longpeng >

Re: [dpdk-dev] [PATCH] net/mlx5: add ptype table idx for TCP ACK packets

2018-03-29 Thread Bin Huang
Hi Yongseok, Thanks for the comments, I have submitted v2 patch following your comments. https://dpdk.org/dev/patchwork/patch/36763/ On Fri, Mar 30, 2018 at 4:46 AM, Yongseok Koh wrote: > On Thu, Mar 29, 2018 at 07:25:25PM +0800, Bin Huang wrote: >> From: Bin Huang >> >> According to CQE format

[dpdk-dev] [PATCH v3 1/2] net/i40e: convert to new Rx offloads API

2018-03-29 Thread Yanglong Wu
Ethdev Rx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Rx queue offloads API") This commit support the new Rx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3: fix error --- --- dr

[dpdk-dev] [PATCH v3 2/2] net/i40e: convert to new Tx offloads API

2018-03-29 Thread Yanglong Wu
Ethdev Tx offloads API has changed since: commit cba7f53b717d ("ethdev: introduce Tx queue offloads API") This commit support the new Tx offloads API. Signed-off-by: Yanglong Wu --- v2: Adding offload requests checking and reworking patch according to review comments --- v3: fix error --- --- dr

[dpdk-dev] [PATCH v3 0/2] net/i40e: convert to new Rx/Tx offloads API

2018-03-29 Thread Yanglong Wu
This patch support new offloads API in i40e PF and VF. Yanglong Wu (2): net/i40e: convert to new Rx offloads API net/i40e: convert to new Tx offloads API drivers/net/i40e/i40e_ethdev.c| 28 +-- drivers/net/i40e/i40e_ethdev_vf.c | 22 +-- drivers/net/i40e/i40e_

[dpdk-dev] [PATCH v2] net/mlx5: add ptype table idx for TCP ACK packets

2018-03-29 Thread Bin Huang
From: Bin Huang According to CQE format: - l4_hdr_type: 0 - None 1 - TCP header was present in the packet 2 - UDP header was present in the packet 3 - TCP header was present in the packet with Empty TCP ACK indication. (TCP packet flag is set, and packet car

Re: [dpdk-dev] [PATCH V15 1/2] pci_uio: add uevent hotplug failure handler in uio

2018-03-29 Thread Tan, Jianfeng
We shall split this patch to multiple patches. - This helper function is not necessarily exposed to users. Whenever there is a device remove event, before invoking the callbacks, we do the remap. - PCI related code shall be put into librte_pci. - Personally, I don't think we shall add an ops

Re: [dpdk-dev] [PATCH v2] net/i40e: fix link_state update for i40e_ethdev_vf drv

2018-03-29 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhang, Helin > Sent: Wednesday, March 28, 2018 12:30 AM > To: Tushar Mulkar; dev@dpdk.org > Cc: Xing, Beilei; Zhang, Qi Z > Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: fix link_state update for > i40e_ethdev_vf d

Re: [dpdk-dev] [PATCH v2] net/i40e: remove unnecessary FDIR mask configuration

2018-03-29 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Beilei Xing > Sent: Thursday, March 29, 2018 2:34 PM > To: Zhang, Qi Z > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2] net/i40e: remove unnecessary FDIR mask > configuration > > Remove unnecessary FDIR mask c

Re: [dpdk-dev] [PATCH v3 3/7] cryptodev/virtio: core code of crypto devices

2018-03-29 Thread Zhoujian (jay)
> -Original Message- > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.gua...@intel.com] > Sent: Friday, March 30, 2018 6:28 AM > To: Zhoujian (jay) ; dev@dpdk.org > Cc: Zhang, Roy Fan ; tho...@monjalon.net; Gonglei > (Arei) ; Zeng, Xin ; > Huangweidong (C) ; wangxin (U) > ; longpeng >

Re: [dpdk-dev] [PATCH v3 2/7] crpyto/virtio: add crypto related session structure

2018-03-29 Thread Zhoujian (jay)
> -Original Message- > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.gua...@intel.com] > Sent: Friday, March 30, 2018 6:12 AM > To: Zhoujian (jay) ; dev@dpdk.org > Cc: Zhang, Roy Fan ; tho...@monjalon.net; Gonglei > (Arei) ; Zeng, Xin ; > Huangweidong (C) ; wangxin (U) > ; longpeng >

Re: [dpdk-dev] [PATCH v3 1/7] crypto/virtio: add virtio related fundamental functions

2018-03-29 Thread Zhoujian (jay)
Hi Pablo, > -Original Message- > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.gua...@intel.com] > Sent: Friday, March 30, 2018 12:07 AM > To: Zhoujian (jay) ; dev@dpdk.org > Cc: Zhang, Roy Fan ; tho...@monjalon.net; Gonglei > (Arei) ; Zeng, Xin ; > Huangweidong (C) ; wangxin (U) > ; l

Re: [dpdk-dev] [PATCH v3 3/4] net/virtio-user: add support for server mode

2018-03-29 Thread Yang, Zhiyong
Hi Jianfeng, > -Original Message- > From: Tan, Jianfeng > Sent: Wednesday, March 28, 2018 11:15 PM > To: Yang, Zhiyong ; dev@dpdk.org > Cc: Wang, Zhihong ; > maxime.coque...@redhat.com; tho...@monjalon.net; Wang, Dong1 > ; Bie, Tiwei > Subject: Re: [PATCH v3 3/4] net/virtio-user: add supp

Re: [dpdk-dev] [PATCH v3 4/4] net/vhost: add NULL pointer checking

2018-03-29 Thread Yang, Zhiyong
Hi Maxime, > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, March 29, 2018 9:20 PM > To: Yang, Zhiyong ; dev@dpdk.org > Cc: Tan, Jianfeng ; Wang, Zhihong > ; tho...@monjalon.net; Wang, Dong1 > ; Bie, Tiwei > Subject: Re: [PATCH v3 4/4] net

Re: [dpdk-dev] [PATCH v3 5/7] cryptodev: add document for virtio crypto PMD

2018-03-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jay Zhou [mailto:jianjay.z...@huawei.com] > Sent: Sunday, March 25, 2018 9:34 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...@huawei.

Re: [dpdk-dev] [PATCH v3 6/7] cryptodev: add function tests for virtio crypto PMD

2018-03-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jay Zhou [mailto:jianjay.z...@huawei.com] > Sent: Sunday, March 25, 2018 9:34 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...@huawei.

Re: [dpdk-dev] [PATCH v3 3/7] cryptodev/virtio: core code of crypto devices

2018-03-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jay Zhou [mailto:jianjay.z...@huawei.com] > Sent: Sunday, March 25, 2018 9:34 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...@huawei.

Re: [dpdk-dev] [PATCH v3 2/7] crpyto/virtio: add crypto related session structure

2018-03-29 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jay Zhou [mailto:jianjay.z...@huawei.com] > Sent: Sunday, March 25, 2018 9:34 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...@huawei.

[dpdk-dev] [PATCH v8 9/9] doc: add event timer adapter documentation

2018-03-29 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- MAINTAINERS| 7 +++ doc/api/doxy-api-index.md | 32 +++- doc/guides/rel_notes/release_18_05.rst | 6 ++ 3 files changed, 16 insertions(+), 29 deletions(-) diff --git a/MAINTAIN

[dpdk-dev] [PATCH v8 8/9] doc: add event timer adapter section to programmer's guide

2018-03-29 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo Signed-off-by: Jerin Jacob Signed-off-by: Pavan Nikhilesh --- doc/guides/prog_guide/event_timer_adapter.rst | 297 ++ doc/guides/prog_guide/index.rst | 1 + 2 files changed, 298 insertions(+) create mode 100644 doc/gu

[dpdk-dev] [PATCH v8 7/9] test: add event timer adapter auto-test

2018-03-29 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- test/test/Makefile |1 + test/test/test_event_timer_adapter.c | 1837 ++ 2 files changed, 1838 insertions(+) create mode 100644 test/test/test_event_timer_adapter.c diff --git a/test/test/Makefile b/t

[dpdk-dev] [PATCH v8 6/9] eventtimer: add support for meson build system

2018-03-29 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- config/rte_config.h | 1 + lib/librte_eventdev/meson.build | 9 ++--- lib/meson.build | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/rte_config.h b/config/rte_config.h index 72c0aa2..117c19f 1

[dpdk-dev] [PATCH v8 5/9] eventtimer: add default software driver

2018-03-29 Thread Erik Gabriel Carrillo
If an eventdev PMD does not wish to provide event timer adapter ops definitions, the library will fall back to a default software implementation whose entry points are added by this commit. Signed-off-by: Erik Gabriel Carrillo --- lib/Makefile | 2 +- lib/librt

[dpdk-dev] [PATCH v8 4/9] mk: update library order in static build

2018-03-29 Thread Erik Gabriel Carrillo
The introduction of the event timer adapter library adds a dependency on the rte_timer library from the rte_eventdev library. Update the order so that the timer library comes after the eventdev library in the linker command when statically linking applications. Signed-off-by: Erik Gabriel Carrill

[dpdk-dev] [PATCH v8 3/9] eventtimer: add common code

2018-03-29 Thread Erik Gabriel Carrillo
This commit adds the logic that is shared by all event timer adapter drivers; the common code handles instance allocation and some initialization. Signed-off-by: Erik Gabriel Carrillo --- config/common_base| 1 + drivers/event/sw/sw_evdev.c

[dpdk-dev] [PATCH v8 2/9] eventdev: convert to SPDX license tag in header

2018-03-29 Thread Erik Gabriel Carrillo
Signed-off-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_eventdev.h | 37 + 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index e79583a..f9ad71e 100644 --- a/lib/l

[dpdk-dev] [PATCH v8 1/9] eventtimer: introduce event timer adapter

2018-03-29 Thread Erik Gabriel Carrillo
Event devices can be coupled with various components to provide new event sources by using event adapters. The event timer adapter is one such adapter; it bridges event devices and timer mechanisms. This library extends the event-driven programming model by introducing a new type of event that rep

[dpdk-dev] [PATCH v4 19/20] ethdev: add device matching field name

2018-03-29 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 | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/librte_ether/rte_class_eth

[dpdk-dev] [PATCH v4 20/20] app/testpmd: add show device command

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

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

2018-03-29 Thread Erik Gabriel Carrillo
This patch series contains the next iteration of the Event Timer Adapter library, which abstracts timer mechanisms that are tightly coupled with event devices, and extends the event based programming model so that timer expirations are represented as an event. v8 - Addressed comments on previous s

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

2018-03-29 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 v4 18/20] ethdev: register ether layer as a class

2018-03-29 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- lib/Makefile | 2 +- lib/librte_ether/Makefile| 3 +- lib/librte_ether/rte_class_eth.c | 73 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 lib/librte_ether/rte_class_eth.

[dpdk-dev] [PATCH v4 15/20] bus/vdev: fix find device implementation

2018-03-29 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 v4 16/20] bus/vdev: implement device iteration

2018-03-29 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 v4 14/20] bus/pci: add device matching field id

2018-03-29 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 v4 09/20] eal/dev: implement device iteration initialization

2018-03-29 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 v4 12/20] bus/pci: fix find device implementation

2018-03-29 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 v4 10/20] eal/dev: implement device iteration

2018-03-29 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 | 187 lib/librte_eal/common/include/rte_dev.h | 25 + lib/librte_eal/r

[dpdk-dev] [PATCH v4 13/20] bus/pci: implement device iteration and comparison

2018-03-29 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 f3df1c4ce..73498dc77 100644

[dpdk-dev] [PATCH v4 11/20] kvargs: add generic string matching callback

2018-03-29 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 v4 08/20] eal/bus: add device iteration

2018-03-29 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 v4 04/20] eal: introduce device class abstraction

2018-03-29 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 v4 03/20] eal: introduce dtor macros

2018-03-29 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 99a799d6d..bdccc2553 100644 --- a/lib/librte_eal/c

[dpdk-dev] [PATCH v4 07/20] eal/class: add device iteration

2018-03-29 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 v4 05/20] eal/class: register destructor

2018-03-29 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 v4 06/20] eal/dev: add device iterator interface

2018-03-29 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 v4 00/20] Device querying

2018-03-29 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 v4 01/20] kvargs: build before EAL

2018-03-29 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 v4 02/20] eal: list acceptable init priorities

2018-03-29 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

Re: [dpdk-dev] [PATCH] mlx: fix warnings for unused compiler arguments

2018-03-29 Thread Yongseok Koh
> On Mar 29, 2018, at 6:36 AM, Bruce Richardson > wrote: > > When linking the mlx glue code libraries using CC, the linker arguments in > LDFLAGS are not prefixed with -Wl. [The EXTRA_LDFLAGS are though.] This > leads to warning messages on build: > > clang-5.0: warning: argument unused during

Re: [dpdk-dev] [PATCH] net/mlx5: add ptype table idx for TCP ACK packets

2018-03-29 Thread Yongseok Koh
On Thu, Mar 29, 2018 at 07:25:25PM +0800, Bin Huang wrote: > From: Bin Huang > > According to CQE format: > - l4_hdr_type: > 0 - None > 1 - TCP header was present in the packet > 2 - UDP header was present in the packet > 3 - TCP header was present in the packet with Empty >

Re: [dpdk-dev] [PATCH v2 1/2] Add RIB library

2018-03-29 Thread Bruce Richardson
On Thu, Mar 29, 2018 at 11:11:20PM +0300, Vladimir Medvedkin wrote: > 2018-03-29 13:27 GMT+03:00 Bruce Richardson : > > > On Wed, Feb 21, 2018 at 09:44:54PM +, Medvedkin Vladimir wrote: > > > RIB is an alternative to current LPM library. > > > +#define LOOKUP_FUNC(suffix, type, bulk_prefetch)

[dpdk-dev] [PATCH] net/i40e/vf: reset scatter_rx flag when configuration complies

2018-03-29 Thread eduser25
From: Eduard Serra Scatter RX (scattered_rx) flag is currently not being resetted when new configuration is suplied to reconfigure a port, rendering the rx callback logic to always fall through the scatter branch. Signed-off-by: Eduard Serra --- drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ driver

Re: [dpdk-dev] [PATCH v2 1/2] Add RIB library

2018-03-29 Thread Vladimir Medvedkin
2018-03-29 13:27 GMT+03:00 Bruce Richardson : > On Wed, Feb 21, 2018 at 09:44:54PM +, Medvedkin Vladimir wrote: > > RIB is an alternative to current LPM library. > > It solves the following problems > > - Increases the speed of control plane operations against lpm such as > >adding/deleti

Re: [dpdk-dev] [PATCH v2 1/2] Add RIB library

2018-03-29 Thread Vladimir Medvedkin
2018-03-26 12:50 GMT+03:00 Bruce Richardson : > On Sun, Mar 25, 2018 at 09:17:20PM +0300, Vladimir Medvedkin wrote: > > Hi, > > > > 2018-03-14 14:09 GMT+03:00 Bruce Richardson >: > > > > > On Wed, Feb 21, 2018 at 09:44:54PM +, Medvedkin Vladimir wrote: > > > > RIB is an alternative to current

Re: [dpdk-dev] [PATCH] mk: fix kernel modules build dependency

2018-03-29 Thread Ferruh Yigit
On 3/29/2018 7:21 PM, Ferruh Yigit wrote: > On 3/29/2018 6:01 PM, Thomas Monjalon wrote: >> 29/03/2018 18:50, Ferruh Yigit: >>> On 3/29/2018 5:43 PM, Thomas Monjalon wrote: 29/03/2018 18:38, Ferruh Yigit: > On 3/29/2018 5:32 PM, Thomas Monjalon wrote: >> 29/03/2018 17:48, Ferruh Yigit:

[dpdk-dev] [PATCH v4 47/49] ip_pipeline: add route example

2018-03-29 Thread Jasvinder Singh
Add example to built pipeline with LPM table to demonstrate layer 3 routing. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Reshma Pattan --- examples/ip_pipeline/examples/route.cli | 60 + 1 file changed, 60 insertions(+) crea

Re: [dpdk-dev] [PATCH v4 1/2] eventdev: add device stop flush callback

2018-03-29 Thread Jerin Jacob
-Original Message- > Date: Thu, 29 Mar 2018 11:02:55 + > From: "Van Haaren, Harry" > To: "jerin.ja...@caviumnetworks.com" , > "hemant.agra...@nxp.com" , "Ma, Liang J" > > CC: "Eads, Gage" , "Richardson, Bruce" > , "santosh.shu...@caviumnetworks.com" > , "nipun.gu...@nxp.com" > ,

[dpdk-dev] [PATCH v4 49/49] ip_pipeline: add flow classification example

2018-03-29 Thread Jasvinder Singh
Add example to build pipeline with hash table to classify the ingress traffic. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/examples/flow.cli | 60 ++ 1 file changed, 60 insertions(+) create

[dpdk-dev] [PATCH v4 48/49] ip_pipeline: add firewall example

2018-03-29 Thread Jasvinder Singh
Add example to built pipeline with ACL table to demonstrate the firewall operation. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/examples/firewall.cli | 59 ++ 1 file changed, 59 insertions(+) create mode 100644 examples

[dpdk-dev] [PATCH v4 41/49] ip_pipeline: add cli to update dscp table

2018-03-29 Thread Jasvinder Singh
Add command to update the dscp table for traffic meter and traffic manager. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/cli.c | 154 examples/ip_pipeline/pipeline.h | 6 ++ examples/ip_pipeline/thread

[dpdk-dev] [PATCH v4 43/49] ip_pipeline: add cli for load balance action

2018-03-29 Thread Jasvinder Singh
Add command for load balance action. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/action.c | 11 ++ examples/ip_pipeline/action.h | 1 + examples/ip_pipeline/cli.c | 84 - examples/ip_pipeline/pi

[dpdk-dev] [PATCH v4 42/49] ip_pipeline: add cli to read ttl stats

2018-03-29 Thread Jasvinder Singh
Add command to read the ttl stats. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/cli.c | 22 +++ examples/ip_pipeline/pipeline.h | 7 examples/ip_pipeline/thread.c | 85 + 3 files changed,

[dpdk-dev] [PATCH v4 45/49] ip_pipeline: add KNI port example

2018-03-29 Thread Jasvinder Singh
Add example to illustrate the pipeline functioning with KNI interface. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/examples/kni.cli | 69 +++ 1 file changed, 69 insertions(+) create mode

[dpdk-dev] [PATCH v4 46/49] ip_pipeline: add TAP port example

2018-03-29 Thread Jasvinder Singh
Add example to illustrate the pipeline functioning with TAP interface. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/examples/tap.cli | 66 +++ 1 file changed, 66 insertions(+) create mode

[dpdk-dev] [PATCH v4 44/49] ip_pipeline: add l2fwd example

2018-03-29 Thread Jasvinder Singh
This patch add the configuration file for l2fwd example. It includes commands to build the packet processing stage (pipeline), defining action, add rules to its table, etc. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/exa

[dpdk-dev] [PATCH v4 37/49] ip_pipeline: add cli for bulk entries to pipeline table

2018-03-29 Thread Jasvinder Singh
Add cli for adding bulk entries to pipeline table. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/cli.c | 267 +-- examples/ip_pipeline/pipeline.h | 8 ++ examples/ip_pipeline/thre

[dpdk-dev] [PATCH v4 40/49] ip_pipeline: add cli to read meter stats

2018-03-29 Thread Jasvinder Singh
Add command to read traffic meter stats. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/cli.c | 22 ++ examples/ip_pipeline/pipeline.h | 8 examples/ip_pipeline/thread.c | 89 + 3 files chan

[dpdk-dev] [PATCH v4 39/49] ip_pipeline: add cli to configure meter profile

2018-03-29 Thread Jasvinder Singh
Add commands to configure the traffic meter profile. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/cli.c | 232 examples/ip_pipeline/pipeline.h | 11 ++ examples/ip_pipeline/thread.c | 146

[dpdk-dev] [PATCH v4 38/49] ip_pipeline: add cli to read pipeline table entry stats

2018-03-29 Thread Jasvinder Singh
Add command to read the pipeline table entry stats. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/cli.c | 22 +++ examples/ip_pipeline/pipeline.h | 7 examples/ip_pipeline/thread.c | 85 +

[dpdk-dev] [PATCH v4 36/49] ip_pipeline: add cli to delete pipeline table entry

2018-03-29 Thread Jasvinder Singh
Add command to delete the pipeline table entry. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/cli.c | 145 examples/ip_pipeline/pipeline.h | 9 +++ examples/ip_pipeline/thread.c | 142

[dpdk-dev] [PATCH v4 34/49] ip_pipeline: add cli to read pipeline port and table stats

2018-03-29 Thread Jasvinder Singh
Add commands to read the pipeline port in, port out and table stats. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/cli.c | 256 examples/ip_pipeline/pipeline.h | 18 +++ exampl

[dpdk-dev] [PATCH v4 35/49] ip_pipeline: add cli for pipeline table entry

2018-03-29 Thread Jasvinder Singh
Add commands to add pipeline table entries which contains match and action part. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/cli.c | 1295 +++ examples/ip_pipeline/pipeline.h |

[dpdk-dev] [PATCH v4 32/49] ip_pipeline: add cli to enable and disable pipeline

2018-03-29 Thread Jasvinder Singh
Add commands to enable and disable the pipeline on the thread. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/cli.c| 102 + examples/ip_pipeline/thread.c | 256 ++ e

[dpdk-dev] [PATCH v4 31/49] ip_pipeline: add thread runtime

2018-03-29 Thread Jasvinder Singh
Add runtime thread functions for the pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/main.c | 6 ++ examples/ip_pipeline/thread.c | 193 ++ examples/ip_pipeline/thread.h | 3 + 3 files changed, 20

[dpdk-dev] [PATCH v4 29/49] ip_pipeline: add pipeline object

2018-03-29 Thread Jasvinder Singh
Add pipeline object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 819 examples/ip_pipeline/cli.h | 2 - examples/ip_p

[dpdk-dev] [PATCH v4 30/49] ip_pipeline: add threads

2018-03-29 Thread Jasvinder Singh
Add threads data structure and initialisation functions to run the pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile| 2 +- examples/ip_pipeline/main.c | 8 ++ examples/ip_pipeline/meson.build | 1 + examples/ip_pipeline

[dpdk-dev] [PATCH v4 33/49] ip_pipeline: add cli to enable and disable pipeline port

2018-03-29 Thread Jasvinder Singh
Add commands to enable and disable the pipeline ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/cli.c | 112 +++ examples/ip_pipeline/pipeline.h | 8 ++ examples/ip_pipeline/thread.c | 1

[dpdk-dev] [PATCH v4 28/49] ip_pipeline: add action profile object

2018-03-29 Thread Jasvinder Singh
Add action profile object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/Makefile| 4 +- examples/ip_pipeline/action.c| 278 +++ examples/ip_pipeline/action.h

[dpdk-dev] [PATCH v4 27/49] ip_pipeline: add kni object

2018-03-29 Thread Jasvinder Singh
Add kni object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 65 +++ examples/ip_pipeline/kni.c | 167 ++

[dpdk-dev] [PATCH v4 26/49] ip_pipeline: add tap object

2018-03-29 Thread Jasvinder Singh
Add tap object implementation to the application Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 32 + examples/ip_pipeline/main.c | 8 examples/i

[dpdk-dev] [PATCH v4 25/49] ip_pipeline: add traffic manager object

2018-03-29 Thread Jasvinder Singh
Add traffic manager object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 360 +++ examples/ip_pipeline/main.c | 8 +

[dpdk-dev] [PATCH v4 24/49] ip_pipeline: add software queue object

2018-03-29 Thread Jasvinder Singh
Add swq object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Kevin Laatz --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 55 + examples/ip_pipeline/main.c | 8

[dpdk-dev] [PATCH v4 23/49] ip_pipeline: add link object

2018-03-29 Thread Jasvinder Singh
Add link object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 122 ++ examples/ip_pipeline/link.c | 268

[dpdk-dev] [PATCH v4 22/49] ip_pipeline: add mempool object for pipeline

2018-03-29 Thread Jasvinder Singh
Add mempool object implementation to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang --- examples/ip_pipeline/Makefile| 1 + examples/ip_pipeline/cli.c | 109 ++- examples/ip_pipeline/co

[dpdk-dev] [PATCH v4 21/49] ip_pipeline: add cli interface

2018-03-29 Thread Jasvinder Singh
CLI interface allowing connectivity with external agent(e.g. telnet, netcat, Python script, etc) is added to the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile| 4 +- examples/ip_pipeline/cli.c | 86 +++ exam

[dpdk-dev] [PATCH v4 19/49] ip_pipeline: remove config

2018-03-29 Thread Jasvinder Singh
Remove application configuration and script files. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/config/action.cfg | 68 -- examples/ip_pipeline/config/action.sh | 119 --- examples/ip_pipeline/config/action.txt

[dpdk-dev] [PATCH v4 18/49] ip_pipeline: remove master pipeline

2018-03-29 Thread Jasvinder Singh
remove master pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |6 - examples/ip_pipeline/app.h | 12 - examples/ip_pipeline/{pipeline => }/hash_func.h|3 +- .../ip_pipeline/{

[dpdk-dev] [PATCH v4 17/49] ip_pipeline: remove firewall pipeline

2018-03-29 Thread Jasvinder Singh
Remove firewall pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |2 - examples/ip_pipeline/init.c|2 - examples/ip_pipeline/meson.build |2 - examples/ip_pipe

[dpdk-dev] [PATCH v4 16/49] ip_pipeline: remove flow actions pipeline

2018-03-29 Thread Jasvinder Singh
Remove flow actions pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |2 - examples/ip_pipeline/init.c|2 - examples/ip_pipeline/meson.build |2 - .../ip_pipel

[dpdk-dev] [PATCH v4 15/49] ip_pipeline: remove flow classification pipeline

2018-03-29 Thread Jasvinder Singh
Remove flow classification pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |2 - examples/ip_pipeline/init.c|2 - examples/ip_pipeline/meson.build |2 - .../p

[dpdk-dev] [PATCH v4 14/49] ip_pipeline: remove routing pipeline

2018-03-29 Thread Jasvinder Singh
Remove routing pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |2 - examples/ip_pipeline/init.c|2 - examples/ip_pipeline/meson.build |2 - examples/ip_pipel

[dpdk-dev] [PATCH v4 13/49] ip_pipeline: remove passthrough pipeline

2018-03-29 Thread Jasvinder Singh
remove passthrough pipeline. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile | 2 - examples/ip_pipeline/init.c| 2 - examples/ip_pipeline/meson.build | 2 - .../ip_pipeline/

[dpdk-dev] [PATCH v4 12/49] librte_table/acl: remove incorrect check

2018-03-29 Thread Jasvinder Singh
Remove wrong check for table entry pointer. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- lib/librte_table/rte_table_acl.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/librte_table/rte_table_acl.c b/lib/librte_table/rte_table_acl.c index 73d3910..14d5401

[dpdk-dev] [PATCH v4 11/49] pipeline: add pipeline port in action APIs

2018-03-29 Thread Jasvinder Singh
This API provides a common set of actions for pipeline input ports to speed up application development. Each pipeline input port can be assigned an action handler to be executed on every input packet during the pipeline execution. The pipeline library allows the user to define his own input port

[dpdk-dev] [PATCH v4 10/49] pipeline: add load balance action

2018-03-29 Thread Jasvinder Singh
Add implementation of the load balance action. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_table_action.c | 102 + lib/librte_pipeline/rte_table_action.h | 52 + 2 files changed, 154 insertions(+) diff --git a/lib/librte_pipeli

[dpdk-dev] [PATCH v4 09/49] pipeline: add timestamp action

2018-03-29 Thread Jasvinder Singh
Add implementation of timestamp action. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_pipeline_version.map | 1 + lib/librte_pipeline/rte_table_action.c | 79 +++- lib/librte_pipeline/rte_table_action.h | 31 +++ 3 files changed, 110

[dpdk-dev] [PATCH v4 06/49] pipeline: add nat action

2018-03-29 Thread Jasvinder Singh
Add implementation of Network Address Translation(NAT) action. Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_table_action.c | 351 + lib/librte_pipeline/rte_table_action.h | 39 2 files changed, 390 insertions(+) diff --git a/lib/librte_pip

  1   2   3   >