1*3302Sagiri /* 2*3302Sagiri * CDDL HEADER START 3*3302Sagiri * 4*3302Sagiri * The contents of this file are subject to the terms of the 5*3302Sagiri * Common Development and Distribution License (the "License"). 6*3302Sagiri * You may not use this file except in compliance with the License. 7*3302Sagiri * 8*3302Sagiri * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*3302Sagiri * or http://www.opensolaris.org/os/licensing. 10*3302Sagiri * See the License for the specific language governing permissions 11*3302Sagiri * and limitations under the License. 12*3302Sagiri * 13*3302Sagiri * When distributing Covered Code, include this CDDL HEADER in each 14*3302Sagiri * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*3302Sagiri * If applicable, add the following below this CDDL HEADER, with the 16*3302Sagiri * fields enclosed by brackets "[]" replaced with your own identifying 17*3302Sagiri * information: Portions Copyright [yyyy] [name of copyright owner] 18*3302Sagiri * 19*3302Sagiri * CDDL HEADER END 20*3302Sagiri */ 21*3302Sagiri /* 22*3302Sagiri * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*3302Sagiri * Use is subject to license terms. 24*3302Sagiri */ 25*3302Sagiri /* 26*3302Sagiri * Copyright (c) 2005 SilverStorm Technologies, Inc. All rights reserved. 27*3302Sagiri * 28*3302Sagiri * This software is available to you under a choice of one of two 29*3302Sagiri * licenses. You may choose to be licensed under the terms of the GNU 30*3302Sagiri * General Public License (GPL) Version 2, available from the file 31*3302Sagiri * COPYING in the main directory of this source tree, or the 32*3302Sagiri * OpenIB.org BSD license below: 33*3302Sagiri * 34*3302Sagiri * Redistribution and use in source and binary forms, with or 35*3302Sagiri * without modification, are permitted provided that the following 36*3302Sagiri * conditions are met: 37*3302Sagiri * 38*3302Sagiri * - Redistributions of source code must retain the above 39*3302Sagiri * copyright notice, this list of conditions and the following 40*3302Sagiri * disclaimer. 41*3302Sagiri * 42*3302Sagiri * - Redistributions in binary form must reproduce the above 43*3302Sagiri * copyright notice, this list of conditions and the following 44*3302Sagiri * disclaimer in the documentation and/or other materials 45*3302Sagiri * provided with the distribution. 46*3302Sagiri * 47*3302Sagiri * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 48*3302Sagiri * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 49*3302Sagiri * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 50*3302Sagiri * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 51*3302Sagiri * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 52*3302Sagiri * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 53*3302Sagiri * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 54*3302Sagiri * SOFTWARE. 55*3302Sagiri * 56*3302Sagiri */ 57*3302Sagiri /* 58*3302Sagiri * Sun elects to include this software in Sun product 59*3302Sagiri * under the OpenIB BSD license. 60*3302Sagiri * 61*3302Sagiri * 62*3302Sagiri * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 63*3302Sagiri * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 64*3302Sagiri * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 65*3302Sagiri * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 66*3302Sagiri * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 67*3302Sagiri * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 68*3302Sagiri * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 69*3302Sagiri * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 70*3302Sagiri * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 71*3302Sagiri * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 72*3302Sagiri * POSSIBILITY OF SUCH DAMAGE. 73*3302Sagiri */ 74*3302Sagiri 75*3302Sagiri #ifndef _RDSIB_CM_H 76*3302Sagiri #define _RDSIB_CM_H 77*3302Sagiri 78*3302Sagiri #pragma ident "%Z%%M% %I% %E% SMI" 79*3302Sagiri 80*3302Sagiri #ifdef __cplusplus 81*3302Sagiri extern "C" { 82*3302Sagiri #endif 83*3302Sagiri 84*3302Sagiri /* 85*3302Sagiri * IB parameters: 86*3302Sagiri * 87*3302Sagiri * CM_RETRY_CNT - The number of times, CM should retry a MAD. 88*3302Sagiri * RNR_RETRY - The number of times, HCA should retry RNR NAK errors. 89*3302Sagiri * MAX_SG_LIST - Maximum number of SG lists allowed in a WR. 90*3302Sagiri * IB_PKT_LT - Packet LifeTime 91*3302Sagiri */ 92*3302Sagiri #define RDS_IB_PATH_RETRY 7 93*3302Sagiri #define RDS_IB_RNR_RETRY IBT_RNR_INFINITE_RETRY 94*3302Sagiri #define RDS_IB_MAX_SGL 1 95*3302Sagiri #define RDS_IB_PKT_LT 0 /* Use the value in the path record */ 96*3302Sagiri 97*3302Sagiri #ifdef __cplusplus 98*3302Sagiri } 99*3302Sagiri #endif 100*3302Sagiri 101*3302Sagiri #endif /* _RDSIB_CM_H */ 102