.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "mlx5dv_query_qp_lag_port" "3" "" "" "" .hy .SH NAME .PP mlx5dv_query_qp_lag_port - Query the lag port information of a given QP .SH SYNOPSIS .IP .nf \f[C] #include int mlx5dv_query_qp_lag_port(struct ibv_qp *qp, uint8_t *port_num, uint8_t *active_port_num); \f[R] .fi .SH DESCRIPTION .PP This API returns the configured and active port num of a given QP in mlx5 devices. .PP The active port num indicates which port that the QP sends traffic out in a LAG configuration. .PP The num_lag_ports field of struct mlx5dv_context greater than 1 means LAG is supported on this device. .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 configured port num of the QP. .TP \f[I]active_port_num\f[R] The current port num of the QP, which may different from the configured value because of the bonding status. .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_modify_qp_lag_port(3)\f[R] .SH AUTHOR .PP Aharon Landau