10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 54703Shiremath * Common Development and Distribution License (the "License"). 64703Shiremath * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 2212163SRamaswamy.Tummala@Sun.COM * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate */ 240Sstevel@tonic-gate 250Sstevel@tonic-gate #ifndef _SYS_IB_IBTL_IBTL_STATUS_H 260Sstevel@tonic-gate #define _SYS_IB_IBTL_IBTL_STATUS_H 270Sstevel@tonic-gate 280Sstevel@tonic-gate /* 290Sstevel@tonic-gate * ibtl_status.h 300Sstevel@tonic-gate * 310Sstevel@tonic-gate * Define global IBTL return codes. 320Sstevel@tonic-gate */ 330Sstevel@tonic-gate 340Sstevel@tonic-gate #ifdef __cplusplus 350Sstevel@tonic-gate extern "C" { 360Sstevel@tonic-gate #endif 370Sstevel@tonic-gate 380Sstevel@tonic-gate /* 390Sstevel@tonic-gate * Mnemonics 400Sstevel@tonic-gate * APM - Automatic Path Migration 410Sstevel@tonic-gate * APR - Alternate Path Response 420Sstevel@tonic-gate * AH - Address Handle 430Sstevel@tonic-gate * CI - Channel Interface (HCA) 440Sstevel@tonic-gate * CQ - Completion Queue 450Sstevel@tonic-gate * DLID - Destination Local Id 460Sstevel@tonic-gate * DS - Data Segment. 470Sstevel@tonic-gate * GSI - General Service Interface 480Sstevel@tonic-gate * GUID - Globally Unique Identifier 490Sstevel@tonic-gate * HCA - Host Channel Adapter. 500Sstevel@tonic-gate * L_KEY - Local Key 510Sstevel@tonic-gate * LAP - Load Alternative Path 520Sstevel@tonic-gate * MC - Multicast 530Sstevel@tonic-gate * MCG - Multicast Group 540Sstevel@tonic-gate * MR - Memory Region 550Sstevel@tonic-gate * MW - Memory Window 560Sstevel@tonic-gate * MTU - Maximum Transfer Unit 570Sstevel@tonic-gate * NAK - Negative Acknowledge 580Sstevel@tonic-gate * P_KEY - Partition Key 590Sstevel@tonic-gate * PD - Protection Domain 600Sstevel@tonic-gate * PSN - Packet Serial Number 610Sstevel@tonic-gate * QP - Queue Pair 620Sstevel@tonic-gate * QPN - Queue Pair Number 630Sstevel@tonic-gate * R_KEY - Remote Key 640Sstevel@tonic-gate * RC - Reliable Connected 650Sstevel@tonic-gate * RDMA - Remote DMA 660Sstevel@tonic-gate * RNR - Receiver Not Ready 670Sstevel@tonic-gate * RQ - Receive Work Queue 680Sstevel@tonic-gate * SGL - Scatter/Gather List 690Sstevel@tonic-gate * SL - Service Level 700Sstevel@tonic-gate * SMI - Subnet Management Interface 710Sstevel@tonic-gate * SQ - Send Work Queue 720Sstevel@tonic-gate * UC - Unreliable Connected 730Sstevel@tonic-gate * UD - Unreliable Datagram 740Sstevel@tonic-gate * VA - Virtual Address 750Sstevel@tonic-gate * WR - Work Request 760Sstevel@tonic-gate * WC - Work Completion 770Sstevel@tonic-gate * WRC - Work Request Completion 780Sstevel@tonic-gate */ 790Sstevel@tonic-gate 800Sstevel@tonic-gate /* 810Sstevel@tonic-gate * IBTF Immediate status codes. 820Sstevel@tonic-gate */ 830Sstevel@tonic-gate typedef enum ibt_status_e { 840Sstevel@tonic-gate /* 850Sstevel@tonic-gate * Generic Status codes. 860Sstevel@tonic-gate */ 870Sstevel@tonic-gate IBT_SUCCESS = 0, /* Operation Successful */ 880Sstevel@tonic-gate IBT_FAILURE = 1, /* Undefined IBTF Failure */ 890Sstevel@tonic-gate IBT_NOT_SUPPORTED = 2, /* Feature not supported */ 900Sstevel@tonic-gate IBT_ILLEGAL_OP = 3, /* Operation not supported */ 910Sstevel@tonic-gate IBT_INVALID_PARAM = 4, /* Invalid argument specified */ 920Sstevel@tonic-gate IBT_INSUFF_KERNEL_RESOURCE = 5, /* Not enough Kernel Resource */ 930Sstevel@tonic-gate IBT_CM_FAILURE = 6, /* A call to CM returned */ 940Sstevel@tonic-gate /* look into detailed error */ 950Sstevel@tonic-gate /* code for actual failure */ 960Sstevel@tonic-gate IBT_CM_SERVICE_EXISTS = 7, /* For the given parameters */ 970Sstevel@tonic-gate /* serviceId already exists */ 980Sstevel@tonic-gate IBT_APM_NOT_SUPPORTED = 8, /* Can not satisfy a request */ 990Sstevel@tonic-gate /* for APM */ 1009335SShantkumar.Hiremath@Sun.COM IBT_IBMF_TIMEOUT = 10, /* IBMF call returned with */ 1019335SShantkumar.Hiremath@Sun.COM /* TIMEOUT error code. */ 1020Sstevel@tonic-gate IBT_INSUFF_DATA = 11, /* Requested number of */ 1030Sstevel@tonic-gate /* paths/records are not */ 1040Sstevel@tonic-gate /* available. */ 1050Sstevel@tonic-gate IBT_NO_HCAS_AVAILABLE = 12, /* No HCAs have attached. */ 1060Sstevel@tonic-gate IBT_PATH_RECORDS_NOT_FOUND = 13, /* Path records not found. */ 1070Sstevel@tonic-gate IBT_SERVICE_RECORDS_NOT_FOUND = 14, /* Service records not found. */ 1080Sstevel@tonic-gate IBT_MCG_RECORDS_NOT_FOUND = 15, /* MCG records not found. */ 1090Sstevel@tonic-gate IBT_PATH_PKT_LT_TOO_HIGH = 16, /* Path's packet life time */ 1100Sstevel@tonic-gate /* is too high. */ 1110Sstevel@tonic-gate IBT_CM_SERVICE_BUSY = 17, /* Service still has bindings */ 1120Sstevel@tonic-gate IBT_STATIC_RATE_INVALID = 18, /* Invalid Static Rate */ 1130Sstevel@tonic-gate IBT_SGID_INVALID = 19, /* Invalid SGID or SGID index */ 1140Sstevel@tonic-gate IBT_NODE_RECORDS_NOT_FOUND = 20, /* NODEInfo records not found */ 1150Sstevel@tonic-gate IBT_GIDS_NOT_FOUND = 21, /* Companion GIDs not found */ 1160Sstevel@tonic-gate IBT_INCONSISTENT_AR = 22, /* Address Record contradicts */ 1170Sstevel@tonic-gate /* an existing Address Record */ 1180Sstevel@tonic-gate IBT_AR_NOT_REGISTERED = 23, /* Address Record is not */ 1190Sstevel@tonic-gate /* currently registered */ 1200Sstevel@tonic-gate IBT_MULTIPLE_AR = 24, /* Multiple records exist for */ 1210Sstevel@tonic-gate /* what should be a unique */ 1220Sstevel@tonic-gate /* query result. One of the */ 1230Sstevel@tonic-gate /* records was returned. */ 1244703Shiremath IBT_DEST_IP_GID_NOT_FOUND = 25, /* No IP to GID Mapping */ 1254703Shiremath IBT_SRC_IP_NOT_FOUND = 26, /* SRC IP Endpoint not found */ 12612163SRamaswamy.Tummala@Sun.COM IBT_NO_SUCH_OBJECT = 27, /* No such object */ 1270Sstevel@tonic-gate 1280Sstevel@tonic-gate /* 1290Sstevel@tonic-gate * Resource Errors 1300Sstevel@tonic-gate */ 1310Sstevel@tonic-gate IBT_INSUFF_RESOURCE = 100, /* Not enough resources */ 1320Sstevel@tonic-gate IBT_HCA_CQ_EXCEEDED = 101, /* CQ capacity requested */ 1330Sstevel@tonic-gate /* exceeds HCA capability */ 1340Sstevel@tonic-gate IBT_HCA_WR_EXCEEDED = 102, /* Requested WRs exceed limit */ 1350Sstevel@tonic-gate IBT_HCA_SGL_EXCEEDED = 103, /* Requested SGL entries */ 1360Sstevel@tonic-gate /* exceed HCA max limit */ 1370Sstevel@tonic-gate IBT_ERR_OPAQUE1 = 104, 1380Sstevel@tonic-gate IBT_HCA_MCG_CHAN_EXCEEDED = 105, /* Requested Channel exceeds */ 1390Sstevel@tonic-gate /* HCA multicast groups */ 1400Sstevel@tonic-gate /* channel limit */ 1410Sstevel@tonic-gate IBT_HCA_IN_USE = 106, /* HCA already open (in use) */ 1420Sstevel@tonic-gate IBT_HCA_RESOURCES_NOT_FREED = 107, /* HCA resources still in use */ 1430Sstevel@tonic-gate IBT_HCA_BUSY_DETACHING = 108, /* HCA detach in progress */ 1440Sstevel@tonic-gate IBT_HCA_BUSY_CLOSING = 109, /* This client is in the */ 1450Sstevel@tonic-gate /* process of closing this */ 1460Sstevel@tonic-gate /* HCA */ 1470Sstevel@tonic-gate 1480Sstevel@tonic-gate /* 1490Sstevel@tonic-gate * Host Channel Adapter (HCA) Attribute Errors. 1500Sstevel@tonic-gate */ 1510Sstevel@tonic-gate IBT_HCA_INVALID = 200, /* Invalid HCA GUID */ 1520Sstevel@tonic-gate IBT_HCA_HDL_INVALID = 201, /* Invalid HCA Handle */ 1530Sstevel@tonic-gate IBT_HCA_PORT_MTU_EXCEEDED = 202, /* MTU of HCA port exceeded */ 1540Sstevel@tonic-gate IBT_HCA_PORT_INVALID = 203, /* Invalid HCA physical port */ 1550Sstevel@tonic-gate IBT_HCA_CNTR_INVALID = 204, /* Invalid Counter Specified */ 1560Sstevel@tonic-gate IBT_HCA_CNTR_VAL_INVALID = 205, /* Invalid Counter value */ 1570Sstevel@tonic-gate IBT_HCA_PORT_NOT_ACTIVE = 206, /* Port is down */ 1580Sstevel@tonic-gate IBT_HCA_SRQ_NOT_SUPPORTED = 207, /* Shared Receive Queue */ 159929Ssrust /* not supported */ 160929Ssrust IBT_HCA_RESIZE_SRQ_NOT_SUPPORTED = 208, /* SRQ Resize not supported */ 161929Ssrust IBT_HCA_PAGE_MODE = 209, /* Not opened in page mode */ 162929Ssrust IBT_HCA_BLOCK_MODE = 210, /* HCA does not support Block */ 163929Ssrust /* mode or Not opened in */ 164929Ssrust /* Block mode */ 1650Sstevel@tonic-gate IBT_HCA_BMM_NOT_SUPPORTED = 211, /* Base Memory Management */ 1660Sstevel@tonic-gate /* Extensions not supported */ 1670Sstevel@tonic-gate IBT_HCA_BQM_NOT_SUPPORTED = 212, /* Base Queue Management */ 1680Sstevel@tonic-gate /* Extensions not supported */ 1690Sstevel@tonic-gate IBT_HCA_ZBVA_NOT_SUPPORTED = 213, /* Zero Based Virtual */ 1700Sstevel@tonic-gate /* Addresses not supported */ 1710Sstevel@tonic-gate IBT_HCA_MR_MPB_SZ_NOT_SUPPORTED = 214, /* Multiple physical buffer */ 1720Sstevel@tonic-gate /* sizes per MR not supported */ 1730Sstevel@tonic-gate IBT_HCA_TYPE_2_MW_NOT_SUPPORTED = 215, 1740Sstevel@tonic-gate 1750Sstevel@tonic-gate IBT_HCA_LIF_NOT_SUPPORTED = 216, /* Local Invalidate Fencing */ 1760Sstevel@tonic-gate /* not supported */ 177929Ssrust IBT_HCA_FMR_NOT_SUPPORTED = 217, /* Fast Memory Registration */ 178929Ssrust /* not supported */ 1790Sstevel@tonic-gate /* 1800Sstevel@tonic-gate * Address errors 1810Sstevel@tonic-gate */ 1820Sstevel@tonic-gate IBT_UD_DEST_HDL_INVALID = 300, /* Invalid Address Handle */ 1830Sstevel@tonic-gate 1840Sstevel@tonic-gate /* 1850Sstevel@tonic-gate * Channel Errors 1860Sstevel@tonic-gate */ 1870Sstevel@tonic-gate IBT_CHAN_HDL_INVALID = 400, /* Invalid channel Handle */ 1880Sstevel@tonic-gate IBT_CHAN_ATTR_RO = 401, /* Cannot Change channel */ 1890Sstevel@tonic-gate /* Attribute */ 1900Sstevel@tonic-gate IBT_CHAN_STATE_INVALID = 402, /* Invalid channel State */ 1910Sstevel@tonic-gate IBT_CHAN_SRV_TYPE_INVALID = 403, /* Invalid channel Service */ 1920Sstevel@tonic-gate /* Type */ 1930Sstevel@tonic-gate IBT_CHAN_IN_USE = 404, /* SMI/GSI channel in use */ 1940Sstevel@tonic-gate IBT_CHAN_ATOMICS_NOT_SUPPORTED = 405, /* Atomics not supported */ 1950Sstevel@tonic-gate IBT_ERR_OPAQUE2 = 406, 1960Sstevel@tonic-gate IBT_ERR_OPAQUE3 = 407, 1970Sstevel@tonic-gate IBT_CHAN_OP_TYPE_INVALID = 408, /* Invalid Operation Type */ 1980Sstevel@tonic-gate IBT_CHAN_SGL_FORMAT_INVALID = 409, /* Invalid SG List format */ 1990Sstevel@tonic-gate IBT_CHAN_SGL_LEN_INVALID = 410, /* Invalid SG List length */ 2000Sstevel@tonic-gate IBT_CHAN_APM_STATE_INVALID = 411, /* Invalid Path Migration */ 2010Sstevel@tonic-gate /* State */ 2020Sstevel@tonic-gate IBT_CHAN_SPECIAL_TYPE_INVALID = 412, /* Invalid Special channel */ 2030Sstevel@tonic-gate IBT_CHAN_SZ_INSUFFICIENT = 413, /* The Size of the WQ is too */ 2040Sstevel@tonic-gate /* small, there are more */ 2050Sstevel@tonic-gate /* outstanding entries than */ 2060Sstevel@tonic-gate /* than the requested size. */ 2070Sstevel@tonic-gate IBT_CHAN_FULL = 414, /* Too many WRs posted */ 2080Sstevel@tonic-gate IBT_CHAN_SRQ = 415, /* Handle used on a channel */ 2090Sstevel@tonic-gate /* that is associated with an */ 2100Sstevel@tonic-gate /* SRQ */ 2110Sstevel@tonic-gate IBT_CHAN_TYPE_2A_MW_BOUND = 416, /* Channel still has a type */ 2120Sstevel@tonic-gate /* 2A memory window bound */ 2138580SBill.Taylor@Sun.COM IBT_CHAN_WQE_SZ_INSUFF = 417, /* inline-data/LSO too large */ 2140Sstevel@tonic-gate 2150Sstevel@tonic-gate /* 2160Sstevel@tonic-gate * Completion Queue (CQ) errors 2170Sstevel@tonic-gate */ 2180Sstevel@tonic-gate IBT_CQ_HDL_INVALID = 500, /* Invalid CQ Handle */ 2190Sstevel@tonic-gate IBT_CQ_SZ_INSUFFICIENT = 501, /* The Size of the CQ is too */ 2200Sstevel@tonic-gate /* small, there are more */ 2210Sstevel@tonic-gate /* outstanding completions */ 2220Sstevel@tonic-gate /* than the requested size. */ 2230Sstevel@tonic-gate IBT_CQ_BUSY = 502, /* WQ(s) Still Reference CQ */ 2240Sstevel@tonic-gate IBT_CQ_EMPTY = 503, /* Completion Queue Empty */ 2250Sstevel@tonic-gate IBT_CQ_NOTIFY_TYPE_INVALID = 504, /* Invalid notification type */ 2260Sstevel@tonic-gate IBT_CQ_INVALID_PRIORITY = 505, /* Invalid CQ Priority */ 227*12965SWilliam.Taylor@Oracle.COM IBT_CQ_SCHED_INVALID = 550, /* Invalid CQ Sched Handle */ 228*12965SWilliam.Taylor@Oracle.COM IBT_CQ_NO_SCHED_GROUP = 551, /* Schedule group not found */ 229*12965SWilliam.Taylor@Oracle.COM IBT_CQ_HID_INVALID = 552, /* CQ Handler ID invalid */ 2300Sstevel@tonic-gate 2310Sstevel@tonic-gate /* 2320Sstevel@tonic-gate * Reserved for future use. 2330Sstevel@tonic-gate */ 2340Sstevel@tonic-gate IBT_ERR_OPAQUE4 = 600, 2350Sstevel@tonic-gate IBT_ERR_OPAQUE5 = 601, 2360Sstevel@tonic-gate IBT_ERR_OPAQUE6 = 602, 2370Sstevel@tonic-gate IBT_ERR_OPAQUE7 = 700, 2380Sstevel@tonic-gate IBT_ERR_OPAQUE8 = 701, 2390Sstevel@tonic-gate IBT_ERR_OPAQUE9 = 702, 2400Sstevel@tonic-gate IBT_ERR_OPAQUE10 = 703, 2410Sstevel@tonic-gate 2420Sstevel@tonic-gate /* 2430Sstevel@tonic-gate * Memory operation errors 2440Sstevel@tonic-gate */ 2450Sstevel@tonic-gate IBT_MR_VA_INVALID = 800, /* Invalid Virtual Address */ 2460Sstevel@tonic-gate IBT_MR_LEN_INVALID = 801, /* Invalid Memory Length */ 2470Sstevel@tonic-gate IBT_MR_PHYSBUF_INVALID = 802, /* Invalid Physical Buffer */ 2480Sstevel@tonic-gate /* List */ 2490Sstevel@tonic-gate IBT_MR_OFFSET_INVALID = 803, /* Invalid Memory Offset */ 2500Sstevel@tonic-gate IBT_MR_LKEY_INVALID = 804, /* Invalid Memory L_KEY */ 2510Sstevel@tonic-gate IBT_MR_RKEY_INVALID = 805, /* Invalid Memory R_KEY */ 2520Sstevel@tonic-gate IBT_MR_HDL_INVALID = 806, /* Invalid Memory Region */ 2530Sstevel@tonic-gate /* Handle */ 2540Sstevel@tonic-gate IBT_MR_ACCESS_REQ_INVALID = 807, /* Invalid Access Control */ 2550Sstevel@tonic-gate /* Specifier */ 2560Sstevel@tonic-gate IBT_MR_IN_USE = 808, /* Mem region in Use */ 2570Sstevel@tonic-gate IBT_MW_HDL_INVALID = 809, /* Invalid Memory Window */ 2580Sstevel@tonic-gate /* Handle */ 2590Sstevel@tonic-gate IBT_MW_TYPE_INVALID = 810, 260929Ssrust IBT_MA_HDL_INVALID = 811, /* Invalid Memory Area Hdl */ 2618580SBill.Taylor@Sun.COM IBT_SGL_TOO_SMALL = 812, 2628580SBill.Taylor@Sun.COM IBT_MI_HDL_INVALID = 813, 2630Sstevel@tonic-gate 2640Sstevel@tonic-gate /* 2650Sstevel@tonic-gate * Multicast errors 2660Sstevel@tonic-gate */ 2670Sstevel@tonic-gate IBT_MC_OPAQUE = 900, /* Invalid MLID */ 2680Sstevel@tonic-gate IBT_MC_MGID_INVALID = 901, /* Invalid MGID */ 2690Sstevel@tonic-gate IBT_MC_GROUP_INVALID = 902, /* Invalid MC Group */ 2700Sstevel@tonic-gate 2710Sstevel@tonic-gate /* 2720Sstevel@tonic-gate * Partition table errors. 2730Sstevel@tonic-gate */ 2740Sstevel@tonic-gate IBT_PKEY_IX_ILLEGAL = 1000, /* P_Key index Out of range */ 2750Sstevel@tonic-gate IBT_PKEY_IX_INVALID = 1001, /* P_Key index specifies */ 2760Sstevel@tonic-gate /* invalid entry in table */ 2770Sstevel@tonic-gate /* 2780Sstevel@tonic-gate * Protection Domain errors 2790Sstevel@tonic-gate */ 2800Sstevel@tonic-gate IBT_PD_HDL_INVALID = 1100, /* Invalid protection domain */ 2810Sstevel@tonic-gate IBT_PD_IN_USE = 1101, /* Protection Domain in Use */ 2828580SBill.Taylor@Sun.COM IBT_MEM_ALLOC_HDL_INVALID = 1102, /* Invalid MEM handle */ 2830Sstevel@tonic-gate 2840Sstevel@tonic-gate /* 2850Sstevel@tonic-gate * Shared Receive Queue errors 2860Sstevel@tonic-gate */ 2870Sstevel@tonic-gate IBT_SRQ_HDL_INVALID = 1200, /* Invalid SRQ Handle */ 2880Sstevel@tonic-gate IBT_SRQ_ERROR_STATE = 1201, /* SRQ in Error State */ 2890Sstevel@tonic-gate IBT_SRQ_LIMIT_EXCEEDED = 1202, /* SRQ Limit exceeds max SRQ */ 2900Sstevel@tonic-gate /* size */ 2910Sstevel@tonic-gate IBT_SRQ_SZ_INSUFFICIENT = 1203, /* The Size of the WQ is too */ 2920Sstevel@tonic-gate /* small, there are more */ 2930Sstevel@tonic-gate /* outstanding entries than */ 294929Ssrust IBT_SRQ_IN_USE = 1204, /* SRQ Still has QPs */ 2950Sstevel@tonic-gate /* associated with it */ 296929Ssrust /* 297929Ssrust * FMR Errors 298929Ssrust */ 299929Ssrust IBT_FMR_POOL_HDL_INVALID = 1300, /* Invalid FMR Pool handle */ 300929Ssrust IBT_FMR_POOL_IN_USE = 1301, /* FMR Pool in use. */ 301929Ssrust IBT_PBL_TOO_SMALL = 1302 3020Sstevel@tonic-gate } ibt_status_t; 3030Sstevel@tonic-gate 3040Sstevel@tonic-gate /* 3050Sstevel@tonic-gate * Work Request Completion Return Status. 3060Sstevel@tonic-gate * 3070Sstevel@tonic-gate * Refer InfiniBand Architecture Release Volume 1: 3080Sstevel@tonic-gate * Section 11.6.2 Completion Return Status. 3090Sstevel@tonic-gate * 3100Sstevel@tonic-gate * NOTE: this was converted from an enum to a uint8_t to save space. 3110Sstevel@tonic-gate */ 3120Sstevel@tonic-gate typedef uint8_t ibt_wc_status_t; 3130Sstevel@tonic-gate #define IBT_WC_SUCCESS 0 /* WR Completed Successfully */ 3140Sstevel@tonic-gate #define IBT_WC_LOCAL_LEN_ERR 10 /* Data in WR posted to local */ 3150Sstevel@tonic-gate /* queue too big */ 3160Sstevel@tonic-gate #define IBT_WC_LOCAL_CHAN_OP_ERR 11 /* Internal consistency error */ 3170Sstevel@tonic-gate #define IBT_WC_LOCAL_PROTECT_ERR 13 /* Memory Region violation */ 3180Sstevel@tonic-gate /* for posted WR */ 3190Sstevel@tonic-gate #define IBT_WC_WR_FLUSHED_ERR 14 /* WR was in process when the */ 3200Sstevel@tonic-gate /* chan went to error state */ 321*12965SWilliam.Taylor@Oracle.COM #define IBT_WC_MEM_MGT_OP_ERR 15 /* bind plus 1.2 mem ext */ 322*12965SWilliam.Taylor@Oracle.COM #define IBT_WC_MEM_WIN_BIND_ERR IBT_WC_MEM_MGT_OP_ERR 3230Sstevel@tonic-gate 3240Sstevel@tonic-gate /* 3250Sstevel@tonic-gate * Errors that are only reported for Reliable Queue Pairs. 3260Sstevel@tonic-gate */ 3270Sstevel@tonic-gate #define IBT_WC_BAD_RESPONSE_ERR 20 /* An unexpected transport */ 3280Sstevel@tonic-gate /* layer opcode was returned */ 3290Sstevel@tonic-gate /* by the responder */ 3300Sstevel@tonic-gate #define IBT_WC_LOCAL_ACCESS_ERR 21 /* A protection error */ 3310Sstevel@tonic-gate /* occurred on a local data */ 3320Sstevel@tonic-gate /* buffer during the */ 3330Sstevel@tonic-gate /* processing of a RDMA Write */ 3340Sstevel@tonic-gate /* with Immediate Data */ 3350Sstevel@tonic-gate /* operation sent from the */ 3360Sstevel@tonic-gate /* remote node */ 3370Sstevel@tonic-gate /* data buffer */ 3380Sstevel@tonic-gate #define IBT_WC_REMOTE_INVALID_REQ_ERR 22 /* Responder detected invalid */ 3390Sstevel@tonic-gate /* message on the channel */ 3400Sstevel@tonic-gate #define IBT_WC_REMOTE_ACCESS_ERR 23 /* Protection Error on remote */ 3410Sstevel@tonic-gate /* data buffer */ 3420Sstevel@tonic-gate #define IBT_WC_REMOTE_OP_ERR 24 /* Operation could not be */ 3430Sstevel@tonic-gate /* completed by the responder */ 3440Sstevel@tonic-gate #define IBT_WC_TRANS_TIMEOUT_ERR 25 /* Local transport retry */ 3450Sstevel@tonic-gate /* counter exceeded */ 3460Sstevel@tonic-gate #define IBT_WC_RNR_NAK_TIMEOUT_ERR 26 /* RNR NAK retry counter */ 3470Sstevel@tonic-gate /* exceeded */ 3480Sstevel@tonic-gate #ifdef __cplusplus 3490Sstevel@tonic-gate } 3500Sstevel@tonic-gate #endif 3510Sstevel@tonic-gate 3520Sstevel@tonic-gate #endif /* _SYS_IB_IBTL_IBTL_STATUS_H */ 353