1mlx5dv_map_ah_to_qp(3) mlx5dv_map_ah_to_qp(3)
2
3
4
6 mlx5dv_map_ah_to_qp - Map the destination path information in address
7 handle (AH) to the information extracted from the qp.
8
10 #include <infiniband/mlx5dv.h>
11
12 int mlx5dv_map_ah_to_qp(struct ibv_ah *ah, uint32_t qp_num);
13
15 This API maps the destination path information in address handle (ah)
16 to the information extracted from the qp (e.g. congestion control from
17 ECE).
18
19 This API serves as an enhancement to DC and UD QPs to achieve better
20 performance by using per-address congestion control (CC) algorithms,
21 enabling DC/UD QPs to use multiple CC algorithms in the same datacen‐
22 ter.
23
24 The mapping created by this API is implicitly destroyed when the ad‐
25 dress handle is destroyed. It is not affected by the destruction of QP
26 qp_num.
27
28 A duplicate mapping to the same address handle is ignored. As this API
29 is just a hint for the hardware in this case it would do nothing and
30 return success regardless of the new qp_num ECE.
31
32 The function must be called after ECE negotiation/preconfiguration was
33 done by some external means.
34
36 ah The target’s address handle.
37
38 qp_num The initiator QP from which congestion control information is
39 extracted from its ECE.
40
42 Upon success, returns 0; Upon failure, the value of errno is returned.
43
45 rdma_cm(7), rdma_get_remote_ece(3), ibv_query_ece(3), ibv_set_ece(3)
46
48 Yochai Cohen <yochai@nvidia.com>
49
50 Patrisious Haddad <phaddad@nvidia.com>
51
52
53
54 mlx5dv_map_ah_to_qp(3)