|
NAMEibv_modify_qp - modify the attributes of a queue pair (QP)SYNOPSIS#include <infiniband/verbs.h> int ibv_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, int attr_mask); DESCRIPTIONibv_modify_qp() modifies the attributes of QP qp with the attributes in attr according to the mask attr_mask. The argument attr is an ibv_qp_attr struct, as defined in <infiniband/verbs.h>.struct ibv_qp_attr { For details on struct ibv_qp_cap see the description of ibv_create_qp(). For details on struct ibv_ah_attr see the description of ibv_create_ah(). The argument attr_mask specifies the QP attributes to be modified. The argument is either 0 or the bitwise OR of one or more of the following flags:
RETURN VALUEibv_modify_qp() returns 0 on success, or the value of errno on failure (which indicates the failure reason).NOTESIf any of the modify attributes or the modify mask are invalid, none of the attributes will be modified (including the QP state).Not all devices support resizing QPs. To check if a device supports it, check if the IBV_DEVICE_RESIZE_MAX_WR bit is set in the device capabilities flags. Not all devices support alternate paths. To check if a device supports it, check if the IBV_DEVICE_AUTO_PATH_MIG bit is set in the device capabilities flags. The following tables indicate for each QP Transport Service Type, the minimum list of attributes that must be changed upon transitioning QP state from: Reset --> Init --> RTR --> RTS. For QP Transport Service Type IBV_QPT_UD: Next state Required attributes ---------- ---------------------------------------- Init IBV_QP_STATE, IBV_QP_PKEY_INDEX, IBV_QP_PORT, IBV_QP_QKEY RTR IBV_QP_STATE RTS IBV_QP_STATE, IBV_QP_SQ_PSN For QP Transport Service Type IBV_QPT_UC: Next state Required attributes ---------- ---------------------------------------- Init IBV_QP_STATE, IBV_QP_PKEY_INDEX, IBV_QP_PORT, IBV_QP_ACCESS_FLAGS RTR IBV_QP_STATE, IBV_QP_AV, IBV_QP_PATH_MTU, IBV_QP_DEST_QPN, IBV_QP_RQ_PSN RTS IBV_QP_STATE, IBV_QP_SQ_PSN For QP Transport Service Type IBV_QPT_RC: Next state Required attributes ---------- ---------------------------------------- Init IBV_QP_STATE, IBV_QP_PKEY_INDEX, IBV_QP_PORT, IBV_QP_ACCESS_FLAGS RTR IBV_QP_STATE, IBV_QP_AV, IBV_QP_PATH_MTU, IBV_QP_DEST_QPN, IBV_QP_RQ_PSN, IBV_QP_MAX_DEST_RD_ATOMIC, IBV_QP_MIN_RNR_TIMER RTS IBV_QP_STATE, IBV_QP_SQ_PSN, IBV_QP_MAX_QP_RD_ATOMIC, IBV_QP_RETRY_CNT, IBV_QP_RNR_RETRY, IBV_QP_TIMEOUT For QP Transport Service Type IBV_QPT_RAW_PACKET: Next state Required attributes ---------- ---------------------------------------- Init IBV_QP_STATE, IBV_QP_PORT RTR IBV_QP_STATE RTS IBV_QP_STATE SEE ALSOibv_create_qp(3), ibv_destroy_qp(3), ibv_query_qp(3), ibv_create_ah(3)AUTHORS
Visit the GSP FreeBSD Man Page Interface. |