Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
0002 /* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. */
0003 
0004 #ifndef __MLX5_LIB_SMFS_H__
0005 #define __MLX5_LIB_SMFS_H__
0006 
0007 #include "steering/mlx5dr.h"
0008 #include "steering/dr_types.h"
0009 
0010 struct mlx5dr_matcher *
0011 mlx5_smfs_matcher_create(struct mlx5dr_table *table, u32 priority, struct mlx5_flow_spec *spec);
0012 
0013 void
0014 mlx5_smfs_matcher_destroy(struct mlx5dr_matcher *matcher);
0015 
0016 struct mlx5dr_table *
0017 mlx5_smfs_table_get_from_fs_ft(struct mlx5_flow_table *ft);
0018 
0019 struct mlx5dr_action *
0020 mlx5_smfs_action_create_dest_table(struct mlx5dr_table *table);
0021 
0022 struct mlx5dr_action *
0023 mlx5_smfs_action_create_flow_counter(u32 counter_id);
0024 
0025 void
0026 mlx5_smfs_action_destroy(struct mlx5dr_action *action);
0027 
0028 struct mlx5dr_rule *
0029 mlx5_smfs_rule_create(struct mlx5dr_matcher *matcher, struct mlx5_flow_spec *spec,
0030               size_t num_actions, struct mlx5dr_action *actions[],
0031               u32 flow_source);
0032 
0033 void
0034 mlx5_smfs_rule_destroy(struct mlx5dr_rule *rule);
0035 
0036 #endif /* __MLX5_LIB_SMFS_H__ */