.\" Automatically generated by Pandoc 1.19.2.4 .\" .TH "mlx5dv_pp_alloc / mlx5dv_pp_free" "3" "" "" "" .hy .SH NAME .PP mlx5dv_pp_alloc \- Allocates a packet pacing entry .PP mlx5dv_pp_free \- Frees a packet pacing entry .SH SYNOPSIS .IP .nf \f[C] #include\ struct\ mlx5dv_pp\ * mlx5dv_pp_alloc(struct\ ibv_context\ *context, \ \ \ \ \ \ \ \ size_t\ pp_context_sz, \ \ \ \ \ \ \ \ const\ void\ *pp_context, \ \ \ \ \ \ \ \ uint32_t\ flags); void\ mlx5dv_pp_free(struct\ mlx5dv_pp\ *dv_pp); \f[] .fi .SH DESCRIPTION .PP Create / free a packet pacing entry which can be used for some device commands over the DEVX interface. .PP The DEVX API enables direct access from the user space area to the mlx5 device driver, the packet pacing information is needed for few commands where a packet pacing index is needed. .SH ARGUMENTS .TP .B \f[I]context\f[] RDMA device context to work on, need to be opened with DEVX support by using mlx5dv_open_device(). .RS .RE .TP .B \f[I]pp_context_sz\f[] Length of \f[I]pp_context\f[] input buffer. .RS .RE .TP .B \f[I]pp_context\f[] Packet pacing context according to the device specification. .RS .RE .TP .B \f[I]flags\f[] MLX5DV_PP_ALLOC_FLAGS_DEDICATED_INDEX: allocate a dedicated index. .RS .RE .SS dv_pp .IP .nf \f[C] struct\ mlx5dv_pp\ { \ \ \ \ uint16_t\ index; }; \f[] .fi .TP .B \f[I]index\f[] The device index to be used. .RS .RE .SH RETURN VALUE .PP Upon success \f[I]mlx5dv_pp_alloc\f[] returns a pointer to the created packet pacing object, on error NULL will be returned and errno will be set. .SH SEE ALSO .PP \f[B]mlx5dv_open_device\f[], \f[B]mlx5dv_devx_obj_create\f[] .SH AUTHOR .PP Yishai Hadas