]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/mlx5: HWS, expose function mlx5hws_table_ft_set_next_ft in header
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 11 May 2025 19:38:01 +0000 (22:38 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 May 2025 22:30:25 +0000 (15:30 -0700)
In preparation for complex matcher support, make function
mlx5hws_table_ft_set_next_ft() non-static and expose it in header.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Vlad Dogaru <vdogaru@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1746992290-568936-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table.h

index ab12975312320be0f5ce9cab8169f84409855aa0..568f691733f349c1e68b691c96078bd922b43525 100644 (file)
@@ -342,10 +342,10 @@ 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,
-                                   u32 ft_id,
-                                   u32 fw_ft_type,
-                                   u32 next_ft_id)
+int mlx5hws_table_ft_set_next_ft(struct mlx5hws_context *ctx,
+                                u32 ft_id,
+                                u32 fw_ft_type,
+                                u32 next_ft_id)
 {
        struct mlx5hws_cmd_ft_modify_attr ft_attr = {0};
 
@@ -389,10 +389,10 @@ 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,
-                                                      last_ft_id,
-                                                      src_tbl->fw_ft_type,
-                                                      dst_tbl->ft_id);
+                       ret = mlx5hws_table_ft_set_next_ft(src_tbl->ctx,
+                                                          last_ft_id,
+                                                          src_tbl->fw_ft_type,
+                                                          dst_tbl->ft_id);
                        if (ret)
                                return ret;
 
index dd50420eec9eae5c35b91a39447899c27b22c30e..0400cce0c317f710b3e6a88935d90e887b47f50d 100644 (file)
@@ -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_ */