[PATCH 1/9] ethdev: sharing indirect actions between ports

2023-02-06 Thread Viacheslav Ovsiienko
t action any port from sharing domain can be specified. To share or not the created action is up to application, no API change is needed. Signed-off-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c | 6 ++ lib/ethdev/rte_flow.h | 11 +++ 2 files changed, 17 insertions(+) diff --git

[PATCH 2/9] net/mlx5/hws: Matcher, Free FT from RTC id before set the new value

2023-02-06 Thread Viacheslav Ovsiienko
to release that RTC we will get the following syndrome: 0xaa0093 - destroy_rtc_object: rtc in use or doesn't exist. In order to resolve that we clean the current pointed RTC from that ft and only after that setting it to the new RTC value. Signed-off-by: Erez Shitrit Acked-by: Viach

[PATCH 3/9] net/mlx5/hws: fix disconnecting matcher

2023-02-06 Thread Viacheslav Ovsiienko
From: Erez Shitrit This patch fixes the matcher disconnection handling, by removing the RTC references from flow table if the currently removed matcher was the last one for the given table. As a result RTC in this matcher can be correctly freed, since there are no dangling references to the RTC.

[PATCH 4/9] common/mlx5: add cross port object sharing capability

2023-02-06 Thread Viacheslav Ovsiienko
Add query port capabilities to share steering objects between multiple ports of the same physical NIC. Signed-off-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_devx_cmds.c | 13 + drivers/common/mlx5/mlx5_devx_cmds.h | 1 + 2 files changed, 14 insertions(+) diff --git a

[PATCH 5/9] net/mlx5: add cross port shared mode for HW steering

2023-02-06 Thread Viacheslav Ovsiienko
Add host port option for sharing steering objects between multiple ports of the same physical NIC. Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5.c | 6 +++ drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow_hw.c | 78

[PATCH 6/9] net/mlx5: support counters in cross port shared mode

2023-02-06 Thread Viacheslav Ovsiienko
In the cross vHCA sharing mode the host counter pool should be used in counter related routines. The local port pool is used to store the dedicated DR action handle, per queue counter caches and query data are ignored and not allocated on local pool. Signed-off-by: Viacheslav Ovsiienko

[PATCH 7/9] app/testpmd: add host port parameter into flow config

2023-02-06 Thread Viacheslav Ovsiienko
Host port id parameter is added to "flow configure" command. Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 88108498e0..b88756903b 10

[PATCH 8/9] app/testpmd: add shared indirect action support

2023-02-06 Thread Viacheslav Ovsiienko
ingress actions_template_id 18 template shared_indirect 0 0 / queue index 0 / end mask count / queue index 0 / end Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 53 - 1 file changed, 52 insertions(+), 1 deletion(-) diff

[PATCH 9/9] doc: update cross-port indirect shared action

2023-02-06 Thread Viacheslav Ovsiienko
The patch updates the Release Notes and documentation for the indirect RTE Flow actions as shared ones between ports on the same physical NIC. Signed-off-by: Viacheslav Ovsiienko --- doc/guides/rel_notes/release_23_03.rst | 6 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 +++- 2

[PATCH] net/mlx5/hws: support match on ESP item

2023-02-06 Thread Viacheslav Ovsiienko
From: Hamdan Igbaria Add the support to match on SPI and sequence number fields of ESP header. The match on ESP header in harwdare steering is supported only if firmware reports the device supports IPsec offload. Signed-off-by: Hamdan Igbaria Acked-by: Viacheslav Ovsiienko --- drivers

[dpdk-dev] [PATCH] net/mlx4: fix buffer leakage on device close

2021-04-17 Thread Viacheslav Ovsiienko
n the elts array. On the device stop mlx4 PMD freed only the part of elts according tail and head pointers, leaking the rest of buffers, remained in the elts array. Fixes: a2ce2121c01c ("net/mlx4: separate Tx configuration functions") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiien

[dpdk-dev] [PATCH] net/mlx5: fix probing the device in legacy bonding mode

2021-04-21 Thread Viacheslav Ovsiienko
: 2eb4d0107acc ("net/mlx5: refactor PCI probing on Linux") Fixes: d5c06b1b10ae ("net/mlx5: query vport index match mode and parameters") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 3 ++- 1 file changed, 2 insertions(+), 1 delet

[dpdk-dev] [PATCH] net/mlx5: fix Tx queue doorbell record field offset

2021-04-28 Thread Viacheslav Ovsiienko
with Verbs API the doorbell record offset was configured correctly. Fixes: 86d259cec852 ("net/mlx5: separate Tx queue object creations") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_devx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[dpdk-dev] [PATCH] net/mlx5: fix query missed Rx packet stats

2021-04-28 Thread Viacheslav Ovsiienko
There was a typo - the device context was wrongly provided instead of counter's one for the DevX query operation. Fixes: e6988afdc75a ("net/mlx5: fix imissed statistics") Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_os.c | 4 ++-- 1 file changed, 2 i

[dpdk-dev] [PATCH v2 0/5] Add support of indirect action API for count action.

2021-04-29 Thread Viacheslav Ovsiienko
v1: http://patches.dpdk.org/project/dpdk/patch/20210426124250.42771-2-michae...@nvidia.com/ V2: patch rebase Michael Baum (5): net/mlx5: support flow count action handle app/testpmd: remove indirect RSS action query app/testpmd: support indirect counter action query net/mlx5: fix flow ag

[dpdk-dev] [PATCH v2 2/5] app/testpmd: remove indirect RSS action query

2021-04-29 Thread Viacheslav Ovsiienko
From: Michael Baum The port_action_handle_query function supports query operation for indirect RSS action. No driver currently supports this operation, and this support is unnecessary. Remove it. Signed-off-by: Michael Baum Acked-by: Matan Azrad --- app/test-pmd/config.c | 7 --- 1 file

[dpdk-dev] [PATCH v2 1/5] net/mlx5: support flow count action handle

2021-04-29 Thread Viacheslav Ovsiienko
From: Michael Baum Existing API supports counter action to count traffic of a single flow. The user can share the count action among different flows using the shared flag and the same counter ID in the count action configuration. Recent patch [1] introduced the indirect action API. Using this AP

[dpdk-dev] [PATCH v2 3/5] app/testpmd: support indirect counter action query

2021-04-29 Thread Viacheslav Ovsiienko
From: Michael Baum Counter action query was implemented as part of flow query, but was not implemented as part of indirect action query. This patch adds the required implementation. Signed-off-by: Michael Baum Acked-by: Matan Azrad --- app/test-pmd/config.c | 145 ++--

[dpdk-dev] [PATCH v2 4/5] net/mlx5: fix flow age event triggering

2021-04-29 Thread Viacheslav Ovsiienko
From: Michael Baum A FLOW_AGE event should be invoked when a new aged-out flow is detected by the PMD after the last user get-aged query calling. The PMD manages 2 flags for this information and check them in order to decide if an event should be invoked: MLX5_AGE_EVENT_NEW - a new aged-out flow

[dpdk-dev] [PATCH v2 5/5] net/mlx5: use aging by counter when counter is existed

2021-04-29 Thread Viacheslav Ovsiienko
From: Michael Baum The driver support 2 mechanisms in order to support AGE action: 1. Aging by counter - HW counter will be configured to the flow traffic, the driver polls the counter values efficiently to detect flow timeout. 2. Aging by ASO flow hit bit - HW ASO flow-hit bit is allocated for t

[dpdk-dev] [PATCH v2] common/mlx5: add provider query port support to glue library

2021-06-19 Thread Viacheslav Ovsiienko
: Viacheslav Ovsiienko Acked-by: Matan Azrad --- v1: http://patches.dpdk.org/project/dpdk/patch/20210607093726.14546-1-viachesl...@nvidia.com/ v2: commit message was clarified drivers/common/mlx5/linux/meson.build | 4 ++ drivers/common/mlx5/linux/mlx5_glue.c | 57 - drivers

[dpdk-dev] [PATCH] common/mlx5: fix Netlink port name attribute padding

2021-06-19 Thread Viacheslav Ovsiienko
entor") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/common/mlx5/linux/mlx5_nl.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/common/mlx5/linux/mlx5_nl.c b/drivers/common/mlx5/linux/mlx5_nl.c index f0d04f9473..

[dpdk-dev] [PATCH] app/testpmd: fix offloads for the newly attached port

2021-06-19 Thread Viacheslav Ovsiienko
etach functions") Signed-off-by: Viacheslav Ovsiienko --- app/test-pmd/testpmd.c | 32 1 file changed, 32 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 8ed1b97dec..b4ec182423 100644 --- a/app/test-pmd/testpmd.c +++ b/ap

[dpdk-dev] [PATCH] net/mlx5: fix TSO multi-segment inline length

2021-06-19 Thread Viacheslav Ovsiienko
: cacb44a09962 ("net/mlx5: add no-inline Tx flag") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_tx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_tx.h b/drivers/net/mlx5/mlx5_tx.h index 7d3ff8407c..e8b1c0f108 10

[dpdk-dev] [PATCH] net/mlx5: fix multi-segment inline for the first segment

2021-06-22 Thread Viacheslav Ovsiienko
: cacb44a09962 ("net/mlx5: add no-inline Tx flag") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_tx.h | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers/net/mlx5/mlx5_tx.h b/drivers/net/mlx5/mlx5_tx.h index

[dpdk-dev] [PATCH v3 1/2] common/mlx5: add provider query port support to glue library

2021-07-01 Thread Viacheslav Ovsiienko
(it follows the introduced API variation in underlying library), it covers the major compatibility issue and is highly desired to be ported to DPDK LTS. Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- v1: http://patches.dpdk.org/project/dpdk/patch

[dpdk-dev] [PATCH v3 2/2] common/mlx5: fix compilation flag on port query API

2021-07-01 Thread Viacheslav Ovsiienko
port action for LAG") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/common/mlx5/linux/meson.build | 2 ++ drivers/common/mlx5/linux/mlx5_glue.c | 2 +- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) di

[dpdk-dev] [PATCH] common/mlx5: fix Netlink receive message buffer size

2021-07-01 Thread Viacheslav Ovsiienko
o add/remove MAC addresses") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/common/mlx5/linux/mlx5_nl.c | 69 +++-- 1 file changed, 55 insertions(+), 14 deletions(-) diff --git a/drivers/common/mlx5/linux/mlx5_nl.c b/drivers/common/mlx5/linux/mlx5_

[dpdk-dev] [PATCH v4 1/2] common/mlx5: add provider query port support to glue library

2021-07-07 Thread Viacheslav Ovsiienko
.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/common/mlx5/linux/meson.build | 2 + drivers/common/mlx5/linux/mlx5_glue.c | 55 drivers/common/mlx5/linux/mlx5_glue.h | 16 ++- drivers/net/mlx5/linux/mlx5_os.c | 60 --

[dpdk-dev] [PATCH v4 2/2] common/mlx5: fix compilation flag on port query API

2021-07-07 Thread Viacheslav Ovsiienko
. As mlx5dv_query_devx_port is being removed all the dependencies on the HAVE_MLX5DV_DR_DEVX_PORT compilation flag are reconsidered. Fixes: 6cfe84fbe7b1 ("net/mlx5: fix port action for LAG") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/c

[dpdk-dev] [PATCH] net/mlx5: fix the drop action for the DR/DV

2021-04-05 Thread Viacheslav Ovsiienko
: sta...@dpdk.org Fixes: 34fa7c0268e7 ("net/mlx5: add drop action to Direct Verbs E-Switch") Fixes: 65b3cd0dc39b ("net/mlx5: create global drop action") Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/net/mlx5/linux/mlx5_os.c | 24 +---

[dpdk-dev] [PATCH] net/mlx5: fix drop queue function declarations

2021-04-05 Thread Viacheslav Ovsiienko
There are some leftovers of removed code - there are no drop queue handling routines anymore. Fixes: 78be885295b8 ("net/mlx5: handle drop queues as regular queues") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5.h | 2 -- 1 file changed, 2 deletion

[dpdk-dev] [PATCH] net/mlx4: fix RSS action hash key null pointer

2021-04-07 Thread Viacheslav Ovsiienko
actions rss queues 0 end key_len 40 / end Fixes: ac8d22de2394 ("ethdev: flatten RSS configuration in flow API") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx4/mlx4_flow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx4/mlx

[PATCH v2 1/2] net/mlx5: fix metadata endianness in modify field action

2022-02-03 Thread Viacheslav Ovsiienko
. Fixes: 40c8fb1fd3b3 ("net/mlx5: update modify field action") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_

[PATCH v2 2/2] net/mlx5: remove unused metadata shift parameter

2022-02-03 Thread Viacheslav Ovsiienko
Due to updated modify field actionimmediate value buffer pattern [1] the implicit shift for the metadata is not needed anymore and should be removed. [1] commit 40c8fb1fd3b3 ("net/mlx5: update modify field action") Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow

[PATCH 0/4] net/mlx5: support send scheduling for ConnextX-7

2022-02-14 Thread Viacheslav Ovsiienko
with reference Clock Queue and inter-queue synchronizing operations. Since ConnectX-7 the new wait descriptor format is introduced where the timestamp can be promoted to hardware directly. The patchset adds support for this new hardware option in PMD. Signed-off-by: Viacheslav Ovsiienko

[PATCH 1/4] common/mlx5: add send on time capability check

2022-02-14 Thread Viacheslav Ovsiienko
The patch provides check for send scheduling on time hardware capability. With this capability enabled hardware is able to handle Wait WQEs with directly specified timestamp values. No Clock Queue is needed anymore to handle send scheduling. Signed-off-by: Viacheslav Ovsiienko --- drivers

[PATCH 2/4] net/mlx5: configure Tx queue with send on time offload

2022-02-14 Thread Viacheslav Ovsiienko
The wait on time configuration flag is copied to the Tx queue structure due to performance considerations. Timestamp mask is preparted and stored in queue structure as well. Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_verbs.c | 2 ++ drivers/net/mlx5/mlx5.h

[PATCH 3/4] net/mlx5: add wait on time support in Tx datapath

2022-02-14 Thread Viacheslav Ovsiienko
time. This patch update the Tx datapath to handle this new hardware wait capability. Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/linux/mlx5_verbs.c | 4 +- drivers/net/mlx5/mlx5_tx.h | 72 + drivers/net/mlx5/mlx5_txq.c | 7 ++- 3 files

[PATCH 4/4] doc: update send scheduling mlx5 feature description

2022-02-14 Thread Viacheslav Ovsiienko
Updated: - send scheduling feature description for mlx5 - release notes Signed-off-by: Viacheslav Ovsiienko --- doc/guides/nics/mlx5.rst | 5 + doc/guides/rel_notes/release_22_03.rst | 6 ++ 2 files changed, 11 insertions(+) diff --git a/doc/guides/nics/mlx5.rst b/doc

[dpdk-dev] [PATCH v3 2/5] ethdev: support flow elements with variable length

2021-10-11 Thread Viacheslav Ovsiienko
: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c | 83 --- 1 file changed, 70 insertions(+), 13 deletions(-) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c index 8cb7a069c8..100983ca59 100644 --- a/lib/ethdev/rte_flow.c +++ b/lib/ethdev

[dpdk-dev] [PATCH v3 3/5] ethdev: implement RTE flex item API

2021-10-11 Thread Viacheslav Ovsiienko
y: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c| 40 lib/ethdev/rte_flow_driver.h | 8 lib/ethdev/version.map | 4 3 files changed, 52 insertions(+) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_fl

[dpdk-dev] [PATCH v3 1/5] ethdev: introduce configurable flexible item

2021-10-11 Thread Viacheslav Ovsiienko
tch = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_flow.h | 222 +++

[dpdk-dev] [PATCH v3 0/5] ethdev: introduce configurable flexible item

2021-10-11 Thread Viacheslav Ovsiienko
iguration refactored - testpmd updated - documentation updated - PMD patches are removed temporarily (updating WIP, be presented in rc2) - v1 -> v2: - testpmd CLI to handle flex item is provided - draft PMD code is introduced Signed-off-by: Viacheslav Ovsiienko Gregory Etelson (4)

[dpdk-dev] [PATCH v3 4/5] app/testpmd: add jansson library

2021-10-11 Thread Viacheslav Ovsiienko
format from STDIN or input file and convert it into C object using jansson library calls. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/meson.build | 5 + app/test-pmd/testpmd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v3 5/5] app/testpmd: add flex item CLI commands

2021-10-11 Thread Viacheslav Ovsiienko
gory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 2 + app/test-pmd/cmdline_flow.c | 763 +++- app/test-pmd/testpmd.c | 2 +- app/test-pmd/testpmd.h | 16 + doc/guides/te

[dpdk-dev] [PATCH v3 0/5] ethdev: update modify field flow action

2021-10-12 Thread Viacheslav Ovsiienko
- mlx5 PMD updated v3: - comments addressed - documentation updated - typos fixed Signed-off-by: Viacheslav Ovsiienko Viacheslav Ovsiienko (5): ethdev: update modify field flow action ethdev: fix missed experimental tag for modify field action app/testpmd: update modify field f

[dpdk-dev] [PATCH v3 1/5] ethdev: update modify field flow action

2021-10-12 Thread Viacheslav Ovsiienko
deprecation notice has been removed. [1] commit 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Fixes: 2ba49b5f3721 ("doc: announce change to ethdev modify action data") Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/prog_guide/r

[dpdk-dev] [PATCH v3 2/5] ethdev: fix missed experimental tag for modify field action

2021-10-12 Thread Viacheslav Ovsiienko
EXPERIMENTAL tag was missed in rte_flow_action_modify_data structure description. Fixes: 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.h | 3 +++ 1 file changed, 3 insertions(+) diff -

[dpdk-dev] [PATCH v3 4/5] app/testpmd: fix hex string parser in flow commands

2021-10-12 Thread Viacheslav Ovsiienko
ned-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 736029c4fd..6827d9228f 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/ap

[dpdk-dev] [PATCH v3 3/5] app/testpmd: update modify field flow action support

2021-10-12 Thread Viacheslav Ovsiienko
32 / end 4. Assign destination MAC with EA:11:0B:AD:0B:ED value: flow create 0 egress group 1 pattern eth / end actions modify_field op set dst_type mac_dst src_type value src_value EA110BAD0BED width 48 / end Signed-off-by: V

[dpdk-dev] [PATCH v3 5/5] net/mlx5: update modify field action

2021-10-12 Thread Viacheslav Ovsiienko
immediate value offset is expected Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- drivers/net/mlx5/mlx5_flow_dv.c | 50 +++-- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c

[dpdk-dev] [PATCH v4 3/5] app/testpmd: update modify field flow action support

2021-10-12 Thread Viacheslav Ovsiienko
32 / end 4. Assign destination MAC with EA:11:0B:AD:0B:ED value: flow create 0 egress group 1 pattern eth / end actions modify_field op set dst_type mac_dst src_type value src_value EA110BAD0BED width 48 / end Signed-off-by: V

[dpdk-dev] [PATCH v4 5/5] net/mlx5: update modify field action

2021-10-12 Thread Viacheslav Ovsiienko
immediate value offset is expected Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 123 +++- 1 file changed, 42 insertions(+), 81 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index c6370cd1d6

[dpdk-dev] [PATCH v4 0/5] ethdev: update modify field flow action

2021-10-12 Thread Viacheslav Ovsiienko
nd cleanup Viacheslav Ovsiienko (5): ethdev: update modify field flow action ethdev: fix missed experimental tag for modify field action app/testpmd: update modify field flow action support app/testpmd: fix hex string parser in flow commands net/mlx5: update modify field action app/test-pmd/cmdl

[dpdk-dev] [PATCH v4 2/5] ethdev: fix missed experimental tag for modify field action

2021-10-12 Thread Viacheslav Ovsiienko
EXPERIMENTAL tag was missed in rte_flow_action_modify_data structure description. Fixes: 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- lib/ethdev/rte_flow.h

[dpdk-dev] [PATCH v4 4/5] app/testpmd: fix hex string parser in flow commands

2021-10-12 Thread Viacheslav Ovsiienko
ned-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 736029c4fd..6827d9228f 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/ap

[dpdk-dev] [PATCH v4 1/5] ethdev: update modify field flow action

2021-10-12 Thread Viacheslav Ovsiienko
deprecation notice has been removed. [1] commit 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Fixes: 2ba49b5f3721 ("doc: announce change to ethdev modify action data") Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- d

[dpdk-dev] [PATCH v4 3/5] ethdev: implement RTE flex item API

2021-10-12 Thread Viacheslav Ovsiienko
y: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c| 40 lib/ethdev/rte_flow_driver.h | 8 lib/ethdev/version.map | 4 3 files changed, 52 insertions(+) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_fl

[dpdk-dev] [PATCH v4 0/5] ethdev: introduce configurable flexible item

2021-10-12 Thread Viacheslav Ovsiienko
ly (updating WIP, be presented in rc2) - v1 -> v2: - testpmd CLI to handle flex item is provided - draft PMD code is introduced Signed-off-by: Viacheslav Ovsiienko Gregory Etelson (4): ethdev: support flow elements with variable length ethdev: implement RTE flex item API app/

[dpdk-dev] [PATCH v4 2/5] ethdev: support flow elements with variable length

2021-10-12 Thread Viacheslav Ovsiienko
order to handle this item (and potentially other new ones with variable pattern length) in RTE flow copy and conversion routines the helper function is introduced. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c | 83

[dpdk-dev] [PATCH v4 1/5] ethdev: introduce configurable flexible item

2021-10-12 Thread Viacheslav Ovsiienko
tch = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_flow.h | 222 +++

[dpdk-dev] [PATCH v4 5/5] app/testpmd: add flex item CLI commands

2021-10-12 Thread Viacheslav Ovsiienko
gory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 2 + app/test-pmd/cmdline_flow.c | 764 +++- app/test-pmd/testpmd.c | 2 +- app/test-pmd/testpmd.h | 16 + doc/guides/te

[dpdk-dev] [PATCH v4 4/5] app/testpmd: add jansson library

2021-10-12 Thread Viacheslav Ovsiienko
format from STDIN or input file and convert it into C object using jansson library calls. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/meson.build | 5 + app/test-pmd/testpmd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v5 0/5] ethdev: introduce configurable flexible item

2021-10-12 Thread Viacheslav Ovsiienko
ds removed as not supported and non-complete API - tunnel mode configuration refactored - testpmd updated - documentation updated - PMD patches are removed temporarily (updating WIP, be presented in rc2) - v1 -> v2: - testpmd CLI to handle flex item is provided - draft PMD cod

[dpdk-dev] [PATCH v5 1/5] ethdev: introduce configurable flexible item

2021-10-12 Thread Viacheslav Ovsiienko
tch = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_flow.h | 222

[dpdk-dev] [PATCH v5 2/5] ethdev: support flow elements with variable length

2021-10-12 Thread Viacheslav Ovsiienko
to handle this item (and potentially other new ones with variable pattern length) in RTE flow copy and conversion routines the helper function is introduced. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- lib/ethdev/rte_flow.c | 81

[dpdk-dev] [PATCH v5 3/5] ethdev: implement RTE flex item API

2021-10-12 Thread Viacheslav Ovsiienko
y: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c| 40 lib/ethdev/rte_flow_driver.h | 8 lib/ethdev/version.map | 4 3 files changed, 52 insertions(+) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_fl

[dpdk-dev] [PATCH v5 4/5] app/testpmd: add jansson library

2021-10-12 Thread Viacheslav Ovsiienko
format from STDIN or input file and convert it into C object using jansson library calls. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- app/test-pmd/meson.build | 5 + app/test-pmd/testpmd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a

[dpdk-dev] [PATCH v5 5/5] app/testpmd: add flex item CLI commands

2021-10-12 Thread Viacheslav Ovsiienko
gory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline.c | 2 + app/test-pmd/cmdline_flow.c | 764 +++- app/test-pmd/testpmd.c | 2 +- app/test-pmd/testpmd.h | 16 + doc/guides/te

[dpdk-dev] [PATCH v6 0/5] ethdev: update modify field flow action

2021-10-13 Thread Viacheslav Ovsiienko
d variable in mlx5 Viacheslav Ovsiienko (5): ethdev: update modify field flow action ethdev: fix missed experimental tag for modify field action app/testpmd: update modify field flow action support app/testpmd: fix hex string parser in flow commands net/mlx5: update modify field action ap

[dpdk-dev] [PATCH v6 1/5] ethdev: update modify field flow action

2021-10-13 Thread Viacheslav Ovsiienko
deprecation notice has been removed. [1] commit 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Fixes: 2ba49b5f3721 ("doc: announce change to ethdev modify action data") Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- d

[dpdk-dev] [PATCH v6 2/5] ethdev: fix missed experimental tag for modify field action

2021-10-13 Thread Viacheslav Ovsiienko
EXPERIMENTAL tag was missed in rte_flow_action_modify_data structure description. Fixes: 73b68f4c54a0 ("ethdev: introduce generic modify flow action") Cc: sta...@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- lib/ethdev/rte_flow.h

[dpdk-dev] [PATCH v6 3/5] app/testpmd: update modify field flow action support

2021-10-13 Thread Viacheslav Ovsiienko
32 / end 4. Assign destination MAC with EA:11:0B:AD:0B:ED value: flow create 0 egress group 1 pattern eth / end actions modify_field op set dst_type mac_dst src_type value src_value EA110BAD0BED width 48 / end Signed-off-by: V

[dpdk-dev] [PATCH v6 4/5] app/testpmd: fix hex string parser in flow commands

2021-10-13 Thread Viacheslav Ovsiienko
ned-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 736029c4fd..6827d9228f 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/ap

[dpdk-dev] [PATCH v6 5/5] net/mlx5: update modify field action

2021-10-13 Thread Viacheslav Ovsiienko
immediate value offset is expected (the source subfield is located at the same offset as in destination) Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 128 +++- 1 file changed, 44 insertions(+), 84 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v6 0/6] ethdev: introduce configurable flexible item

2021-10-18 Thread Viacheslav Ovsiienko
tation updated - PMD patches are removed temporarily (updating WIP, be presented in rc2) - v1 -> v2: - testpmd CLI to handle flex item is provided - draft PMD code is introduced Signed-off-by: Viacheslav Ovsiienko Gregory Etelson (5): ethdev: support flow elements with variab

[dpdk-dev] [PATCH v6 1/6] ethdev: introduce configurable flexible item

2021-10-18 Thread Viacheslav Ovsiienko
tch = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_flow.h | 222

[dpdk-dev] [PATCH v6 2/6] ethdev: support flow elements with variable length

2021-10-18 Thread Viacheslav Ovsiienko
to handle this item (and potentially other new ones with variable pattern length) in RTE flow copy and conversion routines the helper function is introduced. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- lib/ethdev/rte_flow.c | 81

[dpdk-dev] [PATCH v6 5/6] app/testpmd: add dedicated flow command parsing routine

2021-10-18 Thread Viacheslav Ovsiienko
From: Gregory Etelson testpmd flow creation is constructed from these procedures: 1. receive string with flow rule description; 2. parse input string and build flow parameters: port_id value, flow attributes, items array, actions array; 3. create a flow rule from flow rule parameters.

[dpdk-dev] [PATCH v6 3/6] ethdev: implement RTE flex item API

2021-10-18 Thread Viacheslav Ovsiienko
y: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- lib/ethdev/rte_flow.c| 40 lib/ethdev/rte_flow_driver.h | 8 lib/ethdev/version.map | 2 ++ 3 files changed, 50 insertions(+) diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_fl

[dpdk-dev] [PATCH v6 4/6] app/testpmd: add jansson library

2021-10-18 Thread Viacheslav Ovsiienko
format from STDIN or input file and convert it into C object using jansson library calls. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- app/test-pmd/meson.build | 5 + app/test-pmd/testpmd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a

[dpdk-dev] [PATCH v6 6/6] app/testpmd: add flex item CLI commands

2021-10-18 Thread Viacheslav Ovsiienko
gory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmd_flex_item.c| 548 app/test-pmd/cmdline.c | 2 + app/test-pmd/cmdline_flow.c | 223 +++- app/test-pmd/meson.build| 1 + app/test-p

[dpdk-dev] [PATCH v7 1/4] ethdev: support flow elements with variable length

2021-10-20 Thread Viacheslav Ovsiienko
potentially other new ones with variable pattern length) in flow copy and conversion routines the helper function is introduced. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- lib/ethdev/rte_flow.c | 66 ++- 1 file

[dpdk-dev] [PATCH v7 0/4] ethdev: introduce configurable flexible item

2021-10-20 Thread Viacheslav Ovsiienko
v1 -> v2: - testpmd CLI to handle flex item is provided - draft PMD code is introduced Signed-off-by: Viacheslav Ovsiienko Gregory Etelson (2): app/testpmd: add dedicated flow command parsing routine app/testpmd: add flex item CLI commands Viacheslav Ovsiienko (2): ethdev:

[dpdk-dev] [PATCH v7 2/4] ethdev: introduce configurable flexible item

2021-10-20 Thread Viacheslav Ovsiienko
tch = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_flow.c |

[dpdk-dev] [PATCH v7 3/4] app/testpmd: add dedicated flow command parsing routine

2021-10-20 Thread Viacheslav Ovsiienko
provides a caller with parsed data. This is a preparation step for introducing flex item command processing. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 24 app/test-pmd/testpmd.h | 5 + 2 files changed, 29

[dpdk-dev] [PATCH v7 4/4] app/testpmd: add flex item CLI commands

2021-10-20 Thread Viacheslav Ovsiienko
tionality is disabled. Jansson development files must be present: jansson.pc, jansson.h libjansson.[a,so] Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmd_flex_item.c| 548 app/test-pmd/cmdline.c | 2

[dpdk-dev] [PATCH v8 0/4] ethdev: introduce configurable flexible item

2021-10-20 Thread Viacheslav Ovsiienko
non-complete API - tunnel mode configuration refactored - testpmd updated - documentation updated - PMD patches are removed temporarily (updating WIP, be presented in rc2) - v1 -> v2: - testpmd CLI to handle flex item is provided - draft PMD code is introduced Signed-off

[dpdk-dev] [PATCH v8 1/4] ethdev: support flow elements with variable length

2021-10-20 Thread Viacheslav Ovsiienko
handle this item (and potentially other new ones with variable pattern length) in flow copy and conversion routines the helper function is introduced. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- lib/ethdev/rte_flow.c | 66

[dpdk-dev] [PATCH v8 4/4] app/testpmd: add flex item CLI commands

2021-10-20 Thread Viacheslav Ovsiienko
tionality is disabled. Jansson development files must be present: jansson.pc, jansson.h libjansson.[a,so] Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmd_flex_item.c| 548 app/test-pmd/cmdline.c | 2

[dpdk-dev] [PATCH v8 2/4] ethdev: introduce configurable flexible item

2021-10-20 Thread Viacheslav Ovsiienko
tch = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko Acked-by: Ori Kam --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_flow.c |

[dpdk-dev] [PATCH v8 3/4] app/testpmd: add dedicated flow command parsing routine

2021-10-20 Thread Viacheslav Ovsiienko
provides a caller with parsed data. This is a preparation step for introducing flex item command processing. Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 24 app/test-pmd/testpmd.h | 5 + 2 files changed, 29

[dpdk-dev] [RFC 3/3] app/testpmd: fix hex string parser in flow commands

2021-09-10 Thread Viacheslav Ovsiienko
ned-off-by: Viacheslav Ovsiienko --- app/test-pmd/cmdline_flow.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 529ead6b2a..9e7fe1ae9f 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @

[dpdk-dev] [RFC 2/3] app/testpmd: update modify field flow action support

2021-09-10 Thread Viacheslav Ovsiienko
32 / end 4. Assign destination MAC with EA:11:0B:AD:0B:ED value: flow create 0 egress group 1 pattern eth / end actions modify_field op set dst_type mac_dst src_type value src_value EA110BAD0BED width 48 / end Signed-off-by: V

[dpdk-dev] [RFC 1/3] ethdev: update modify field flow action

2021-09-10 Thread Viacheslav Ovsiienko
73b68f4c54a0 ("ethdev: introduce generic modify flow action") Signed-off-by: Viacheslav Ovsiienko --- doc/guides/prog_guide/rte_flow.rst | 8 doc/guides/rel_notes/release_21_11.rst | 7 +++ lib/ethdev/rte_flow.h | 15 --- 3 files changed, 27

[dpdk-dev] [PATCH 0/3] ethdev: introduce configurable flexible item

2021-09-22 Thread Viacheslav Ovsiienko
y Etelson (2): ethdev: support flow elements with variable length ethdev: implement RTE flex item API Viacheslav Ovsiienko (1): ethdev: introduce configurable flexible item doc/guides/prog_guide/rte_flow.rst | 24 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_e

[dpdk-dev] [PATCH 2/3] ethdev: support flow elements with variable length

2021-09-22 Thread Viacheslav Ovsiienko
From: Gregory Etelson RTE flow API provides RAW item type for packet patterns of variable length. The RAW item structure has fixed size members that describe the variable pattern length and methods to process it. A new RTE flow item type with variable length pattern that does not fit the RAW ite

[dpdk-dev] [PATCH 1/3] ethdev: introduce configurable flexible item

2021-09-22 Thread Viacheslav Ovsiienko
tem item_to_match = { .type = RTE_FLOW_ITEM_TYPE_FLEX, .spec = &spec_flex, .mask = &mask_flex, }; Signed-off-by: Viacheslav Ovsiienko --- doc/guides/prog_guide/rte_flow.rst | 24 +++ doc/guides/rel_notes/release_21_11.rst | 7 + lib/ethdev/rte_e

[dpdk-dev] [PATCH 3/3] ethdev: implement RTE flex item API

2021-09-22 Thread Viacheslav Ovsiienko
From: Gregory Etelson RTE flex item API was introduced in "ethdev: introduce configurable flexible item" patch. The API allows DPDK application to define parser for custom network header in port hardware and offload flows that will match the custom header elements. Signed-off-by: Gregory Etelso

  1   2   3   4   5   6   7   8   9   10   >