Skip to content

Commit e829a33

Browse files
kliteynkuba-moo
authored andcommitted
net/mlx5: DR, Remove definer functions from SW Steering API
No need to expose definer get/put functions as part of SW Steering API - they are internal functions. Signed-off-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Alex Vesker <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8ce2ddd commit e829a33

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,11 @@ int mlx5dr_cmd_create_modify_header_arg(struct mlx5_core_dev *dev,
13791379
void mlx5dr_cmd_destroy_modify_header_arg(struct mlx5_core_dev *dev,
13801380
u32 obj_id);
13811381

1382+
int mlx5dr_definer_get(struct mlx5dr_domain *dmn, u16 format_id,
1383+
u8 *dw_selectors, u8 *byte_selectors,
1384+
u8 *match_mask, u32 *definer_id);
1385+
void mlx5dr_definer_put(struct mlx5dr_domain *dmn, u32 definer_id);
1386+
13821387
struct mlx5dr_icm_pool *mlx5dr_icm_pool_create(struct mlx5dr_domain *dmn,
13831388
enum mlx5dr_icm_type icm_type);
13841389
void mlx5dr_icm_pool_destroy(struct mlx5dr_icm_pool *pool);

drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ int mlx5dr_action_destroy(struct mlx5dr_action *action);
153153

154154
u32 mlx5dr_action_get_pkt_reformat_id(struct mlx5dr_action *action);
155155

156-
int mlx5dr_definer_get(struct mlx5dr_domain *dmn, u16 format_id,
157-
u8 *dw_selectors, u8 *byte_selectors,
158-
u8 *match_mask, u32 *definer_id);
159-
void mlx5dr_definer_put(struct mlx5dr_domain *dmn, u32 definer_id);
160-
161156
static inline bool
162157
mlx5dr_is_supported(struct mlx5_core_dev *dev)
163158
{

0 commit comments

Comments
 (0)