/*1* Copyright (c) 2005 Intel Corporation. All rights reserved.2*3* This software is available to you under a choice of one of two4* licenses. You may choose to be licensed under the terms of the GNU5* General Public License (GPL) Version 2, available from the file6* COPYING in the main directory of this source tree, or the7* OpenIB.org BSD license below:8*9* Redistribution and use in source and binary forms, with or10* without modification, are permitted provided that the following11* conditions are met:12*13* - Redistributions of source code must retain the above14* copyright notice, this list of conditions and the following15* disclaimer.16*17* - Redistributions in binary form must reproduce the above18* copyright notice, this list of conditions and the following19* disclaimer in the documentation and/or other materials20* provided with the distribution.21*22* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS26* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN27* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN28* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE29* SOFTWARE.30*/3132#ifndef IB_USER_SA_H33#define IB_USER_SA_H3435#include <linux/types.h>3637enum {38IB_PATH_GMP = 1,39IB_PATH_PRIMARY = (1<<1),40IB_PATH_ALTERNATE = (1<<2),41IB_PATH_OUTBOUND = (1<<3),42IB_PATH_INBOUND = (1<<4),43IB_PATH_INBOUND_REVERSE = (1<<5),44IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE45};4647struct ib_path_rec_data {48__u32 flags;49__u32 reserved;50__u32 path_rec[16];51};5253struct ib_user_path_rec {54__u8 dgid[16];55__u8 sgid[16];56__be16 dlid;57__be16 slid;58__u32 raw_traffic;59__be32 flow_label;60__u32 reversible;61__u32 mtu;62__be16 pkey;63__u8 hop_limit;64__u8 traffic_class;65__u8 numb_path;66__u8 sl;67__u8 mtu_selector;68__u8 rate_selector;69__u8 rate;70__u8 packet_life_time_selector;71__u8 packet_life_time;72__u8 preference;73};7475#endif /* IB_USER_SA_H */767778