From b2f3f7a16d0a4a773a98dcf2da14c613d34fcea7 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 16 Aug 2010 13:56:05 -0700 Subject: [PATCH] Refresh of ep --- trunk/ulp/librdmacm/include/rdma/rdma_cma.h | 74 +++++++++++---------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/trunk/ulp/librdmacm/include/rdma/rdma_cma.h b/trunk/ulp/librdmacm/include/rdma/rdma_cma.h index 606795ef..bec57f07 100644 --- a/trunk/ulp/librdmacm/include/rdma/rdma_cma.h +++ b/trunk/ulp/librdmacm/include/rdma/rdma_cma.h @@ -264,42 +264,44 @@ int rdma_create_id(struct rdma_event_channel *channel, struct rdma_cm_id **id, void *context, enum rdma_port_space ps); -/** - * rdma_create_ep - Allocate a communication identifier and qp. - * @id: A reference where the allocated communication identifier will be - * returned. - * @res: Result from rdma_getaddrinfo, which specifies the source and - * destination addresses, plus optional routing and connection information. - * @pd: Optional protection domain. This parameter is ignored if qp_init_attr - * is NULL. - * @qp_init_attr: Optional attributes for a QP created on the rdma_cm_id. - * Description: - * Create an identifier and option QP used for communication. - * Notes: - * If qp_init_attr is provided, then a queue pair will be allocated and - * associated with the rdma_cm_id. If a pd is provided, the QP will be - * created on that PD. Otherwise, the QP will be allocated on a default - * PD. - * The rdma_cm_id will be set to use synchronous operations (connect, - * listen, and get_request). To convert to asynchronous operation, the - * rdma_cm_id should be migrated to a user allocated event channel. - * See also: - * rdma_create_id, rdma_create_qp, rdma_migrate_id, rdma_connect, - * rdma_listen - */ -int rdma_create_ep(struct rdma_cm_id **id, struct rdma_addrinfo *res, - struct ibv_pd *pd, struct ibv_qp_init_attr *qp_init_attr); - -/** - * rdma_destroy_ep - Deallocates a communication identifier and qp. - * @id: The communication identifer to destroy. - * Description: - * Destroys the specified rdma_cm_id and any associated QP created - * on that id. - * See also: - * rdma_create_ep - */ -void rdma_destroy_ep(struct rdma_cm_id *id); +/** + * rdma_create_ep - Allocate a communication identifier and qp. + * @id: A reference where the allocated communication identifier will be + * returned. + * @res: Result from rdma_getaddrinfo, which specifies the source and + * destination addresses, plus optional routing and connection information. + * @pd: Optional protection domain. This parameter is ignored if qp_init_attr + * is NULL. + * @qp_init_attr: Optional attributes for a QP created on the rdma_cm_id. + * Description: + * Create an identifier and option QP used for communication. + * Notes: + * If qp_init_attr is provided, then a queue pair will be allocated and + * associated with the rdma_cm_id. If a pd is provided, the QP will be + * created on that PD. Otherwise, the QP will be allocated on a default + * PD. + * The rdma_cm_id will be set to use synchronous operations (connect, + * listen, and get_request). To convert to asynchronous operation, the + * rdma_cm_id should be migrated to a user allocated event channel. + * See also: + * rdma_create_id, rdma_create_qp, rdma_migrate_id, rdma_connect, + * rdma_listen + */ +__declspec(dllexport) +int rdma_create_ep(struct rdma_cm_id **id, struct rdma_addrinfo *res, + struct ibv_pd *pd, struct ibv_qp_init_attr *qp_init_attr); + +/** + * rdma_destroy_ep - Deallocates a communication identifier and qp. + * @id: The communication identifer to destroy. + * Description: + * Destroys the specified rdma_cm_id and any associated QP created + * on that id. + * See also: + * rdma_create_ep + */ +__declspec(dllexport) +void rdma_destroy_ep(struct rdma_cm_id *id); /** * rdma_destroy_id - Release a communication identifier. -- 2.46.0