[dpdk-dev] [PATCH v4] net/mlx: add meson build support

2018-08-31 Thread Nelio Laranjeiro
Note: LD_LIBRARY_PATH before ninja is necessary when the meson configuration has changed (e.g. meson configure has been called), in such situation the LD_LIBRARY_PATH is necessary to invoke the autoconfiguration script. Signed-off-by: Nelio Laranjeiro Acked-by: Bruce Richardson --- Changes

[dpdk-dev] [PATCH v3] net/mlx: add meson build support

2018-08-29 Thread Nelio Laranjeiro
Note: LD_LIBRARY_PATH before ninja is necessary when the meson configuration has changed (e.g. meson configure has been called), in such situation the LD_LIBRARY_PATH is necessary to invoke the autoconfiguration script. Signed-off-by: Nelio Laranjeiro --- Changes in v3: Sanitize the build

[dpdk-dev] [PATCH v2] net/mlx: add meson build support

2018-08-27 Thread Nelio Laranjeiro
utput # CLFAGS=-I/tmp/rdma-core/build/include \ LDFLAGS=-L/tmp/rdma-core/build/lib \ LD_LIBRARY_PATH=/tmp/rdma-core/build/lib \ ninja -C output install Signed-off-by: Nelio Laranjeiro --- Changes in v2: - dropped patch https://patches.dpdk.org/patch/43897/ - remove extra_{cflags,ldflag

[dpdk-dev] [PATCH 2/2] net/mlx: add meson build support

2018-08-27 Thread Nelio Laranjeiro
d() instead of using has_types, has_members, ... commands. Signed-off-by: Nelio Laranjeiro --- drivers/net/meson.build | 2 + drivers/net/mlx4/meson.build | 109 +++ drivers/net/mlx5/meson.build | 561 +++ meson_options.txt| 8 + 4 files cha

[dpdk-dev] [PATCH 1/2] build: add extra cflags ldflags to meson option

2018-08-27 Thread Nelio Laranjeiro
Almost equivalent to the make system build which uses those options through environment variables (EXTRA_{CFLAGS,LDFLAGS}). Signed-off-by: Nelio Laranjeiro --- drivers/meson.build | 2 +- meson_options.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[dpdk-dev] [PATCH] net/mlx5: fix count query when flow has not counters

2018-07-25 Thread Nelio Laranjeiro
Querying a counters on a flow without counter is ending with a segmentation fault. Fixes: 60bd8c9747e8 ("net/mlx5: add count flow action") Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 56 1 file changed, 32 insertions(+), 24

[dpdk-dev] [PATCH] mk: fix application compilation with lmnl and mlx5

2018-07-24 Thread Nelio Laranjeiro
When Mellanox MLX5 PMD is compiled with CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS=y, the external dependency on libmln is missing. Fixes: 4d5cce06231a ("net/mlx5: lay groundwork for switch offloads") Cc: adrien.mazarg...@6wind.com Signed-off-by: Nelio Laranjeiro --- mk/rte.app.mk | 2

[dpdk-dev] [PATCH v2] net/mlx5: fix representors detection

2018-07-24 Thread Nelio Laranjeiro
On systems where the required Netlink commands are not supported but Mellanox OFED is installed, representors information must be retrieved through sysfs. Fixes: 4c10141488fe ("net/mlx5: add port representor awareness") Signed-off-by: Nelio Laranjeiro --- Changes in v2: On some di

[dpdk-dev] [PATCH] net/mlx5: fix route Netlink message overflow

2018-07-23 Thread Nelio Laranjeiro
message cannot be exchanged. As the PMD is not expected to process such broadcast messages, the parameter in the nl_group in the function is also remove. Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses") Cc: sta...@dpdk.org Signed-off-by: Zijie Pan Signed-off

[dpdk-dev] [PATCH] net/mlx5: fix tci mask filter

2018-07-23 Thread Nelio Laranjeiro
In mlx5_traffic_enable() the TCI mask for the VLAN is wrong causing the sub flow engine to reject the rule. Fixes: 272733b5ebfd ("net/mlx5: use flow to enable unicast traffic") Cc: sta...@dpdk.org Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_trigger.c | 10

[dpdk-dev] [PATCH] net/mlx5: fix representors detection

2018-07-13 Thread Nelio Laranjeiro
On systems where the required Netlink commands are not supported but Mellanox OFED is installed, representors information must be retrieved through sysfs. Fixes: 4c10141488fe ("net/mlx5: add port representor awareness") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --

[dpdk-dev] [PATCH] ethdev: fix missing function in map file

2018-07-13 Thread Nelio Laranjeiro
Fixes: 4ed05fcd441b ("ethdev: add flow API to expand RSS flows") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil -- Changes in v2: - add missing documentation. - add missing __rte_experimental in source file. - update the order in map file. --- lib/lib

[dpdk-dev] [PATCH] ethdev: fix missing function in map file

2018-07-13 Thread Nelio Laranjeiro
Fixes: 4ed05fcd441b ("ethdev: add flow API to expand RSS flows") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- lib/librte_ethdev/rte_ethdev_version.map | 1 + lib/librte_ethdev/rte_flow_driver.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff -

[dpdk-dev] [PATCH v4 21/21] net/mlx5: add count flow action

2018-07-12 Thread Nelio Laranjeiro
This is only supported by Mellanox OFED. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c | 242 +++ 2 files changed, 244 insertions(+) diff --git a/drivers/net/mlx5/mlx5.h b/drivers

[dpdk-dev] [PATCH v4 20/21] net/mlx5: add flow MPLS item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 102 ++- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 2 files changed, 101 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH v4 18/21] net/mlx5: add flow VXLAN-GPE item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 219 --- drivers/net/mlx5/mlx5_rxtx.h | 5 +- 2 files changed, 209 insertions(+), 15 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH v4 19/21] net/mlx5: add flow GRE item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 193 ++- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 2 files changed, 192 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH v4 16/21] net/mlx5: support inner RSS computation

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 245 ++- 1 file changed, 185 insertions(+), 60 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 730360b22..84bd99b3e 100644 --- a

[dpdk-dev] [PATCH v4 15/21] net/mlx5: remove useless arguments in hrxq API

2018-07-12 Thread Nelio Laranjeiro
RSS level is necessary to had a bit in the hash_fields which is already provided in this API, for the tunnel, it is necessary to request such queue to compute the checksum on the inner most, this last one should always be activated. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh

[dpdk-dev] [PATCH v4 17/21] net/mlx5: add flow VXLAN item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 190 +-- drivers/net/mlx5/mlx5_rxtx.h | 1 + 2 files changed, 163 insertions(+), 28 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH v4 13/21] net/mlx5: use a macro for the RSS key size

2018-07-12 Thread Nelio Laranjeiro
ConnectX 4-5 support only 40 bytes of RSS key, using a compiled size hash key is not necessary. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_ethdev.c | 14 +++--- drivers/net/mlx5/mlx5_flow.c | 4 ++-- drivers/net/mlx5/mlx5_prm.h| 3

[dpdk-dev] [PATCH v4 11/21] net/mlx5: add flow TCP item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 79 1 file changed, 79 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 0096ed8a2..f646eee01 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v4 14/21] net/mlx5: add RSS flow action

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 686 +++ 1 file changed, 541 insertions(+), 145 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 77483bd1f..758c611a6 100644

[dpdk-dev] [PATCH v4 10/21] net/mlx5: add flow UDP item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 97 +--- 1 file changed, 91 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 513f70d40..0096ed8a2 100644 --- a

[dpdk-dev] [PATCH v4 12/21] net/mlx5: add mark/flag flow action

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 252 +++ drivers/net/mlx5/mlx5_rxtx.h | 1 + 2 files changed, 253 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index f646eee01

[dpdk-dev] [PATCH v4 09/21] net/mlx5: add flow IPv6 item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 115 +++ 1 file changed, 115 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index c05b8498d..513f70d40 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v4 08/21] net/mlx5: add flow IPv4 item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 90 1 file changed, 90 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 659979283..c05b8498d 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v4 07/21] net/mlx5: add flow VLAN item

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 127 +++ 1 file changed, 127 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 77f1bd5cc..659979283 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v4 05/21] net/mlx5: add flow queue action

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 97 1 file changed, 86 insertions(+), 11 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 036a8d440..6041a4573 100644 --- a

[dpdk-dev] [PATCH v4 06/21] net/mlx5: add flow stop/start

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6041a4573..77f1bd5cc 100644 --- a/drivers/net

[dpdk-dev] [PATCH v4 01/21] net/mlx5: remove flow support

2018-07-12 Thread Nelio Laranjeiro
code and only let the PMD to start in isolated mode. After this patch flow API will not be usable. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 3095 +- drivers/net/mlx5/mlx5_rxtx.h |1 - 2 files changed, 80

[dpdk-dev] [PATCH v4 03/21] net/mlx5: replace verbs priorities by flow

2018-07-12 Thread Nelio Laranjeiro
Previous work introduce verbs priorities, whereas the PMD is making translation between Flow priority into Verbs. Rename this to make more sense on what the PMD has to translate. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 15

[dpdk-dev] [PATCH v4 04/21] net/mlx5: support flow Ethernet item along with drop action

2018-07-12 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5_flow.c | 664 +-- 2 files changed, 627 insertions(+), 38 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index

[dpdk-dev] [PATCH v4 00/21] net/mlx5: flow rework

2018-07-12 Thread Nelio Laranjeiro
redundant parameters in drop queues internal API. - simplify the RSS expansion by only adding missing items in the pattern. - document all functions. Nelio Laranjeiro (21): net/mlx5: remove flow support net/mlx5: handle drop queues as regular queues net/mlx5: replace verbs priorities by flow

[dpdk-dev] [PATCH v4 02/21] net/mlx5: handle drop queues as regular queues

2018-07-12 Thread Nelio Laranjeiro
Drop queues are essentially used in flows due to Verbs API, the information if the fate of the flow is a drop or not is already present in the flow. Due to this, drop queues can be fully mapped on regular queues. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5

[dpdk-dev] [PATCH v3 21/21] net/mlx5: add count flow action

2018-07-11 Thread Nelio Laranjeiro
This is only supported by Mellanox OFED. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c | 242 +++ 2 files changed, 244 insertions(+) diff --git a/drivers/net/mlx5/mlx5.h b/drivers

[dpdk-dev] [PATCH v3 20/21] net/mlx5: add flow MPLS item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 102 ++- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 2 files changed, 101 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 3412c856a

[dpdk-dev] [PATCH v3 18/21] net/mlx5: add flow VXLAN-GPE item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 219 --- drivers/net/mlx5/mlx5_rxtx.h | 5 +- 2 files changed, 209 insertions(+), 15 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 95507059e

[dpdk-dev] [PATCH v3 19/21] net/mlx5: add flow GRE item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 193 ++- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 2 files changed, 192 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index e06df0eb5

[dpdk-dev] [PATCH v3 17/21] net/mlx5: add flow VXLAN item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 190 +-- drivers/net/mlx5/mlx5_rxtx.h | 1 + 2 files changed, 163 insertions(+), 28 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c

[dpdk-dev] [PATCH v3 16/21] net/mlx5: support inner RSS computation

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 241 ++- 1 file changed, 180 insertions(+), 61 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index f2acac1f5..edceb17ed 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v3 15/21] net/mlx5: remove useless arguments in hrxq API

2018-07-11 Thread Nelio Laranjeiro
RSS level is necessary to had a bit in the hash_fields which is already provided in this API, for the tunnel, it is necessary to request such queue to compute the checksum on the inner most, this last one should always be activated. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh

[dpdk-dev] [PATCH v3 14/21] net/mlx5: add RSS flow action

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 682 +++ 1 file changed, 537 insertions(+), 145 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 77483bd1f..f098e727a 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v3 13/21] net/mlx5: use a macro for the RSS key size

2018-07-11 Thread Nelio Laranjeiro
ConnectX 4-5 support only 40 bytes of RSS key, using a compiled size hash key is not necessary. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_ethdev.c | 14 +++--- drivers/net/mlx5/mlx5_flow.c | 4 ++-- drivers/net/mlx5/mlx5_prm.h| 3 +++ drivers/net/mlx5/mlx5_rss.c

[dpdk-dev] [PATCH v3 11/21] net/mlx5: add flow TCP item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 79 1 file changed, 79 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 0096ed8a2..f646eee01 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v3 10/21] net/mlx5: add flow UDP item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 97 +--- 1 file changed, 91 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 513f70d40..0096ed8a2 100644 --- a

[dpdk-dev] [PATCH v3 08/21] net/mlx5: add flow IPv4 item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 90 1 file changed, 90 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 659979283..c05b8498d 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v3 09/21] net/mlx5: add flow IPv6 item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 115 +++ 1 file changed, 115 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index c05b8498d..513f70d40 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v3 12/21] net/mlx5: add mark/flag flow action

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 252 +++ drivers/net/mlx5/mlx5_rxtx.h | 1 + 2 files changed, 253 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index f646eee01..1280db486 100644 --- a

[dpdk-dev] [PATCH v3 07/21] net/mlx5: add flow VLAN item

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 127 +++ 1 file changed, 127 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 77f1bd5cc..659979283 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v3 05/21] net/mlx5: add flow queue action

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 97 1 file changed, 86 insertions(+), 11 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 036a8d440..6041a4573 100644 --- a

[dpdk-dev] [PATCH v3 06/21] net/mlx5: add flow stop/start

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6041a4573..77f1bd5cc 100644 --- a/drivers/net

[dpdk-dev] [PATCH v3 04/21] net/mlx5: support flow Ethernet item along with drop action

2018-07-11 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5_flow.c | 664 +-- 2 files changed, 627 insertions(+), 38 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 74248f098..6d3421fae 100644

[dpdk-dev] [PATCH v3 01/21] net/mlx5: remove flow support

2018-07-11 Thread Nelio Laranjeiro
code and only let the PMD to start in isolated mode. After this patch flow API will not be usable. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5_flow.c | 3095 +- drivers/net/mlx5/mlx5_rxtx.h |1 - 2 files changed, 80

[dpdk-dev] [PATCH v3 00/21] net/mlx5: flow rework

2018-07-11 Thread Nelio Laranjeiro
- document all functions. Nelio Laranjeiro (21): net/mlx5: remove flow support net/mlx5: handle drop queues as regular queues net/mlx5: replace verbs priorities by flow net/mlx5: support flow Ethernet item along with drop action net/mlx5: add flow queue action net/mlx5: add flow stop/s

[dpdk-dev] [PATCH v3 02/21] net/mlx5: handle drop queues as regular queues

2018-07-11 Thread Nelio Laranjeiro
Drop queues are essentially used in flows due to Verbs API, the information if the fate of the flow is a drop or not is already present in the flow. Due to this, drop queues can be fully mapped on regular queues. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 24

[dpdk-dev] [PATCH v3 03/21] net/mlx5: replace verbs priorities by flow

2018-07-11 Thread Nelio Laranjeiro
Previous work introduce verbs priorities, whereas the PMD is making translation between Flow priority into Verbs. Rename this to make more sense on what the PMD has to translate. Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 15

[dpdk-dev] [PATCH] ethdev: fix flow expansion matching types

2018-07-10 Thread Nelio Laranjeiro
flows") Signed-off-by: Nelio Laranjeiro --- lib/librte_ethdev/rte_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c index 2b13efca7..e06cc2193 100644 --- a/lib/librte_ethdev/rte_flow.c +++ b/lib/librte_ethdev/

[dpdk-dev] [PATCH v9 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-07-05 Thread Nelio Laranjeiro
VLAN in the outer encapsulation. - fix the documentation with missing arguments. Changes in v2: - add default IPv6 values for NVGRE encapsulation. - replace VXLAN to NVGRE in comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add

[dpdk-dev] [PATCH v9 1/2] app/testpmd: add VXLAN encap/decap support

2018-07-05 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam Acked-by: Adrien Mazarguil Acked-by: Mohammad

[dpdk-dev] [PATCH v9 2/2] app/testpmd: add NVGRE encap/decap support

2018-07-05 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam Acked-by: Adrien Mazarguil Acked-by: Mohammad

[dpdk-dev] [PATCH v8 2/2] app/testpmd: add NVGRE encap/decap support

2018-07-05 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v8 1/2] app/testpmd: add VXLAN encap/decap support

2018-07-05 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v8 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-07-05 Thread Nelio Laranjeiro
documentation with missing arguments. Changes in v2: - add default IPv6 values for NVGRE encapsulation. - replace VXLAN to NVGRE in comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add NVGRE encap/decap support app/test-pmd

[dpdk-dev] [PATCH v5] ethdev: add flow API to expand RSS flows

2018-06-28 Thread Nelio Laranjeiro
- eth - eth / ipv4 / udp - eth / ipv6 / udp to match the user request. Some drivers are unable to reach such request without this expansion, this API is there to help those. Only PMD should use such API for their internal cooking, the application will still handle a single flow. Signed-off-

[dpdk-dev] [PATCH v2 20/20] net/mlx5: add count flow action

2018-06-27 Thread Nelio Laranjeiro
This is only supported by Mellanox OFED. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c | 238 +++ 2 files changed, 240 insertions(+) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index

[dpdk-dev] [PATCH v2 19/20] net/mlx5: add flow MPLS item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 77 +++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 636aaabe8..7aa4e6ed5 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 18/20] net/mlx5: add flow GRE item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 191 ++- 1 file changed, 186 insertions(+), 5 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 47c55b426..636aaabe8 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 17/20] net/mlx5: add flow VXLAN-GPE item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 123 ++- 1 file changed, 120 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index daf5b9b5a..47c55b426 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 14/20] net/mlx5: remove useless arguments in hrxq API

2018-06-27 Thread Nelio Laranjeiro
RSS level is necessary to had a bit in the hash_fields which is already provided in this API, for the tunnel, it is necessary to request such queue to compute the checksum on the inner most, this last one should always be activated. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5

[dpdk-dev] [PATCH v2 15/20] net/mlx5: support inner RSS computation

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 131 +-- drivers/net/mlx5/mlx5_rxtx.h | 1 - 2 files changed, 96 insertions(+), 36 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 7dda88641

[dpdk-dev] [PATCH v2 12/20] net/mlx5: add mark/flag flow action

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 209 +++ 1 file changed, 209 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 57f072c03..a39157533 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 16/20] net/mlx5: add flow VXLAN item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 242 +-- 1 file changed, 202 insertions(+), 40 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index eedf0c461..daf5b9b5a 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 13/20] net/mlx5: add RSS flow action

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 1211 +- 1 file changed, 899 insertions(+), 312 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index a39157533..08e0a6556 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 11/20] net/mlx5: add flow TCP item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 65 1 file changed, 65 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 06b4b7f41..57f072c03 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 10/20] net/mlx5: add flow UDP item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 65 1 file changed, 65 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 4e018400a..06b4b7f41 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 09/20] net/mlx5: add flow IPv6 item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 108 +++ 1 file changed, 108 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 8e7a0bb5a..4e018400a 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 08/20] net/mlx5: add flow IPv4 item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 83 1 file changed, 83 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6a576ddd9..8e7a0bb5a 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 07/20] net/mlx5: add flow VLAN item

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 123 +++ 1 file changed, 123 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6593eafa0..6a576ddd9 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 06/20] net/mlx5: add flow stop/start

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 7ac1ba24c..6593eafa0 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b

[dpdk-dev] [PATCH v2 04/20] net/mlx5: support flow Ethernet item among with drop action

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5_flow.c | 671 --- 2 files changed, 630 insertions(+), 42 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index c3c8dffae..665a3c31f 100644

[dpdk-dev] [PATCH v2 05/20] net/mlx5: add flow queue action

2018-06-27 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 100 +++ 1 file changed, 89 insertions(+), 11 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index bc8c5de33..7ac1ba24c 100644 --- a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 01/20] net/mlx5: remove flow support

2018-06-27 Thread Nelio Laranjeiro
code and only let the PMD to start in isolated mode. After this patch flow API will not be usable. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 3095 +- 1 file changed, 80 insertions(+), 3015 deletions(-) diff --git a/drivers/net/mlx5

[dpdk-dev] [PATCH v2 03/20] net/mlx5: replace verbs priorities by flow

2018-06-27 Thread Nelio Laranjeiro
Previous work introduce verbs priorities, whereas the PMD is making translation between Flow priority into Verbs. Rename this to make more sense on what the PMD has to translate. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 15 --- drivers/net/mlx5/mlx5.h

[dpdk-dev] [PATCH v2 00/20] net/mlx5: flow rework

2018-06-27 Thread Nelio Laranjeiro
/dpdk/list/?series=267 [2] https://mails.dpdk.org/archives/dev/2018-June/104192.html [3] https://mails.dpdk.org/archives/dev/2018-May/103043.html Nelio Laranjeiro (20): net/mlx5: remove flow support net/mlx5: handle drop queues are regular queues net/mlx5: replace verbs priorities by flow

[dpdk-dev] [PATCH v2 02/20] net/mlx5: handle drop queues are regular queues

2018-06-27 Thread Nelio Laranjeiro
Drop queues are essentially used in flows due to Verbs API, the information if the fate of the flow is a drop or not is already present in the flow. Due to this, drop queues can be fully mapped on regular queues. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.c | 24

[dpdk-dev] [PATCH v4] ethdev: add flow API to expand RSS flows

2018-06-27 Thread Nelio Laranjeiro
- eth - eth / ipv4 / udp - eth / ipv6 / udp to match the user request. Some drivers are unable to reach such request without this expansion, this API is there to help those. Only PMD should use such API for their internal cooking, the application will still handle a single flow. Signed-off-

[dpdk-dev] [PATCH v7 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-06-27 Thread Nelio Laranjeiro
NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add NVGRE encap/decap support app/test-pmd/cmdline.c | 252 ++ app/test-pmd/cmdline_flow.c | 274 app/test-pmd/testpmd.c

[dpdk-dev] [PATCH v7 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-27 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v7 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-27 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v6 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-27 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 134

[dpdk-dev] [PATCH v6 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-27 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 118

[dpdk-dev] [PATCH v6 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-06-27 Thread Nelio Laranjeiro
: - support VLAN in the outer encapsulation. - fix the documentation with missing arguments. Changes in v2: - add default IPv6 values for NVGRE encapsulation. - replace VXLAN to NVGRE in comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app

[dpdk-dev] [PATCH v5 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-27 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v5 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-06-27 Thread Nelio Laranjeiro
missing arguments. Changes in v2: - add default IPv6 values for NVGRE encapsulation. - replace VXLAN to NVGRE in comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add NVGRE encap/decap support app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v5 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-27 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro Acked-by: Ori Kam --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v3] ethdev: add flow API to expand RSS flows

2018-06-21 Thread Nelio Laranjeiro
- eth - eth / ipv4 / udp - eth / ipv6 / udp to match the user request. Some drivers are unable to reach such request without this expansion, this API is there to help those. Only PMD should use such API for their internal cooking, the application will still handle a single flow. Signed-off-

[dpdk-dev] [PATCH v4 0/2] app/testpmd implement VXLAN/NVGRE Encap/Decap

2018-06-21 Thread Nelio Laranjeiro
comments concerning NVGRE layer. Nelio Laranjeiro (2): app/testpmd: add VXLAN encap/decap support app/testpmd: add NVGRE encap/decap support app/test-pmd/cmdline.c | 252 ++ app/test-pmd/cmdline_flow.c | 268 app/test-pmd

[dpdk-dev] [PATCH v4 2/2] app/testpmd: add NVGRE encap/decap support

2018-06-21 Thread Nelio Laranjeiro
the flow command line in testpmd when the action nvgre_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 118

[dpdk-dev] [PATCH v4 1/2] app/testpmd: add VXLAN encap/decap support

2018-06-21 Thread Nelio Laranjeiro
the flow command line in testpmd when the action vxlan_encap will be parsed, at this point, the conversion into such action becomes trivial. This global structure is only used for the encap action. Signed-off-by: Nelio Laranjeiro --- app/test-pmd/cmdline.c | 134

  1   2   3   4   5   6   7   8   9   >