1mlx5dv_modify_qp_udp_sport(3) mlx5dv_modify_qp_udp_sport(3)
2
3
4
6 mlx5dv_modify_qp_udp_sport - Modify the UDP source port of a given QP
7
9 #include <infiniband/mlx5dv.h>
10
11 int mlx5dv_modify_qp_udp_sport(struct ibv_qp *qp, uint16_t udp_sport)
12
14 The UDP source port is used to create entropy for network routers
15 (ECMP), load balancers and 802.3ad link aggregation switching that are
16 not aware of RoCE IB headers.
17
18 This API enables modifying the configured UDP source port of a given
19 RC/UC QP when QP is in RTS state.
20
22 qp The ibv_qp object to issue the action on.
23
24 udp_sport
25 The UDP source port to set for the QP.
26
28 Returns 0 on success, or the value of errno on failure (which indicates
29 the failure reason).
30
32 Maor Gottlieb <maorg@nvidia.com>
33
34
35
36 mlx5dv_modify_qp_udp_sport(3)