Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | ib_cm_req_event_param |
struct | ib_cm_rep_event_param |
struct | ib_cm_rej_event_param |
struct | ib_cm_mra_event_param |
struct | ib_cm_lap_event_param |
struct | ib_cm_apr_event_param |
struct | ib_cm_sidr_req_event_param |
struct | ib_cm_sidr_rep_event_param |
struct | ib_cm_event |
struct | ib_cm_id |
struct | ib_cm_compare_data |
struct | ib_cm_req_param |
struct | ib_cm_rep_param |
struct | ib_cm_sidr_req_param |
struct | ib_cm_sidr_rep_param |
Macros | |
#define | CM_REQ_ATTR_ID cpu_to_be16(0x0010) |
#define | CM_MRA_ATTR_ID cpu_to_be16(0x0011) |
#define | CM_REJ_ATTR_ID cpu_to_be16(0x0012) |
#define | CM_REP_ATTR_ID cpu_to_be16(0x0013) |
#define | CM_RTU_ATTR_ID cpu_to_be16(0x0014) |
#define | CM_DREQ_ATTR_ID cpu_to_be16(0x0015) |
#define | CM_DREP_ATTR_ID cpu_to_be16(0x0016) |
#define | CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017) |
#define | CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018) |
#define | CM_LAP_ATTR_ID cpu_to_be16(0x0019) |
#define | CM_APR_ATTR_ID cpu_to_be16(0x001A) |
#define | IB_SERVICE_ID_AGN_MASK cpu_to_be64(0xFF00000000000000ULL) |
#define | IB_CM_ASSIGN_SERVICE_ID cpu_to_be64(0x0200000000000000ULL) |
#define | IB_CMA_SERVICE_ID cpu_to_be64(0x0000000001000000ULL) |
#define | IB_CMA_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFF000000ULL) |
#define | IB_SDP_SERVICE_ID cpu_to_be64(0x0000000000010000ULL) |
#define | IB_SDP_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFFFF0000ULL) |
#define | IB_CM_MRA_FLAG_DELAY 0x80 /* Send MRA only after a duplicate msg */ |
Typedefs | |
typedef int(* | ib_cm_handler )(struct ib_cm_id *cm_id, struct ib_cm_event *event) |
Variables | |
struct class | cm_class |
#define CM_APR_ATTR_ID cpu_to_be16(0x001A) |
#define CM_DREP_ATTR_ID cpu_to_be16(0x0016) |
#define CM_DREQ_ATTR_ID cpu_to_be16(0x0015) |
#define CM_LAP_ATTR_ID cpu_to_be16(0x0019) |
#define CM_MRA_ATTR_ID cpu_to_be16(0x0011) |
#define CM_REJ_ATTR_ID cpu_to_be16(0x0012) |
#define CM_REP_ATTR_ID cpu_to_be16(0x0013) |
#define CM_REQ_ATTR_ID cpu_to_be16(0x0010) |
#define CM_RTU_ATTR_ID cpu_to_be16(0x0014) |
#define CM_SIDR_REP_ATTR_ID cpu_to_be16(0x0018) |
#define CM_SIDR_REQ_ATTR_ID cpu_to_be16(0x0017) |
#define IB_CM_ASSIGN_SERVICE_ID cpu_to_be64(0x0200000000000000ULL) |
#define IB_CM_MRA_FLAG_DELAY 0x80 /* Send MRA only after a duplicate msg */ |
#define IB_CMA_SERVICE_ID cpu_to_be64(0x0000000001000000ULL) |
#define IB_CMA_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFF000000ULL) |
#define IB_SDP_SERVICE_ID cpu_to_be64(0x0000000000010000ULL) |
#define IB_SDP_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFFFF0000ULL) |
#define IB_SERVICE_ID_AGN_MASK cpu_to_be64(0xFF00000000000000ULL) |
ib_cm_handler - User-defined callback to process communication events. : Communication identifier associated with the reported event. : Information about the communication event.
IB_CM_REQ_RECEIVED and IB_CM_SIDR_REQ_RECEIVED communication events generated as a result of listen requests result in the allocation of a new . The new is returned to the user through this callback. Clients are responsible for destroying the new . For peer-to-peer IB_CM_REQ_RECEIVED and all other events, the returned corresponds to a user's existing communication identifier.
Users may not call ib_destroy_cm_id while in the context of this callback; however, returning a non-zero value instructs the communication manager to destroy the after the callback completes.
enum ib_cm_apr_status |
enum ib_cm_data_size |
enum ib_cm_event_type |
enum ib_cm_lap_state |
enum ib_cm_rej_reason |
enum ib_cm_sidr_status |
enum ib_cm_state |
ib_cm_init_qp_attr - Initializes the QP attributes for use in transitioning to a specified QP state. : Communication identifier associated with the QP attributes to initialize. : On input, specifies the desired QP state. On output, the mandatory and desired optional attributes will be set in order to modify the QP to the specified state. : The QP attribute mask that may be used to transition the QP to the specified state.
Users must set the ->qp_state to the desired QP state. This call will set all required attributes for the given transition, along with known optional attributes. Users may override the attributes returned from this call before calling ib_modify_qp.
int ib_cm_listen | ( | struct ib_cm_id * | cm_id, |
__be64 | service_id, | ||
__be64 | service_mask, | ||
struct ib_cm_compare_data * | compare_data | ||
) |
ib_cm_listen - Initiates listening on the specified service ID for connection and service ID resolution requests. : Connection identifier associated with the listen request. : Service identifier matched against incoming connection and service ID resolution requests. The service ID should be specified network-byte order. If set to IB_CM_ASSIGN_SERVICE_ID, the CM will assign a service ID to the caller. : Mask applied to service ID used to listen across a range of service IDs. If set to 0, the service ID is matched exactly. This parameter is ignored if service_id is set to IB_CM_ASSIGN_SERVICE_ID. : This parameter is optional. It specifies data that must appear in the private data of a connection request for the specified listen request.
int ib_cm_notify | ( | struct ib_cm_id * | cm_id, |
enum ib_event_type | event | ||
) |
ib_cm_notify - Notifies the CM of an event reported to the consumer. : Connection identifier to transition to established. : Type of event.
This routine should be invoked by users to notify the CM of relevant communication events. Events that should be reported to the CM and when to report them are:
IB_EVENT_COMM_EST - Used when a message is received on a connected QP before an RTU has been received. IB_EVENT_PATH_MIG - Notifies the CM that the connection has failed over to the alternate path.
|
read |
ib_create_cm_id - Allocate a communication identifier. : Device associated with the cm_id. All related communication will be associated with the specified device. : Callback invoked to notify the user of CM events. : User specified context associated with the communication identifier.
Communication identifiers are used to track connection states, service ID resolution requests, and listen requests.
int ib_send_cm_apr | ( | struct ib_cm_id * | cm_id, |
enum ib_cm_apr_status | status, | ||
void * | info, | ||
u8 | info_length, | ||
const void * | private_data, | ||
u8 | private_data_len | ||
) |
ib_send_cm_apr - Sends an alternate path response message in response to a load alternate path request. : Connection identifier associated with the alternate path response. : Reply status sent with the alternate path response. : Optional additional information sent with the alternate path response. : Size of the additional information, in bytes. : Optional user-defined private data sent with the alternate path response message. : Size of the private data buffer, in bytes.
ib_send_cm_drep - Sends a disconnection reply to a disconnection request. : Connection identifier associated with the connection being released. : Optional user-defined private data sent with the disconnection reply message. : Size of the private data buffer, in bytes.
If the cm_id is in the correct state, the CM will transition the connection to the timewait state, even if an error occurs sending the DREP message.
int ib_send_cm_lap | ( | struct ib_cm_id * | cm_id, |
struct ib_sa_path_rec * | alternate_path, | ||
const void * | private_data, | ||
u8 | private_data_len | ||
) |
ib_send_cm_lap - Sends a load alternate path request. : Connection identifier associated with the load alternate path message. : A path record that identifies the alternate path to load. : Optional user-defined private data sent with the load alternate path message. : Size of the private data buffer, in bytes.
int ib_send_cm_mra | ( | struct ib_cm_id * | cm_id, |
u8 | service_timeout, | ||
const void * | private_data, | ||
u8 | private_data_len | ||
) |
ib_send_cm_mra - Sends a message receipt acknowledgement to a connection message. : Connection identifier associated with the connection message. : The lower 5-bits specify the maximum time required for the sender to reply to the connection message. The upper 3-bits specify additional control flags. : Optional user-defined private data sent with the message receipt acknowledgement. : Size of the private data buffer, in bytes.
int ib_send_cm_rej | ( | struct ib_cm_id * | cm_id, |
enum ib_cm_rej_reason | reason, | ||
void * | ari, | ||
u8 | ari_length, | ||
const void * | private_data, | ||
u8 | private_data_len | ||
) |
ib_send_cm_rej - Sends a connection rejection message to the remote node. : Connection identifier associated with the connection being rejected. : Reason for the connection request rejection. : Optional additional rejection information. : Size of the additional rejection information, in bytes. : Optional user-defined private data sent with the rejection message. : Size of the private data buffer, in bytes.
int ib_send_cm_rep | ( | struct ib_cm_id * | cm_id, |
struct ib_cm_rep_param * | param | ||
) |
int ib_send_cm_req | ( | struct ib_cm_id * | cm_id, |
struct ib_cm_req_param * | param | ||
) |
int ib_send_cm_sidr_rep | ( | struct ib_cm_id * | cm_id, |
struct ib_cm_sidr_rep_param * | param | ||
) |
int ib_send_cm_sidr_req | ( | struct ib_cm_id * | cm_id, |
struct ib_cm_sidr_req_param * | param | ||
) |