mlx5dv_pp_alloc(3)

mlx5dv_pp_alloc3

Allocates a packet pacing entry mlx5dv_pp_free - frees a packet pacing entry

Usage

#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);

Overview

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.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

Author

Yishai Hadas ⟨[email protected]⟩\c

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.