diff options
Diffstat (limited to 'include/linux/mlx5/fs.h')
| -rw-r--r-- | include/linux/mlx5/fs.h | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h index 4b7a107d9c19..e036d6030867 100644 --- a/include/linux/mlx5/fs.h +++ b/include/linux/mlx5/fs.h @@ -54,6 +54,8 @@ static inline void build_leftovers_ft_param(int *priority,  enum mlx5_flow_namespace_type {  	MLX5_FLOW_NAMESPACE_BYPASS, +	MLX5_FLOW_NAMESPACE_OFFLOADS, +	MLX5_FLOW_NAMESPACE_ETHTOOL,  	MLX5_FLOW_NAMESPACE_KERNEL,  	MLX5_FLOW_NAMESPACE_LEFTOVERS,  	MLX5_FLOW_NAMESPACE_ANCHOR, @@ -67,6 +69,12 @@ struct mlx5_flow_group;  struct mlx5_flow_rule;  struct mlx5_flow_namespace; +struct mlx5_flow_spec { +	u8   match_criteria_enable; +	u32  match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; +	u32  match_value[MLX5_ST_SZ_DW(fte_match_param)]; +}; +  struct mlx5_flow_destination {  	enum mlx5_flow_destination_type	type;  	union { @@ -115,9 +123,7 @@ void mlx5_destroy_flow_group(struct mlx5_flow_group *fg);   */  struct mlx5_flow_rule *  mlx5_add_flow_rule(struct mlx5_flow_table *ft, -		   u8 match_criteria_enable, -		   u32 *match_criteria, -		   u32 *match_value, +		   struct mlx5_flow_spec *spec,  		   u32 action,  		   u32 flow_tag,  		   struct mlx5_flow_destination *dest); |