mlx5dv_map_ah_to_qp(3)

mlx5dv_map_ah_to_qp3

Map the destination path information in address handle (ah) to the information extracted from the qp.

Usage

#include <infiniband/mlx5dv.h>
int mlx5dv_map_ah_to_qp(struct ibv_ah *ah, uint32_t qp_num);

Overview

This API maps the destination path information in address handle (ah) to the information extracted from the qp (e.g. congestion control from ECE).

This API serves as an enhancement to DC and UD QPs to achieve better performance by using per-address congestion control (CC) algorithms, enabling DC/UD QPs to use multiple CC algorithms in the same datacenter.

The mapping created by this API is implicitly destroyed when the address handle is destroyed. It is not affected by the destruction of QP qp_num.

A duplicate mapping to the same address handle is ignored. As this API is just a hint for the hardware in this case it would do nothing and return success regardless of the new qp_num ECE.

The function must be called after ECE negotiation/preconfiguration was done by some external means.

Arguments

ah

The target’s address handle.

qp_num

The initiator QP from which congestion control information is extracted from its ECE.

Return value

Upon success, returns 0; Upon failure, the value of errno is returned.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Author

Yochai Cohen ⟨[email protected]⟩\c

Patrisious Haddad ⟨[email protected]⟩\c

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