1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2021 Mellanox Technologies. */
4 #ifndef __MLX5_FS_FT_POOL_H__
5 #define __MLX5_FS_FT_POOL_H__
7 #include <linux/mlx5/driver.h>
10 #define POOL_NEXT_SIZE 0
12 int mlx5_ft_pool_init(struct mlx5_core_dev *dev);
13 void mlx5_ft_pool_destroy(struct mlx5_core_dev *dev);
16 mlx5_ft_pool_get_avail_sz(struct mlx5_core_dev *dev, enum fs_flow_table_type table_type,
19 mlx5_ft_pool_put_sz(struct mlx5_core_dev *dev, int sz);
21 #endif /* __MLX5_FS_FT_POOL_H__ */