[PATCH 1/5] net/mlx5/hws: fix alias_rtc_0 print location in debug dump

2023-01-26 Thread Hamdan Igbaria
Fix alias_rtc_0 print location in debug dump, move it to the end of matcher dumped info instead of the middle, to keep the dump compatibility. Fixes: dd2845361a58 ("net/mlx5/hws: add debug details for cross gvmi") Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_de

[PATCH 2/5] net/mlx5/hws: change STC array size to 32K

2023-01-26 Thread Hamdan Igbaria
Change STC array size from 16K to 32K. This change allows supporting more actions using HWS. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_pool.h b/drivers/net/mlx5/hws

[PATCH 3/5] net/mlx5/hws: support STC info dump

2023-01-26 Thread Hamdan Igbaria
Dump the STC info in debug dump. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_debug.c | 55 + drivers/net/mlx5/hws/mlx5dr_debug.h | 1 + 2 files changed, 56 insertions(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_debug.c b/drivers/net/mlx5/hws

[PATCH 5/5] net/mlx5: support HW steering debug dump

2023-01-26 Thread Hamdan Igbaria
Add the ability for the DPDK apps to call HW steering relevant debug data dump function. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/mlx5_flow.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5

[PATCH 4/5] net/mlx5/hws: support IP version matching for non relaxed

2023-01-26 Thread Hamdan Igbaria
Enable matching on IP version explicitly for non relaxed mode. This will add support for the user cases where he needs to match on ip version explicitly, for such case to have outer ipv6 and inner ipv4 packets, etc. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_definer.c | 16

[v2 2/5] net/mlx5/hws: change STC array size to 32K

2023-02-02 Thread Hamdan Igbaria
Change STC array size from 16K to 32K. This change allows supporting more actions using HWS. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_pool.h b/drivers/net/mlx5/hws

[v2 1/5] net/mlx5/hws: fix alias_rtc_0 print location in debug dump

2023-02-02 Thread Hamdan Igbaria
Fix alias_rtc_0 print location in debug dump, move it to the end of matcher dumped info instead of the middle, to keep the dump compatibility. Fixes: dd2845361a58 ("net/mlx5/hws: add debug details for cross gvmi") Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_de

[v2 3/5] net/mlx5/hws: support STC info dump

2023-02-02 Thread Hamdan Igbaria
Dump the STC info in debug dump. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_debug.c | 55 + drivers/net/mlx5/hws/mlx5dr_debug.h | 1 + 2 files changed, 56 insertions(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_debug.c b/drivers/net/mlx5/hws

[v2 4/5] net/mlx5/hws: support IP version matching for non relaxed

2023-02-02 Thread Hamdan Igbaria
Enable matching on IP version explicitly for non relaxed mode. This will add support for the user cases where he needs to match on ip version explicitly, for such case to have outer ipv6 and inner ipv4 packets, etc. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/hws/mlx5dr_definer.c | 16

[v2 5/5] net/mlx5: support HW steering debug dump

2023-02-02 Thread Hamdan Igbaria
Add the ability for the DPDK apps to call HW steering relevant debug data dump function. Signed-off-by: Hamdan Igbaria --- drivers/net/mlx5/mlx5_flow.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c

[v1 1/3] net/mlx5/hws: support dest root table action

2023-03-20 Thread Hamdan Igbaria
Add support for dest root table action creation. This support will allow to redirect the packets to the kernel from non root tables. Signed-off-by: Hamdan Igbaria Reviewed-by: Alex Vesker --- drivers/common/mlx5/linux/meson.build | 2 + drivers/common/mlx5/linux/mlx5_glue.c | 28

[v1 2/3] net/mlx5/hws: dump FT icm addresses

2023-03-20 Thread Hamdan Igbaria
Add the support for query FT command. Use the query FT command to dump the ICM addresses of table start anchor and matcher end anchor. Signed-off-by: Hamdan Igbaria Reviewed-by: Alex Vesker --- drivers/common/mlx5/mlx5_prm.h | 50 --- drivers/net/mlx5/hws/mlx5dr_cmd.c

[v1 3/3] net/mlx5/hws: Enhance forward table and FTE creation

2023-03-20 Thread Hamdan Igbaria
Changed FW FT and FTE creation to allow dynamic creation. Till now only FTE with vport destination action was supported. Also enhanced forward table creation to be generic. Signed-off-by: Hamdan Igbaria Reviewed-by: Alex Vesker --- drivers/common/mlx5/mlx5_prm.h | 20 +++-- drivers

[PATCH 4/8] net/mlx5/hws: allow table creation from the new types

2025-02-16 Thread Hamdan Igbaria
From: Erez Shitrit Take care of table creation from one of the new types that now exposed to the user (FDB_RX, FDB_TX and FDB_UNIFIED) Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_action.c | 6 ++--- drivers/net/mlx5/hws

[PATCH 5/8] net/mlx5/hws: matcher changes to support unified domain

2025-02-16 Thread Hamdan Igbaria
From: Erez Shitrit Matcher for one of the new FDB sub-domains contains specific details according to the type of that sub-domain. Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_matcher.c | 39

[PATCH 2/8] net/mlx5/hws: add new type to existing table-types

2025-02-16 Thread Hamdan Igbaria
. Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/hws/mlx5dr.h | 3 +++ drivers/net/mlx5/hws/mlx5dr_table.c | 15 +-- drivers/net/mlx5/hws/mlx5dr_table.h | 40

[PATCH 8/8] net/mlx5/hws: support debug information for new domains

2025-02-16 Thread Hamdan Igbaria
From: Erez Shitrit In order to have the details of the new specific domains. Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/hws

[PATCH 6/8] net/mlx5/hws: action changes to support unified domain

2025-02-16 Thread Hamdan Igbaria
t Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr.h| 5 +- drivers/net/mlx5/hws/mlx5dr_action.c | 222 +++ drivers/net/mlx5/hws/mlx5dr_action.h | 2 +- 3 files changed, 200 insertions(+), 29 deletions(-) diff --git a/drivers

[PATCH 3/8] net/mlx5/hws: context changes to support unified domain

2025-02-16 Thread Hamdan Igbaria
From: Erez Shitrit Context creates its pools according to the table type. Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_context.c | 21 - drivers/net/mlx5/hws/mlx5dr_context.h | 3 +++ 2 files changed, 23

[PATCH 1/8] net/mlx5/hws: introduce capability for unified mode

2025-02-16 Thread Hamdan Igbaria
FDB_RX/TX, or whenever it can by FDB_UNIFIED. Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_prm.h| 4 +++- drivers/net/mlx5/hws/mlx5dr_cmd.c | 4 drivers/net/mlx5/hws/mlx5dr_cmd.h | 1 + 3 files changed, 8 insertions(+), 1

[PATCH 7/8] net/mlx5/hws: unified rule changes

2025-02-16 Thread Hamdan Igbaria
From: Erez Shitrit Rule is set according to its specific domain. Signed-off-by: Erez Shitrit Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_rule.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/net