.\" Automatically generated by Pandoc 3.8.2.1
.\"
.TH "mlx5dv_modify_qp_lag_port" "3" "" ""
.SH NAME
mlx5dv_modify_qp_lag_port \- Modify the lag port information of a given
QP
.SH SYNOPSIS
.IP
.EX
#include \f[B]<infiniband/mlx5dv.h>\f[R]

int mlx5dv_modify_qp_lag_port(\f[B]struct\f[R] ibv_qp *qp, uint8_t port_num);
.EE
.SH DESCRIPTION
This API enables modifying the configured port num of a given QP.
.PP
If the QP state is modified later, the port num may be implicitly
re\-configured.
.PP
Use query mlx5dv_query_qp_lag_port to check the configured and active
port num values.
.SH ARGUMENTS
.TP
\f[I]qp\f[R]
The ibv_qp object to issue the action on.
.TP
\f[I]port_num\f[R]
The port_num to set for the QP.
.SH RETURN VALUE
0 on success; EOPNOTSUPP if not in LAG mode, or other errno value on
other failures.
.SH SEE ALSO
\f[I]mlx5dv_query_qp_lag_port(3)\f[R]
.SH AUTHOR
Aharon Landau \c
.MT aharonl@mellanox.com
.ME \c
