mlx5dv_create_flow(3) | mlx5 Programmer’s Manual | mlx5dv_create_flow(3) |
mlx5dv_create_flow - creates a steering flow rule
#include <infiniband/mlx5dv.h> struct ibv_flow * mlx5dv_create_flow(struct mlx5dv_flow_matcher *flow_matcher,
struct mlx5dv_flow_match_parameters *match_value,
size_t num_actions,
struct mlx5dv_flow_action_attr actions_attr[])
mlx5dv_create_flow() creates a steering flow rule with the ability to specify specific driver properties.
Please see mlx5dv_create_flow_matcher(3) for flow_matcher and match_value.
struct mlx5dv_flow_action_attr {
enum mlx5dv_flow_action_type type;
union {
struct ibv_qp *qp;
struct ibv_counters *counter;
struct ibv_flow_action *action;
uint32_t tag_value;
struct mlx5dv_devx_obj *obj;
}; };
mlx5dv_create_flow returns a pointer to the created flow rule, on error NULL will be returned and errno will be set.
mlx5dv_create_flow_action_modify_header(3), mlx5dv_create_flow_action_packet_reformat(3), mlx5dv_create_flow_matcher(3), mlx5dv_create_qp(3), ibv_create_qp_ex(3) ibv_create_cq_ex(3) ibv_create_counters(3)
Mark Bloch <marb@mellanox.com>
2018-9-19 | mlx5 |