Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */
0002 /*
0003  * Copyright (c) 2005 Intel Corporation.  All rights reserved.
0004  *
0005  * This software is available to you under a choice of one of two
0006  * licenses.  You may choose to be licensed under the terms of the GNU
0007  * General Public License (GPL) Version 2, available from the file
0008  * COPYING in the main directory of this source tree, or the
0009  * OpenIB.org BSD license below:
0010  *
0011  *     Redistribution and use in source and binary forms, with or
0012  *     without modification, are permitted provided that the following
0013  *     conditions are met:
0014  *
0015  *      - Redistributions of source code must retain the above
0016  *        copyright notice, this list of conditions and the following
0017  *        disclaimer.
0018  *
0019  *      - Redistributions in binary form must reproduce the above
0020  *        copyright notice, this list of conditions and the following
0021  *        disclaimer in the documentation and/or other materials
0022  *        provided with the distribution.
0023  *
0024  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0025  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0026  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0027  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
0028  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
0029  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0030  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0031  * SOFTWARE.
0032  */
0033 
0034 #ifndef IB_USER_SA_H
0035 #define IB_USER_SA_H
0036 
0037 #include <linux/types.h>
0038 
0039 enum {
0040     IB_PATH_GMP     = 1,
0041     IB_PATH_PRIMARY     = (1<<1),
0042     IB_PATH_ALTERNATE   = (1<<2),
0043     IB_PATH_OUTBOUND    = (1<<3),
0044     IB_PATH_INBOUND     = (1<<4),
0045     IB_PATH_INBOUND_REVERSE = (1<<5),
0046     IB_PATH_BIDIRECTIONAL   = IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE
0047 };
0048 
0049 struct ib_path_rec_data {
0050     __u32   flags;
0051     __u32   reserved;
0052     __u32   path_rec[16];
0053 };
0054 
0055 struct ib_user_path_rec {
0056     __u8    dgid[16];
0057     __u8    sgid[16];
0058     __be16  dlid;
0059     __be16  slid;
0060     __u32   raw_traffic;
0061     __be32  flow_label;
0062     __u32   reversible;
0063     __u32   mtu;
0064     __be16  pkey;
0065     __u8    hop_limit;
0066     __u8    traffic_class;
0067     __u8    numb_path;
0068     __u8    sl;
0069     __u8    mtu_selector;
0070     __u8    rate_selector;
0071     __u8    rate;
0072     __u8    packet_life_time_selector;
0073     __u8    packet_life_time;
0074     __u8    preference;
0075 };
0076 
0077 #endif /* IB_USER_SA_H */