/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */1/*2* Copyright (c) 2005 Intel Corporation. All rights reserved.3*4* This software is available to you under a choice of one of two5* licenses. You may choose to be licensed under the terms of the GNU6* General Public License (GPL) Version 2, available from the file7* COPYING in the main directory of this source tree, or the8* OpenIB.org BSD license below:9*10* Redistribution and use in source and binary forms, with or11* without modification, are permitted provided that the following12* conditions are met:13*14* - Redistributions of source code must retain the above15* copyright notice, this list of conditions and the following16* disclaimer.17*18* - Redistributions in binary form must reproduce the above19* copyright notice, this list of conditions and the following20* disclaimer in the documentation and/or other materials21* provided with the distribution.22*23* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,24* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF25* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND26* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS27* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN28* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN29* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE30* SOFTWARE.31*/3233#ifndef IB_USER_SA_H34#define IB_USER_SA_H3536#include <linux/types.h>3738enum {39IB_PATH_GMP = 1,40IB_PATH_PRIMARY = (1<<1),41IB_PATH_ALTERNATE = (1<<2),42IB_PATH_OUTBOUND = (1<<3),43IB_PATH_INBOUND = (1<<4),44IB_PATH_INBOUND_REVERSE = (1<<5),45IB_PATH_BIDIRECTIONAL = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE46};4748struct ib_path_rec_data {49__u32 flags;50__u32 reserved;51__u32 path_rec[16];52};5354struct ib_user_path_rec {55__u8 dgid[16];56__u8 sgid[16];57__be16 dlid;58__be16 slid;59__u32 raw_traffic;60__be32 flow_label;61__u32 reversible;62__u32 mtu;63__be16 pkey;64__u8 hop_limit;65__u8 traffic_class;66__u8 numb_path;67__u8 sl;68__u8 mtu_selector;69__u8 rate_selector;70__u8 rate;71__u8 packet_life_time_selector;72__u8 packet_life_time;73__u8 preference;74};7576#endif /* IB_USER_SA_H */777879