1c39526b7SPramod Gunjikar /* 2c39526b7SPramod Gunjikar * This file contains definitions used in OFED defined user/kernel 3c39526b7SPramod Gunjikar * interfaces. These are imported from the OFED header ib_user_sa.h. Oracle 4c39526b7SPramod Gunjikar * elects to have and use the contents of ib_user_sa.h under and governed 5c39526b7SPramod Gunjikar * by the OpenIB.org BSD license (see below for full license text). However, 6c39526b7SPramod Gunjikar * the following notice accompanied the original version of this file: 7c39526b7SPramod Gunjikar */ 8c39526b7SPramod Gunjikar 9c39526b7SPramod Gunjikar /* 10c39526b7SPramod Gunjikar * Copyright (c) 2005 Intel Corporation. All rights reserved. 11c39526b7SPramod Gunjikar * 12c39526b7SPramod Gunjikar * This software is available to you under a choice of one of two 13c39526b7SPramod Gunjikar * licenses. You may choose to be licensed under the terms of the GNU 14c39526b7SPramod Gunjikar * General Public License (GPL) Version 2, available from the file 15c39526b7SPramod Gunjikar * COPYING in the main directory of this source tree, or the 16c39526b7SPramod Gunjikar * OpenIB.org BSD license below: 17c39526b7SPramod Gunjikar * 18c39526b7SPramod Gunjikar * Redistribution and use in source and binary forms, with or 19c39526b7SPramod Gunjikar * without modification, are permitted provided that the following 20c39526b7SPramod Gunjikar * conditions are met: 21c39526b7SPramod Gunjikar * 22c39526b7SPramod Gunjikar * - Redistributions of source code must retain the above 23c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 24c39526b7SPramod Gunjikar * disclaimer. 25c39526b7SPramod Gunjikar * 26c39526b7SPramod Gunjikar * - Redistributions in binary form must reproduce the above 27c39526b7SPramod Gunjikar * copyright notice, this list of conditions and the following 28c39526b7SPramod Gunjikar * disclaimer in the documentation and/or other materials 29c39526b7SPramod Gunjikar * provided with the distribution. 30c39526b7SPramod Gunjikar * 31c39526b7SPramod Gunjikar * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 32c39526b7SPramod Gunjikar * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 33c39526b7SPramod Gunjikar * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 34c39526b7SPramod Gunjikar * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 35c39526b7SPramod Gunjikar * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 36c39526b7SPramod Gunjikar * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 37c39526b7SPramod Gunjikar * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 38c39526b7SPramod Gunjikar * SOFTWARE. 39c39526b7SPramod Gunjikar */ 40c39526b7SPramod Gunjikar 41c39526b7SPramod Gunjikar #ifndef _SYS_IB_CLIENTS_OF_RDMA_IB_USER_SA_H 42c39526b7SPramod Gunjikar #define _SYS_IB_CLIENTS_OF_RDMA_IB_USER_SA_H 43c39526b7SPramod Gunjikar 44*913d9b1bSLida.Horn #ifdef __cplusplus 45*913d9b1bSLida.Horn extern "C" { 46*913d9b1bSLida.Horn #endif 47*913d9b1bSLida.Horn 48c39526b7SPramod Gunjikar struct ib_user_path_rec { 49c39526b7SPramod Gunjikar uint8_t dgid[16]; 50c39526b7SPramod Gunjikar uint8_t sgid[16]; 51c39526b7SPramod Gunjikar uint16_t dlid; 52c39526b7SPramod Gunjikar uint16_t slid; 53c39526b7SPramod Gunjikar uint32_t raw_traffic; 54c39526b7SPramod Gunjikar uint32_t flow_label; 55c39526b7SPramod Gunjikar uint32_t reversible; 56c39526b7SPramod Gunjikar uint32_t mtu; 57c39526b7SPramod Gunjikar uint16_t pkey; 58c39526b7SPramod Gunjikar uint8_t hop_limit; 59c39526b7SPramod Gunjikar uint8_t traffic_class; 60c39526b7SPramod Gunjikar uint8_t numb_path; 61c39526b7SPramod Gunjikar uint8_t sl; 62c39526b7SPramod Gunjikar uint8_t mtu_selector; 63c39526b7SPramod Gunjikar uint8_t rate_selector; 64c39526b7SPramod Gunjikar uint8_t rate; 65c39526b7SPramod Gunjikar uint8_t packet_life_time_selector; 66c39526b7SPramod Gunjikar uint8_t packet_life_time; 67c39526b7SPramod Gunjikar uint8_t preference; 68c39526b7SPramod Gunjikar }; 69c39526b7SPramod Gunjikar 70*913d9b1bSLida.Horn #ifdef __cplusplus 71*913d9b1bSLida.Horn } 72*913d9b1bSLida.Horn #endif 73*913d9b1bSLida.Horn 74c39526b7SPramod Gunjikar #endif /* _SYS_IB_CLIENTS_OF_RDMA_IB_USER_SA_H */ 75