rdsv3_af_thr_impl.h revision 5d5562f583b2b6affe19bdce0b3c8b1840d667a4
/*
* 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
*/
/*
*/
#ifndef _RDSV3_AF_THR_IMPL_H
#define _RDSV3_AF_THR_IMPL_H
/*
* This file is only present in Solaris
*/
#ifdef __cplusplus
extern "C" {
#endif
#define RDSV3_AFT_MAX_CONN 4
#define RDSV3_AFT_PER_CONN_CPU 1
#define RDSV3_CPUID_POOL_MAX 128
static int rdsv3_cpuid_pool_cnt;
#define RDSV3_MSIX_POOL_MAX 128
static int rdsv3_msix_pool_cnt;
#define RDSV3_CPUFLAGS_ON 0x0001
#define RDSV3_CPUFLAGS_OFF 0x0002
#define RDSV3_CPUFLAGS_ASSIGNED 0x0004
#define RDSV3_CPUFLAGS_INTR 0x0008
#define RDSV3_CPUFLAGS_HCA 0x0010
struct rdsv3_af_grp_s {
int g_conn_cpuid_idx;
};
struct rdsv3_af_thr_s {
/* Keep the most used members 64bytes cache aligned */
void *aft_data; /* argument of cq_drain_func */
};
/*
* State flags.
*/
#ifdef __cplusplus
}
#endif
#endif /* _RDSV3_AF_THR_IMPL_H */