[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

[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 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

[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

[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 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 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

[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

[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 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 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 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