1mlx5dv_pp_alloc / mlx5dv_pp_free(3)        mlx5dv_pp_alloc / mlx5dv_pp_free(3)
2
3
4

NAME

6       mlx5dv_pp_alloc - Allocates a packet pacing entry
7
8       mlx5dv_pp_free - Frees a packet pacing entry
9

SYNOPSIS

11              #include <infiniband/mlx5dv.h>
12
13              struct mlx5dv_pp *
14              mlx5dv_pp_alloc(struct ibv_context *context,
15                      size_t pp_context_sz,
16                      const void *pp_context,
17                      uint32_t flags);
18
19              void mlx5dv_pp_free(struct mlx5dv_pp *dv_pp);
20

DESCRIPTION

22       Create  /  free a packet pacing entry which can be used for some device
23       commands over the DEVX interface.
24
25       The DEVX API enables direct access from the user space area to the mlx5
26       device driver, the packet pacing information is needed for few commands
27       where a packet pacing index is needed.
28

ARGUMENTS

30       context
31              RDMA device context to work on, need to be opened with DEVX sup‐
32              port by using mlx5dv_open_device().
33
34       pp_context_sz
35              Length of pp_context input buffer.
36
37       pp_context
38              Packet pacing context according to the device specification.
39
40       flags  MLX5DV_PP_ALLOC_FLAGS_DEDICATED_INDEX:  allocate a dedicated in‐
41              dex.
42
43   dv_pp
44              struct mlx5dv_pp {
45                  uint16_t index;
46              };
47
48       index  The device index to be used.
49

RETURN VALUE

51       Upon success mlx5dv_pp_alloc returns a pointer to  the  created  packet
52       pacing object, on error NULL will be returned and errno will be set.
53

SEE ALSO

55       mlx5dv_open_device, mlx5dv_devx_obj_create
56

AUTHOR

58       Yishai Hadas <yishaih@mellanox.com>
59
60
61
62                                           mlx5dv_pp_alloc / mlx5dv_pp_free(3)
Impressum