mlx5dv_pp_alloc - Man Page
Name
mlx5dv_pp_alloc ā Allocates a packet pacing entry
mlx5dv_pp_free ā Frees a packet pacing entry
Synopsis
#include <infiniband/mlx5dv.h> 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);
Description
Create / free a packet pacing entry which can be used for some device commands over the DEVX interface.
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.
Arguments
- context
RDMA device context to work on, need to be opened with DEVX support by using mlx5dv_open_device().
- pp_context_sz
Length of pp_context input buffer.
- pp_context
Packet pacing context according to the device specification.
- flags
MLX5DV_PP_ALLOC_FLAGS_DEDICATED_INDEX: allocate a dedicated index.
dv_pp
struct mlx5dv_pp { uint16_t index; };
- index
The device index to be used.
Return Value
Upon success mlx5dv_pp_alloc returns a pointer to the created packet pacing object, on error NULL will be returned and errno will be set.
See Also
Author
Yishai Hadas <yishaih@mellanox.com>
Referenced By
The man page mlx5dv_pp_free(3) is an alias of mlx5dv_pp_alloc(3).