Lines Matching defs:flow

99 	struct list_head peer[MLX5_MAX_PORTS];    /* flows with peer flow */
104 struct net_device *orig_dev; /* netdev adding flow first */
106 struct list_head tmp_list; /* temporary flow list used by neigh update */
130 struct mlx5e_tc_flow *flow,
135 mlx5e_tc_get_encap_attr(struct mlx5e_tc_flow *flow);
137 void mlx5e_tc_unoffload_flow_post_acts(struct mlx5e_tc_flow *flow);
138 int mlx5e_tc_offload_flow_post_acts(struct mlx5e_tc_flow *flow);
140 bool mlx5e_is_eswitch_flow(struct mlx5e_tc_flow *flow);
141 bool mlx5e_is_ft_flow(struct mlx5e_tc_flow *flow);
142 bool mlx5e_is_offloaded_flow(struct mlx5e_tc_flow *flow);
143 int mlx5e_get_flow_namespace(struct mlx5e_tc_flow *flow);
146 static inline void __flow_flag_set(struct mlx5e_tc_flow *flow, unsigned long flag)
150 set_bit(flag, &flow->flags);
153 #define flow_flag_set(flow, flag) __flow_flag_set(flow, MLX5E_TC_FLOW_FLAG_##flag)
155 static inline bool __flow_flag_test_and_set(struct mlx5e_tc_flow *flow,
159 return test_and_set_bit(flag, &flow->flags);
162 #define flow_flag_test_and_set(flow, flag) \
163 __flow_flag_test_and_set(flow, \
166 static inline void __flow_flag_clear(struct mlx5e_tc_flow *flow, unsigned long flag)
170 clear_bit(flag, &flow->flags);
173 #define flow_flag_clear(flow, flag) __flow_flag_clear(flow, \
176 static inline bool __flow_flag_test(struct mlx5e_tc_flow *flow, unsigned long flag)
178 bool ret = test_bit(flag, &flow->flags);
180 /* Read fields of flow structure only after checking flags. */
185 #define flow_flag_test(flow, flag) __flow_flag_test(flow, \
189 struct mlx5e_tc_flow *flow);
192 struct mlx5e_tc_flow *flow,
196 struct mlx5e_tc_flow *flow,
199 struct mlx5e_tc_flow *mlx5e_flow_get(struct mlx5e_tc_flow *flow);
200 void mlx5e_flow_put(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow);
202 struct mlx5_fc *mlx5e_tc_get_counter(struct mlx5e_tc_flow *flow);