.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "mlx5dv_modify_qp_udp_sport" "3" "" "" "" .hy .SH NAME .PP mlx5dv_modify_qp_udp_sport - Modify the UDP source port of a given QP .SH SYNOPSIS .IP .nf \f[C] #include int mlx5dv_modify_qp_udp_sport(struct ibv_qp *qp, uint16_t udp_sport) \f[R] .fi .SH DESCRIPTION .PP The UDP source port is used to create entropy for network routers (ECMP), load balancers and 802.3ad link aggregation switching that are not aware of RoCE IB headers. .PP This API enables modifying the configured UDP source port of a given RC/UC QP when QP is in RTS state. .SH ARGUMENTS .TP \f[I]qp\f[R] The ibv_qp object to issue the action on. .TP \f[I]udp_sport\f[R] The UDP source port to set for the QP. .SH RETURN VALUE .PP Returns 0 on success, or the value of errno on failure (which indicates the failure reason). .SH AUTHOR .PP Maor Gottlieb