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