1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "mlx5dv_create_flow_matcher" "3" "2018-9-19" "mlx5" "mlx5 Programmer\[cq]s Manual"
.hy
.SH NAME
.PP
mlx5dv_create_flow_matcher - creates a matcher to be used with
\f[I]mlx5dv_create_flow(3)\f[R]
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/mlx5dv.h>
struct mlx5dv_flow_matcher *
mlx5dv_create_flow_matcher(struct ibv_context *context,
struct mlx5dv_flow_matcher_attr *attr)
\f[R]
.fi
.SH DESCRIPTION
.PP
\f[B]mlx5dv_create_flow_matcher()\f[R] creates a flow matcher (mask) to
be used with \f[I]mlx5dv_create_flow(3)\f[R].
.SH ARGUMENTS
.PP
Please see \f[I]ibv_open_device(3)\f[R] for \f[I]context\f[R].
.SS \f[I]attr\f[R]
.IP
.nf
\f[C]
struct mlx5dv_flow_matcher_attr {
enum ibv_flow_attr_type type;
uint32_t flags; /* From enum ibv_flow_flags */
uint16_t priority;
uint8_t match_criteria_enable; /* Device spec format */
struct mlx5dv_flow_match_parameters *match_mask;
uint64_t comp_mask;
enum mlx5dv_flow_table_type ft_type;
};
\f[R]
.fi
.TP
\f[I]type\f[R]
Type of matcher to be created: IBV_FLOW_ATTR_NORMAL: Normal rule
according to specification.
.TP
\f[I]flags\f[R]
special flags to control rule: 0: Nothing or zero value means matcher
will store ingress flow rules.
IBV_FLOW_ATTR_FLAGS_EGRESS: Specified this matcher will store egress
flow rules.
.TP
\f[I]priority\f[R]
See \f[I]ibv_create_flow(3)\f[R].
.TP
\f[I]match_criteria_enable\f[R]
What match criteria is configured in \f[I]match_mask\f[R], passed in
device spec format.
.SS \f[I]match_mask\f[R]
.IP
.nf
\f[C]
struct mlx5dv_flow_match_parameters {
size_t match_sz;
uint64_t match_buf[]; /* Device spec format */
};
\f[R]
.fi
.TP
\f[I]match_sz\f[R]
Size in bytes of \f[I]match_buf\f[R].
.TP
\f[I]match_buf\f[R]
Set which mask to be used, passed in device spec format.
.TP
\f[I]comp_mask\f[R]
MLX5DV_FLOW_MATCHER_MASK_FT_TYPE for \f[I]ft_type\f[R]
.SS \f[I]ft_type\f[R]
.PP
Specified in which flow table type, the matcher will store the flow
rules: MLX5DV_FLOW_TABLE_TYPE_NIC_RX: Specified this matcher will store
ingress flow rules.
MLX5DV_FLOW_TABLE_TYPE_NIC_TX Specified this matcher will store egress
flow rules.
MLX5DV_FLOW_TABLE_TYPE_FDB : Specified this matcher will store FDB
rules.
MLX5DV_FLOW_TABLE_TYPE_RDMA_RX: Specified this matcher will store
ingress RDMA flow rules.
MLX5DV_FLOW_TABLE_TYPE_RDMA_TX: Specified this matcher will store egress
RDMA flow rules.
.SH RETURN VALUE
.PP
\f[B]mlx5dv_create_flow_matcher\f[R] returns a pointer to
\f[I]mlx5dv_flow_matcher\f[R], on error NULL will be returned and errno
will be set.
.SH SEE ALSO
.PP
\f[I]ibv_open_device(3)\f[R], \f[I]ibv_create_flow(3)\f[R]
.SH AUTHOR
.PP
Mark Bloch <markb@mellanox.com>
|