[PATCH v3] testpmd: add hairpin-map parameter

2023-09-28 Thread Gregory Etelson
] binds Rx port 0, queue 3 with Tx port 2, queue 2, Rx port 0, queue 4 with Tx port 2, queue 3, Rx port 0, queue 5 with Tx port 2, queue 4. The new `hairpin-map` parameter is optional. If omitted, testpmd will create "default" hairpin maps. Signed-off-by: Gregory Etelson --- v2: F

[PATCH v2 01/16] net/mlx5/hws: add support for reformat DevX object

2023-10-16 Thread Gregory Etelson
From: Hamdan Igbaria Add support for creation of packet reformat object, via the ALLOC_PACKET_REFORMAT_CONTEXT command. Signed-off-by: Hamdan Igbaria --- drivers/common/mlx5/mlx5_prm.h | 39 + drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 ++ drive

[PATCH v2 02/16] net/mlx5/hws: support creating of dynamic forward table and FTE

2023-10-16 Thread Gregory Etelson
From: Hamdan Igbaria Add the ability to create forward table and FTE. Signed-off-by: Hamdan Igbaria --- drivers/common/mlx5/mlx5_prm.h| 4 drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 + drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++ 3 files changed, 36 insertions(

[PATCH v2 03/16] net/mlx5/hws: add mlx5dr DevX object struct to mlx5dr action

2023-10-16 Thread Gregory Etelson
From: Hamdan Igbaria Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold the FT obj in dest table action. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_action.c | 4 drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++ drivers/net/mlx5/hws/mlx5dr_table.c | 1 - 3 files

[PATCH v2 05/16] net/mlx5/hws: allow destination into default miss FT

2023-10-16 Thread Gregory Etelson
From: Erez Shitrit In FDB it will direct the packet into the hypervisor vport. That allows the user to mirror packets into the default-miss vport. Signed-off-by: Erez Shitrit --- drivers/net/mlx5/hws/mlx5dr_action.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/m

[PATCH v2 04/16] net/mlx5/hws: add support for mirroring

2023-10-16 Thread Gregory Etelson
From: Shun Hao This patch supports mirroring by adding an dest_array action. The action accecpts a list containing multiple destination actions, and can duplicate packet and forward to each destination in the list. Signed-off-by: Shun Hao Acked-by: Alex Vesker --- drivers/common/mlx5/mlx5_prm

[PATCH v2 06/16] net/mlx5/hws: support reformat for hws mirror

2023-10-16 Thread Gregory Etelson
From: Haifei Luo In dest_array action, an optional reformat action can be applied to each destination. This patch supports this by using the extended destination entry. Signed-off-by: Haifei Luo Signed-off-by: Shun Hao --- drivers/common/mlx5/mlx5_prm.h | 15 +++ drivers/net/mlx5/hw

[PATCH v2 07/16] net/mlx5: reformat HWS code

2023-10-16 Thread Gregory Etelson
Replace if() with switch(). Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++--- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 6fcf654e4a..b2215fb5cf

[PATCH v2 08/16] net/mlx5: support HWS mirror action

2023-10-16 Thread Gregory Etelson
action without configuration is invalid and will be rejected by PMD. Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c| 134 +++ drivers/net/mlx5/mlx5_flow.h| 69 +++- drivers/net/mlx5

[PATCH v2 09/16] net/mlx5: fix mirror action validation

2023-10-16 Thread Gregory Etelson
HWS mirror flow action validation rejected flows in NIC domain, if PMD FDB mode was active. The patch allows NIC mirror action in FDB mode. Fixes: 0284c9b82ee8 ("net/mlx5: support HWS mirror action") Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow

[PATCH v2 10/16] net/mlx5: fix in shared counter and age template action create

2023-10-16 Thread Gregory Etelson
("net/mlx5: reformat HWS code") Cc: sta...@dpdk.org Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow_hw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 910d42a5f5..efb2d512b7 10

[PATCH v2 11/16] net/mlx5: fix modify field expansion for raw DECAP / ENCAP

2023-10-16 Thread Gregory Etelson
the RAW_DECAP / RAW_ENCAP sequence as 2 separate actions. As the result location selection was wrong. The patch fixes RAW_DECAP / RAW_ENCAP sequence processing for MODIFY_FIELD expansion. Fixes: cf7f458 ("net/mlx5: add indirect QUOTA create/query/modify") Signed-off-by: Grego

[PATCH v2 12/16] net/mlx5: refactor HWS code

2023-10-16 Thread Gregory Etelson
1. In `rte_flow_actions_template`, rename `actions_off` into `dr_off`. 2. Remove duplicated code in template table creation. Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow.h| 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 117 ++-- 2 files changed, 52

[PATCH v2 13/16] net/mlx5: fix RTE action location tracking in a template

2023-10-16 Thread Gregory Etelson
ended metadata mode for HWS") Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow.h| 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 90 - 2 files changed, 45 insertions(+), 47 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/m

[PATCH v2 14/16] net/mlx5: fix mirror redirect action

2023-10-16 Thread Gregory Etelson
PMD used a buffer located on expired stack to store mirror reformat data. The patch moves reformat buffer to the same context as the mirror action creation. Fixes: 0284c9b82ee8 ("net/mlx5: support HWS mirror action") Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow

[PATCH v2 15/16] net/mlx5: support indirect list METER_MARK action

2023-10-16 Thread Gregory Etelson
Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow.c| 69 +- drivers/net/mlx5/mlx5_flow.h| 67 - drivers/net/mlx5/mlx5_flow_hw.c | 427 +++- 3 files changed, 482 insertions(+), 81 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b

[PATCH v2 16/16] net/mlx5: fix METER_MARK indirection list callback

2023-10-16 Thread Gregory Etelson
`mlx5_action_construct_data` types union to prevent it's collision with shared_meter. Fixes: 82641ccee69d ("net/mlx5: support indirect list METER_MARK action") Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5_flow.h| 4 +--- drivers/net/mlx5/mlx5_flow_hw.c | 5 +++-- 2 files change

[PATCH v2 00/16] net/mlx5: support indirect actions list

2023-10-17 Thread Gregory Etelson
Erez Shitrit (1): net/mlx5/hws: allow destination into default miss FT Gregory Etelson (10): net/mlx5: reformat HWS code net/mlx5: support HWS mirror action net/mlx5: fix mirror action validation net/mlx5: fix in shared counter and age template action create net/mlx5: fix modify field

[PATCH v3 00/16] net/mlx5: support indirect actions list

2023-10-17 Thread Gregory Etelson
Add MLX5 PMD support for indirect actions list. Erez Shitrit (1): net/mlx5/hws: allow destination into default miss FT Gregory Etelson (10): net/mlx5: reformat HWS code net/mlx5: support HWS mirror action net/mlx5: fix mirror action validation net/mlx5: fix in shared counter and age

[PATCH v3 01/16] net/mlx5/hws: add support for reformat DevX object

2023-10-17 Thread Gregory Etelson
From: Hamdan Igbaria Add support for creation of packet reformat object, via the ALLOC_PACKET_REFORMAT_CONTEXT command. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 39 + drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 +

[PATCH v3 02/16] net/mlx5/hws: support creating of dynamic forward table and FTE

2023-10-17 Thread Gregory Etelson
From: Hamdan Igbaria Add the ability to create forward table and FTE. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h| 4 drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 + drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++ 3 files

[PATCH v3 03/16] net/mlx5/hws: add mlx5dr DevX object struct to mlx5dr action

2023-10-17 Thread Gregory Etelson
From: Hamdan Igbaria Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold the FT obj in dest table action. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 4 drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++ drivers/net/mlx5/hws/mlx5dr

[PATCH v3 04/16] net/mlx5/hws: add support for mirroring

2023-10-17 Thread Gregory Etelson
From: Shun Hao This patch supports mirroring by adding an dest_array action. The action accecpts a list containing multiple destination actions, and can duplicate packet and forward to each destination in the list. Signed-off-by: Shun Hao Acked-by: Alex Vesker Acked-by: Suanming Mou --- driv

[PATCH v3 05/16] net/mlx5/hws: allow destination into default miss FT

2023-10-17 Thread Gregory Etelson
From: Erez Shitrit In FDB it will direct the packet into the hypervisor vport. That allows the user to mirror packets into the default-miss vport. Signed-off-by: Erez Shitrit Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 11 +++ 1 file changed, 11 insertions(+) di

[PATCH v3 07/16] net/mlx5: reformat HWS code

2023-10-17 Thread Gregory Etelson
Replace if() with switch(). Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++--- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index

[PATCH v3 06/16] net/mlx5/hws: support reformat for hws mirror

2023-10-17 Thread Gregory Etelson
From: Haifei Luo In dest_array action, an optional reformat action can be applied to each destination. This patch supports this by using the extended destination entry. Signed-off-by: Haifei Luo Signed-off-by: Shun Hao Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 15

[PATCH v3 08/16] net/mlx5: support HWS mirror action

2023-10-17 Thread Gregory Etelson
action without configuration is invalid and will be rejected by PMD. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c| 134 +++ drivers/net/mlx5/mlx5_flow.h| 69

[PATCH v3 09/16] net/mlx5: fix mirror action validation

2023-10-17 Thread Gregory Etelson
HWS mirror flow action validation rejected flows in NIC domain, if PMD FDB mode was active. The patch allows NIC mirror action in FDB mode. Fixes: 0284c9b82ee8 ("net/mlx5: support HWS mirror action") Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5

[PATCH v3 10/16] net/mlx5: fix in shared counter and age template action create

2023-10-17 Thread Gregory Etelson
("net/mlx5: reformat HWS code") Cc: sta...@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index

[PATCH v3 12/16] net/mlx5: refactor HWS code

2023-10-17 Thread Gregory Etelson
1. In `rte_flow_actions_template`, rename `actions_off` into `dr_off`. 2. Remove duplicated code in template table creation. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 117

[PATCH v3 11/16] net/mlx5: fix modify field expansion for raw DECAP / ENCAP

2023-10-17 Thread Gregory Etelson
the RAW_DECAP / RAW_ENCAP sequence as 2 separate actions. As the result location selection was wrong. The patch fixes RAW_DECAP / RAW_ENCAP sequence processing for MODIFY_FIELD expansion. Fixes: cf7f458 ("net/mlx5: add indirect QUOTA create/query/modify") Signed-off-by: Gregory Etelson

[PATCH v3 13/16] net/mlx5: fix RTE action location tracking in a template

2023-10-17 Thread Gregory Etelson
ended metadata mode for HWS") Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 90 - 2 files changed, 45 insertions(+), 47 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h

[PATCH v3 14/16] net/mlx5: fix mirror redirect action

2023-10-17 Thread Gregory Etelson
PMD used a buffer located on expired stack to store mirror reformat data. The patch moves reformat buffer to the same context as the mirror action creation. Fixes: 0284c9b82ee8 ("net/mlx5: support HWS mirror action") Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- driver

[PATCH v3 15/16] net/mlx5: support indirect list METER_MARK action

2023-10-17 Thread Gregory Etelson
Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 69 +- drivers/net/mlx5/mlx5_flow.h| 67 - drivers/net/mlx5/mlx5_flow_hw.c | 427 +++- 3 files changed, 482 insertions(+), 81 deletions(-) diff --git a/drivers

[PATCH v3 16/16] net/mlx5: fix METER_MARK indirection list callback

2023-10-17 Thread Gregory Etelson
`mlx5_action_construct_data` types union to prevent it's collision with shared_meter. Fixes: 82641ccee69d ("net/mlx5: support indirect list METER_MARK action") Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 4 +--- drivers/net/mlx5/mlx5_flow_hw.c | 5

[PATCH v4 00/10] net/mlx5: support indirect actions list

2023-10-23 Thread Gregory Etelson
Add MLX5 PMD support for indirect actions list. Erez Shitrit (1): net/mlx5/hws: allow destination into default miss FT Gregory Etelson (4): net/mlx5: reformat HWS code for HWS mirror action net/mlx5: support HWS mirror action net/mlx5: reformat HWS code for indirect list actions net

[PATCH v4 01/10] net/mlx5/hws: add support for reformat DevX object

2023-10-23 Thread Gregory Etelson
From: Hamdan Igbaria Add support for creation of packet reformat object, via the ALLOC_PACKET_REFORMAT_CONTEXT command. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 39 + drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 +

[PATCH v4 02/10] net/mlx5/hws: support creating of dynamic forward table and FTE

2023-10-23 Thread Gregory Etelson
From: Hamdan Igbaria Add the ability to create forward table and FTE. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h| 4 drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 + drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++ 3 files

[PATCH v4 03/10] net/mlx5/hws: add mlx5dr DevX object struct to mlx5dr action

2023-10-23 Thread Gregory Etelson
From: Hamdan Igbaria Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold the FT obj in dest table action. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 4 drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++ drivers/net/mlx5/hws/mlx5dr

[PATCH v4 04/10] net/mlx5/hws: add support for mirroring

2023-10-23 Thread Gregory Etelson
From: Shun Hao This patch supports mirroring by adding an dest_array action. The action accecpts a list containing multiple destination actions, and can duplicate packet and forward to each destination in the list. Signed-off-by: Shun Hao Acked-by: Alex Vesker Acked-by: Suanming Mou --- driv

[PATCH v4 05/10] net/mlx5/hws: allow destination into default miss FT

2023-10-23 Thread Gregory Etelson
From: Erez Shitrit In FDB it will direct the packet into the hypervisor vport. That allows the user to mirror packets into the default-miss vport. Signed-off-by: Erez Shitrit Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 11 +++ 1 file changed, 11 insertions(+) di

[PATCH v4 06/10] net/mlx5/hws: support reformat for hws mirror

2023-10-23 Thread Gregory Etelson
From: Haifei Luo In dest_array action, an optional reformat action can be applied to each destination. This patch supports this by using the extended destination entry. Signed-off-by: Haifei Luo Signed-off-by: Shun Hao Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 15

[PATCH v4 07/10] net/mlx5: reformat HWS code for HWS mirror action

2023-10-23 Thread Gregory Etelson
Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++--- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 6fcf654e4a..b2215fb5cf 100644

[PATCH v4 08/10] net/mlx5: support HWS mirror action

2023-10-23 Thread Gregory Etelson
action without configuration is invalid and will be rejected by PMD. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5.c | 1 + drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c| 134 +++ drivers/net/mlx5/mlx5_flow.h| 69

[PATCH v4 09/10] net/mlx5: reformat HWS code for indirect list actions

2023-10-23 Thread Gregory Etelson
Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 4 +- drivers/net/mlx5/mlx5_flow_hw.c | 252 +--- 2 files changed, 140 insertions(+), 116 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5

[PATCH v4 10/10] net/mlx5: support indirect list METER_MARK action

2023-10-23 Thread Gregory Etelson
Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 69 - drivers/net/mlx5/mlx5_flow.h| 70 -- drivers/net/mlx5/mlx5_flow_hw.c | 430 +++- 3 files changed, 484 insertions(+), 85 deletions(-) diff --git a/drivers

[PATCH v5 00/10] net/mlx5: support indirect actions list

2023-10-25 Thread Gregory Etelson
Add MLX5 PMD support for indirect actions list. Erez Shitrit (1): net/mlx5/hws: allow destination into default miss FT Gregory Etelson (4): net/mlx5: reformat HWS code for HWS mirror action net/mlx5: support HWS mirror action net/mlx5: reformat HWS code for indirect list actions net

[PATCH v5 01/10] net/mlx5/hws: add support for reformat DevX object

2023-10-25 Thread Gregory Etelson
From: Hamdan Igbaria Add support for creation of packet reformat object, via the ALLOC_PACKET_REFORMAT_CONTEXT command. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 39 + drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 +

[PATCH v5 03/10] net/mlx5/hws: add mlx5dr DevX object struct to mlx5dr action

2023-10-25 Thread Gregory Etelson
From: Hamdan Igbaria Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold the FT obj in dest table action. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 4 drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++ drivers/net/mlx5/hws/mlx5dr

[PATCH v5 02/10] net/mlx5/hws: support creating of dynamic forward table and FTE

2023-10-25 Thread Gregory Etelson
From: Hamdan Igbaria Add the ability to create forward table and FTE. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h| 4 drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 + drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++ 3 files

[PATCH v5 04/10] net/mlx5/hws: add support for mirroring

2023-10-25 Thread Gregory Etelson
From: Shun Hao This patch supports mirroring by adding an dest_array action. The action accecpts a list containing multiple destination actions, and can duplicate packet and forward to each destination in the list. Signed-off-by: Shun Hao Acked-by: Alex Vesker Acked-by: Suanming Mou --- driv

[PATCH v5 05/10] net/mlx5/hws: allow destination into default miss FT

2023-10-25 Thread Gregory Etelson
From: Erez Shitrit In FDB it will direct the packet into the hypervisor vport. That allows the user to mirror packets into the default-miss vport. Signed-off-by: Erez Shitrit Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 11 +++ 1 file changed, 11 insertions(+) di

[PATCH v5 06/10] net/mlx5/hws: support reformat for hws mirror

2023-10-25 Thread Gregory Etelson
From: Haifei Luo In dest_array action, an optional reformat action can be applied to each destination. This patch supports this by using the extended destination entry. Signed-off-by: Haifei Luo Signed-off-by: Shun Hao Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 15

[PATCH v5 07/10] net/mlx5: reformat HWS code for HWS mirror action

2023-10-25 Thread Gregory Etelson
Reformat HWS code for HWS mirror action. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++--- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5

[PATCH v5 08/10] net/mlx5: support HWS mirror action

2023-10-25 Thread Gregory Etelson
action without configuration is invalid and will be rejected by PMD. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- doc/guides/nics/features/mlx5.ini | 1 + doc/guides/rel_notes/release_23_11.rst | 1 + drivers/net/mlx5/mlx5.c| 1 + drivers/net/mlx5/mlx5.h

[PATCH v5 09/10] net/mlx5: reformat HWS code for indirect list actions

2023-10-25 Thread Gregory Etelson
Reformat HWS code for indirect list actions. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 4 +- drivers/net/mlx5/mlx5_flow_hw.c | 250 +--- 2 files changed, 139 insertions(+), 115 deletions(-) diff --git a/drivers

[PATCH v5 10/10] net/mlx5: support indirect list METER_MARK action

2023-10-25 Thread Gregory Etelson
Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 69 - drivers/net/mlx5/mlx5_flow.h| 70 -- drivers/net/mlx5/mlx5_flow_hw.c | 432 +++- 3 files changed, 485 insertions(+), 86 deletions(-) diff --git a/drivers

[PATCH v6 00/10] net/mlx5: support indirect actions list

2023-10-25 Thread Gregory Etelson
Add MLX5 PMD support for indirect actions list. Erez Shitrit (1): net/mlx5/hws: allow destination into default miss FT Gregory Etelson (4): net/mlx5: reformat HWS code for HWS mirror action net/mlx5: support HWS mirror action net/mlx5: reformat HWS code for indirect list actions net

[PATCH v6 01/10] net/mlx5/hws: add support for reformat DevX object

2023-10-25 Thread Gregory Etelson
From: Hamdan Igbaria Add support for creation of packet reformat object, via the ALLOC_PACKET_REFORMAT_CONTEXT command. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 39 + drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 +

[PATCH v6 02/10] net/mlx5/hws: support creating of dynamic forward table and FTE

2023-10-25 Thread Gregory Etelson
From: Hamdan Igbaria Add the ability to create forward table and FTE. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h| 4 drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 + drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++ 3 files

[PATCH v6 03/10] net/mlx5/hws: add mlx5dr DevX object struct to mlx5dr action

2023-10-25 Thread Gregory Etelson
From: Hamdan Igbaria Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold the FT obj in dest table action. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 4 drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++ drivers/net/mlx5/hws/mlx5dr

[PATCH v6 04/10] net/mlx5/hws: add support for mirroring

2023-10-25 Thread Gregory Etelson
From: Shun Hao This patch supports mirroring by adding an dest_array action. The action accecpts a list containing multiple destination actions, and can duplicate packet and forward to each destination in the list. Signed-off-by: Shun Hao Acked-by: Alex Vesker Acked-by: Suanming Mou --- driv

[PATCH v6 05/10] net/mlx5/hws: allow destination into default miss FT

2023-10-25 Thread Gregory Etelson
From: Erez Shitrit In FDB it will direct the packet into the hypervisor vport. That allows the user to mirror packets into the default-miss vport. Signed-off-by: Erez Shitrit Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 11 +++ 1 file changed, 11 insertions(+) di

[PATCH v6 06/10] net/mlx5/hws: support reformat for hws mirror

2023-10-25 Thread Gregory Etelson
From: Haifei Luo In dest_array action, an optional reformat action can be applied to each destination. This patch supports this by using the extended destination entry. Signed-off-by: Haifei Luo Signed-off-by: Shun Hao Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 15

[PATCH v6 07/10] net/mlx5: reformat HWS code for HWS mirror action

2023-10-25 Thread Gregory Etelson
Reformat HWS code for HWS mirror action. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++--- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5

[PATCH v6 08/10] net/mlx5: support HWS mirror action

2023-10-25 Thread Gregory Etelson
action without configuration is invalid and will be rejected by PMD. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- doc/guides/nics/features/mlx5.ini | 1 + doc/guides/rel_notes/release_23_11.rst | 1 + drivers/net/mlx5/mlx5.c| 1 + drivers/net/mlx5/mlx5.h

[PATCH v6 10/10] net/mlx5: support indirect list METER_MARK action

2023-10-25 Thread Gregory Etelson
Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 69 - drivers/net/mlx5/mlx5_flow.h| 70 -- drivers/net/mlx5/mlx5_flow_hw.c | 430 +++- 3 files changed, 484 insertions(+), 85 deletions(-) diff --git a/drivers

[PATCH v6 09/10] net/mlx5: reformat HWS code for indirect list actions

2023-10-25 Thread Gregory Etelson
Reformat HWS code for indirect list actions. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 4 +- drivers/net/mlx5/mlx5_flow_hw.c | 250 +--- 2 files changed, 139 insertions(+), 115 deletions(-) diff --git a/drivers

[PATCH v7 00/10] net/mlx5: support indirect actions list

2023-10-26 Thread Gregory Etelson
Add MLX5 PMD support for indirect actions list. Erez Shitrit (1): net/mlx5/hws: allow destination into default miss FT Gregory Etelson (4): net/mlx5: reformat HWS code for HWS mirror action net/mlx5: support HWS mirror action net/mlx5: reformat HWS code for indirect list actions net

[PATCH v7 02/10] net/mlx5/hws: support creating of dynamic forward table and FTE

2023-10-26 Thread Gregory Etelson
From: Hamdan Igbaria Add the ability to create forward table and FTE. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h| 4 drivers/net/mlx5/hws/mlx5dr_cmd.c | 13 + drivers/net/mlx5/hws/mlx5dr_cmd.h | 19 +++ 3 files

[PATCH v7 03/10] net/mlx5/hws: add mlx5dr DevX object struct to mlx5dr action

2023-10-26 Thread Gregory Etelson
From: Hamdan Igbaria Add mlx5dr_devx_obj struct to mlx5dr_action, so we could hold the FT obj in dest table action. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 4 drivers/net/mlx5/hws/mlx5dr_action.h | 3 +++ drivers/net/mlx5/hws/mlx5dr

[PATCH v7 05/10] net/mlx5/hws: allow destination into default miss FT

2023-10-26 Thread Gregory Etelson
From: Erez Shitrit In FDB it will direct the packet into the hypervisor vport. That allows the user to mirror packets into the default-miss vport. Signed-off-by: Erez Shitrit Acked-by: Suanming Mou --- drivers/net/mlx5/hws/mlx5dr_action.c | 11 +++ 1 file changed, 11 insertions(+) di

[PATCH v7 07/10] net/mlx5: reformat HWS code for HWS mirror action

2023-10-26 Thread Gregory Etelson
Reformat HWS code for HWS mirror action. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow_hw.c | 70 ++--- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5

[PATCH v7 04/10] net/mlx5/hws: add support for mirroring

2023-10-26 Thread Gregory Etelson
From: Shun Hao This patch supports mirroring by adding an dest_array action. The action accecpts a list containing multiple destination actions, and can duplicate packet and forward to each destination in the list. Signed-off-by: Shun Hao Acked-by: Alex Vesker Acked-by: Suanming Mou --- driv

[PATCH v7 06/10] net/mlx5/hws: support reformat for hws mirror

2023-10-26 Thread Gregory Etelson
From: Haifei Luo In dest_array action, an optional reformat action can be applied to each destination. This patch supports this by using the extended destination entry. Signed-off-by: Haifei Luo Signed-off-by: Shun Hao Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 15

[PATCH v7 08/10] net/mlx5: support HWS mirror action

2023-10-26 Thread Gregory Etelson
action without configuration is invalid and will be rejected by PMD. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- doc/guides/nics/features/mlx5.ini | 1 + doc/guides/rel_notes/release_23_11.rst | 1 + drivers/net/mlx5/mlx5.c| 1 + drivers/net/mlx5/mlx5.h

[PATCH v7 09/10] net/mlx5: reformat HWS code for indirect list actions

2023-10-26 Thread Gregory Etelson
Reformat HWS code for indirect list actions. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.h| 4 +- drivers/net/mlx5/mlx5_flow_hw.c | 235 ++-- 2 files changed, 131 insertions(+), 108 deletions(-) diff --git a/drivers

[PATCH v7 10/10] net/mlx5: support indirect list METER_MARK action

2023-10-26 Thread Gregory Etelson
Support indirect list METER_MARK action. Signed-off-by: Gregory Etelson Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5_flow.c| 69 - drivers/net/mlx5/mlx5_flow.h| 70 -- drivers/net/mlx5/mlx5_flow_hw.c | 430 +++- 3 files changed, 484 insertions

[PATCH v7 01/10] net/mlx5/hws: add support for reformat DevX object

2023-10-26 Thread Gregory Etelson
From: Hamdan Igbaria Add support for creation of packet reformat object, via the ALLOC_PACKET_REFORMAT_CONTEXT command. Signed-off-by: Hamdan Igbaria Acked-by: Suanming Mou --- drivers/common/mlx5/mlx5_prm.h | 39 + drivers/net/mlx5/hws/mlx5dr_cmd.c | 60 +

[PATCH] app/testpmd: add size parameter to raw_encap action

2023-10-26 Thread Gregory Etelson
emplate 0 actions_template 0 postpone no \ pattern ... end \ actions raw_encap index 0 / jump group 1 / end The new `size` parameter is mutually exclusive with the existing `index` parameter. Signed-off-by: Gregory Etelson --- app/test-pmd/cmdline_flow.c | 19 ++- 1 file ch

[PATCH] net/mlx5: fix RSS expansion buffer size

2022-10-20 Thread Gregory Etelson
Increase expansion buffer size to accumulate more RSS types. Fixes: 3f02c7ff6815 ("net/mlx5: fix RSS expansion for inner tunnel VLAN") Signed-off-by: Gregory Etelson Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] app/testpmd: fix MAC header in csum forward engine

2022-10-26 Thread Gregory Etelson
xes: 9b4ea7ae77fa ("app/testpmd: revert MAC update in checksum forwarding") Signed-off-by: Gregory Etelson --- app/test-pmd/cmdline.c | 50 + app/test-pmd/csumonly.c | 6 + app/test-pmd/testpmd.c | 5 +++-- app/test-pmd/testpmd.h | 3 ++- 4

[PATCH v2 1/2] ethdev: add query_update sync and async function calls

2023-01-11 Thread Gregory Etelson
y and update only functionality for backward compatibility with existing API. Signed-off-by: Gregory Etelson --- v2: remove RTE_FLOW_QU_DEFAULT query-update mode --- lib/ethdev/rte_flow.c| 39 + lib/ethdev/rte_flow.h| 103 +++ lib/e

[PATCH v2 2/2] ethdev: add quota flow action and item

2023-01-11 Thread Gregory Etelson
return to application number of tokens stored in port before update. Application must create a rule with quota action to mark flow and match on the mark with quota item in following flow rule. Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- v2: remove RTE_FLOW_QU_DEFAULT query-update mode

RE: [PATCH 1/2] ethdev: add query_update sync and async function calls

2023-01-11 Thread Gregory Etelson
Hello Ori, > Some comments below, I posted v2 with updates. Regards, Gregory

[PATCH v3 1/2] ethdev: add query_update sync and async function calls

2023-01-11 Thread Gregory Etelson
y and update only functionality for backward compatibility with existing API. Signed-off-by: Gregory Etelson --- v2: remove RTE_FLOW_QU_DEFAULT query-update mode v3: update release release notes fix doxygen errors --- doc/guides/rel_notes/release_23_03.rst | 7 ++ lib/ethdev/rte_f

[PATCH v3 2/2] ethdev: add quota flow action and item

2023-01-11 Thread Gregory Etelson
return to application number of tokens stored in port before update. Application must create a rule with quota action to mark flow and match on the mark with quota item in following flow rule. Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- v2: remove RTE_FLOW_QU_DEFAULT query-update mode v3

[PATCH v4 1/2] ethdev: add query_update sync and async function calls

2023-01-18 Thread Gregory Etelson
y and update only functionality for backward compatibility with existing API. Signed-off-by: Gregory Etelson --- v2: Remove RTE_FLOW_QU_DEFAULT query-update mode. v3: Update release release notes. Fix doxygen errors. v4: Add returned errno codes. --- doc/guides/rel_notes/release_23_03.rst

[PATCH v4 2/2] ethdev: add quota flow action and item

2023-01-18 Thread Gregory Etelson
return to application number of tokens stored in port before update. Application must create a rule with quota action to mark flow and match on the mark with quota item in following flow rule. Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- v2: Remove RTE_FLOW_QU_DEFAULT query-update mode. v3

[PATCH 0/5] net/mlx5: add indirect QUOTA create/query/modify

2023-01-18 Thread Gregory Etelson
Add indirect quota flow action. Add match on quota flow item. Gregory Etelson (5): net/mlx5: update query fields in async job structure net/mlx5: remove code duplication common/mlx5: update MTR ASO definitions net/mlx5: add indirect QUOTA create/query/modify mlx5dr: Definer, translate

[PATCH 1/5] net/mlx5: update query fields in async job structure

2023-01-18 Thread Gregory Etelson
Query fields defined in `mlx5_hw_q_job` target CT type only. The patch updates `mlx5_hw_q_job` for other query types as well. Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5.h | 10 +- drivers/net/mlx5/mlx5_flow_aso.c | 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 6

[PATCH 2/5] net/mlx5: remove code duplication

2023-01-18 Thread Gregory Etelson
Replace duplicated code with dedicated functions Signed-off-by: Gregory Etelson --- drivers/net/mlx5/mlx5.h | 6 +- drivers/net/mlx5/mlx5_flow_hw.c | 182 2 files changed, 95 insertions(+), 93 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b

[PATCH 3/5] common/mlx5: update MTR ASO definitions

2023-01-18 Thread Gregory Etelson
Update MTR ASO definitions for QUOTA flow action. Quota flow action requires WQE READ capability and access to token fields. Signed-off-by: Gregory Etelson --- drivers/common/mlx5/mlx5_prm.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common

[PATCH 4/5] net/mlx5: add indirect QUOTA create/query/modify

2023-01-18 Thread Gregory Etelson
Implement HWS functions for indirect QUOTA creation, modification and query. Signed-off-by: Gregory Etelson --- drivers/net/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.h| 72 +++ drivers/net/mlx5/mlx5_flow.c | 62 +++ drivers/net/mlx5/mlx5_flow.h | 20

[PATCH 5/5] mlx5dr: Definer, translate RTE quota item

2023-01-18 Thread Gregory Etelson
3 (11b) PASS Quota item checks Meter register bit 1 value to determine state: SPEC MASK PASS 2 (10b)2 (10b) BLOCK0 (00b)2 (10b) Signed-off-by: Gregory Etelson --- drivers/net/mlx5/hws/mlx5dr_definer.c | 61 +++ 1 file changed

RE: [PATCH v4 1/2] ethdev: add query_update sync and async function calls

2023-01-18 Thread Gregory Etelson
Hello Thomas, [] > > Current API allows either query or update indirect flow action. > > If port hardware allows both update and query in a single operation, > > application still has to issue 2 separate hardware requests. > > > > The patch adds `rte_flow_action_handle_query_update` function call

RE: [PATCH v4 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
before update. > > > > Application must create a rule with quota action to mark flow and > > match on the mark with quota item in following flow rule. > > > > Signed-off-by: Gregory Etelson > > Acked-by: Ori Kam > > --- > > v2: Remove RTE_FLOW_QU_DEFAULT

RE: [PATCH v4 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
Hello Thomas, [] > > > > + /** > > > > + * Apply quota verdict - PASS or BLOCK to a flow. > > > > > > Is "to" really wanted here? > > > What about "pass or block a flow"? > > > > > > > The flow action provides information only - it does not affect flow in any > way. > > Application needs

[PATCH v5 1/2] ethdev: add query_update sync and async function calls

2023-01-19 Thread Gregory Etelson
if that is supported by port hardware, by setting `qu_mode` parameter to RTE_FLOW_QU_QUERY_FIRST or RTE_FLOW_QU_UPDATE_FIRST. Signed-off-by: Gregory Etelson --- v2: Remove RTE_FLOW_QU_DEFAULT query-update mode. v3: Update release release notes. Fix doxygen errors. v4: Add returned errno codes. v5:

[PATCH v5 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
match on the mark with quota item in following flow rule. Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- v2: Remove RTE_FLOW_QU_DEFAULT query-update mode. v3: Update release notes. v5: Update the patch description. Remove PMD documentation. --- app/test-pmd/cmdline_flow.c

  1   2   3   4   5   6   7   8   >