1219820Sjeff/* 2219820Sjeff * Copyright (c) 2005 Intel Corporation. All rights reserved. 3219820Sjeff * 4219820Sjeff * This software is available to you under a choice of one of two 5219820Sjeff * licenses. You may choose to be licensed under the terms of the GNU 6219820Sjeff * General Public License (GPL) Version 2, available from the file 7219820Sjeff * COPYING in the main directory of this source tree, or the 8219820Sjeff * OpenIB.org BSD license below: 9219820Sjeff * 10219820Sjeff * Redistribution and use in source and binary forms, with or 11219820Sjeff * without modification, are permitted provided that the following 12219820Sjeff * conditions are met: 13219820Sjeff * 14219820Sjeff * - Redistributions of source code must retain the above 15219820Sjeff * copyright notice, this list of conditions and the following 16219820Sjeff * disclaimer. 17219820Sjeff * 18219820Sjeff * - Redistributions in binary form must reproduce the above 19219820Sjeff * copyright notice, this list of conditions and the following 20219820Sjeff * disclaimer in the documentation and/or other materials 21219820Sjeff * provided with the distribution. 22219820Sjeff * 23219820Sjeff * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24219820Sjeff * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25219820Sjeff * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26219820Sjeff * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 27219820Sjeff * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 28219820Sjeff * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 29219820Sjeff * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30219820Sjeff * SOFTWARE. 31219820Sjeff */ 32219820Sjeff 33219820Sjeff#ifndef IB_USER_SA_H 34219820Sjeff#define IB_USER_SA_H 35219820Sjeff 36219820Sjeff#include <linux/types.h> 37219820Sjeff 38219820Sjeffenum { 39219820Sjeff IB_PATH_GMP = 1, 40219820Sjeff IB_PATH_PRIMARY = (1<<1), 41219820Sjeff IB_PATH_ALTERNATE = (1<<2), 42219820Sjeff IB_PATH_OUTBOUND = (1<<3), 43219820Sjeff IB_PATH_INBOUND = (1<<4), 44219820Sjeff IB_PATH_INBOUND_REVERSE = (1<<5), 45219820Sjeff IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE 46219820Sjeff}; 47219820Sjeff 48219820Sjeffstruct ib_path_rec_data { 49219820Sjeff __u32 flags; 50219820Sjeff __u32 reserved; 51219820Sjeff __u32 path_rec[16]; 52219820Sjeff}; 53219820Sjeff 54219820Sjeffstruct ib_user_path_rec { 55219820Sjeff __u8 dgid[16]; 56219820Sjeff __u8 sgid[16]; 57219820Sjeff __be16 dlid; 58219820Sjeff __be16 slid; 59219820Sjeff __u32 raw_traffic; 60219820Sjeff __be32 flow_label; 61219820Sjeff __u32 reversible; 62219820Sjeff __u32 mtu; 63219820Sjeff __be16 pkey; 64219820Sjeff __u8 hop_limit; 65219820Sjeff __u8 traffic_class; 66219820Sjeff __u8 numb_path; 67219820Sjeff __u8 sl; 68219820Sjeff __u8 mtu_selector; 69219820Sjeff __u8 rate_selector; 70219820Sjeff __u8 rate; 71219820Sjeff __u8 packet_life_time_selector; 72219820Sjeff __u8 packet_life_time; 73219820Sjeff __u8 preference; 74219820Sjeff}; 75219820Sjeff 76219820Sjeff#endif /* IB_USER_SA_H */ 77