linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_table.h

/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
/* Copyright (c) 2024 NVIDIA Corporation & Affiliates */

#ifndef MLX5HWS_TABLE_H_
#define MLX5HWS_TABLE_H_

struct mlx5hws_default_miss {};

struct mlx5hws_table {};

static inline
u32 mlx5hws_table_get_fw_ft_type(enum mlx5hws_table_type type,
				 u8 *ret_type)
{}

static inline
u32 mlx5hws_table_get_res_fw_ft_type(enum mlx5hws_table_type tbl_type,
				     bool is_mirror)
{}

int mlx5hws_table_create_default_ft(struct mlx5_core_dev *mdev,
				    struct mlx5hws_table *tbl,
				    u32 *ft_id);

void mlx5hws_table_destroy_default_ft(struct mlx5hws_table *tbl,
				      u32 ft_id);

int mlx5hws_table_connect_to_miss_table(struct mlx5hws_table *src_tbl,
					struct mlx5hws_table *dst_tbl);

int mlx5hws_table_update_connected_miss_tables(struct mlx5hws_table *dst_tbl);

int mlx5hws_table_ft_set_default_next_ft(struct mlx5hws_table *tbl, u32 ft_id);

int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx,
				  u32 ft_id,
				  u32 fw_ft_type,
				  u32 rtc_0_id,
				  u32 rtc_1_id);

#endif /* MLX5HWS_TABLE_H_ */