.\" Automatically generated by Pandoc 2.17.1.1
.\"
.\" 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_lag_port" "3" "" "" ""
.hy
.SH NAME
.PP
mlx5dv_modify_qp_lag_port - Modify the lag port information of a given
QP
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/mlx5dv.h>

int mlx5dv_modify_qp_lag_port(struct ibv_qp *qp, uint8_t port_num);
\f[R]
.fi
.SH DESCRIPTION
.PP
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
.PP
0 on success; EOPNOTSUPP if not in LAG mode, or other errno value on
other failures.
.SH SEE ALSO
.PP
\f[I]mlx5dv_query_qp_lag_port(3)\f[R]
.SH AUTHOR
.PP
Aharon Landau <aharonl@mellanox.com>
