Commit d2338a27 authored by Yevgeny Kliteynik's avatar Yevgeny Kliteynik Committed by Jakub Kicinski
Browse files

net/mlx5: HWS, expose function mlx5hws_table_ft_set_next_ft in header



In preparation for complex matcher support, make function
mlx5hws_table_ft_set_next_ft() non-static and expose it in header.

Signed-off-by: default avatarYevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: default avatarVlad Dogaru <vdogaru@nvidia.com>
Reviewed-by: default avatarMark Bloch <mbloch@nvidia.com>
Signed-off-by: default avatarTariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1746992290-568936-2-git-send-email-tariqt@nvidia.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9f607dc3
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx,
	return mlx5hws_cmd_flow_table_modify(ctx->mdev, &ft_attr, ft_id);
}

static int hws_table_ft_set_next_ft(struct mlx5hws_context *ctx,
int mlx5hws_table_ft_set_next_ft(struct mlx5hws_context *ctx,
				 u32 ft_id,
				 u32 fw_ft_type,
				 u32 next_ft_id)
@@ -389,7 +389,7 @@ int mlx5hws_table_connect_to_miss_table(struct mlx5hws_table *src_tbl,
	if (dst_tbl) {
		if (list_empty(&dst_tbl->matchers_list)) {
			/* Connect src_tbl last_ft to dst_tbl start anchor */
			ret = hws_table_ft_set_next_ft(src_tbl->ctx,
			ret = mlx5hws_table_ft_set_next_ft(src_tbl->ctx,
							   last_ft_id,
							   src_tbl->fw_ft_type,
							   dst_tbl->ft_id);
+5 −0
Original line number Diff line number Diff line
@@ -65,4 +65,9 @@ int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx,
				  u32 rtc_0_id,
				  u32 rtc_1_id);

int mlx5hws_table_ft_set_next_ft(struct mlx5hws_context *ctx,
				 u32 ft_id,
				 u32 fw_ft_type,
				 u32 next_ft_id);

#endif /* MLX5HWS_TABLE_H_ */