ibtl_srq.c revision f7327bbd956f5bf6b97f9b90e0c81e8344d8835f
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* These routines implement (most of) the verbs related to
* Shared Receive Queues.
*/
/*
* Globals
*/
static char ibtf_srq[] = "ibtl_srq";
/*
* This file contains code for the TI SRQ calls
*/
/*
*
* ibt_alloc_srq() - Allocate a completion queue
*/
{
/*
* Set the following values before creating CI SRQ, to avoid race
* conditions on async callback.
*/
if (status != IBT_SUCCESS) {
"CI SRQ handle allocation failed: status = %d", status);
return (status);
}
/* Update the srq resource count */
return (IBT_SUCCESS);
}
/*
* ibt_free_srq() - Free a shared receive queue
*
*/
{
if (status != IBT_SUCCESS) {
"CI SRQ handle de-allocation failed: status = %d", status);
return (status);
}
/* Update the srq resource count */
return (status);
}
/*
* ibt_query_srq() - Returns the size of the srq
*/
{
}
/*
* ibt_resize_srq() - Change the size of a srq.
*/
{
}
/*
* ibt_set_srq_private - Sets the private data on a given SRQ
*
* ibt_srq The ibt_srq_hdl_t of the allocated SRQ.
* clnt_private The client private data.
*/
void
{
}
/*
* ibt_get_srq_private - Retrieves the private data for a given SRQ
*
* ibt_srq The ibt_srq_hdl_t of the allocated SRQ.
*/
void *
{
return (ibt_srq->srq_clnt_private);
}
/*
* Function:
* ibt_post_srq
* Input:
* srq - SRQ.
* wr_list - Address of array[size] of work requests.
* size - Number of work requests.
* Output:
* posted - Address to return the number of work requests
* successfully posted. May be NULL.
* Description:
* Post one or more receive work requests to the SRQ.
*/
{
}