1mlx5dv_query_qp_lag_port(3)                        mlx5dv_query_qp_lag_port(3)
2
3
4

NAME

6       mlx5dv_query_qp_lag_port - Query the lag port information of a given QP
7

SYNOPSIS

9              #include <infiniband/mlx5dv.h>
10
11              int mlx5dv_query_qp_lag_port(struct ibv_qp *qp, uint8_t *port_num,
12                               uint8_t *active_port_num);
13

DESCRIPTION

15       This  API  returns  the configured and active port num of a given QP in
16       mlx5 devices.
17
18       The active port num indicates which port that the QP sends traffic  out
19       in a LAG configuration.
20
21       The  num_lag_ports  field of struct mlx5dv_context greater than 1 means
22       LAG is supported on this device.
23

ARGUMENTS

25       qp     The ibv_qp object to issue the action on.
26
27       port_num
28              The configured port num of the QP.
29
30       active_port_num
31              The current port num of the QP, which  may  different  from  the
32              configured value because of the bonding status.
33

RETURN VALUE

35       0  on  success;  EOPNOTSUPP if not in LAG mode, or other errno value on
36       other failures.
37

SEE ALSO

39       mlx5dv_modify_qp_lag_port(3)
40

AUTHOR

42       Aharon Landau <aharonl@mellanox.com>
43
44
45
46                                                   mlx5dv_query_qp_lag_port(3)
Impressum