Blame rdma/include/uapi/rdma/ib_user_sa.h

Packit Service 3880ab
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */
Packit Service 3880ab
/*
Packit Service 3880ab
 * Copyright (c) 2005 Intel Corporation.  All rights reserved.
Packit Service 3880ab
 *
Packit Service 3880ab
 * This software is available to you under a choice of one of two
Packit Service 3880ab
 * licenses.  You may choose to be licensed under the terms of the GNU
Packit Service 3880ab
 * General Public License (GPL) Version 2, available from the file
Packit Service 3880ab
 * COPYING in the main directory of this source tree, or the
Packit Service 3880ab
 * OpenIB.org BSD license below:
Packit Service 3880ab
 *
Packit Service 3880ab
 *     Redistribution and use in source and binary forms, with or
Packit Service 3880ab
 *     without modification, are permitted provided that the following
Packit Service 3880ab
 *     conditions are met:
Packit Service 3880ab
 *
Packit Service 3880ab
 *      - Redistributions of source code must retain the above
Packit Service 3880ab
 *        copyright notice, this list of conditions and the following
Packit Service 3880ab
 *        disclaimer.
Packit Service 3880ab
 *
Packit Service 3880ab
 *      - Redistributions in binary form must reproduce the above
Packit Service 3880ab
 *        copyright notice, this list of conditions and the following
Packit Service 3880ab
 *        disclaimer in the documentation and/or other materials
Packit Service 3880ab
 *        provided with the distribution.
Packit Service 3880ab
 *
Packit Service 3880ab
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Packit Service 3880ab
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit Service 3880ab
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Packit Service 3880ab
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
Packit Service 3880ab
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
Packit Service 3880ab
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
Packit Service 3880ab
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit Service 3880ab
 * SOFTWARE.
Packit Service 3880ab
 */
Packit Service 3880ab
Packit Service 3880ab
#ifndef IB_USER_SA_H
Packit Service 3880ab
#define IB_USER_SA_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/types.h>
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IB_PATH_GMP		= 1,
Packit Service 3880ab
	IB_PATH_PRIMARY		= (1<<1),
Packit Service 3880ab
	IB_PATH_ALTERNATE	= (1<<2),
Packit Service 3880ab
	IB_PATH_OUTBOUND	= (1<<3),
Packit Service 3880ab
	IB_PATH_INBOUND		= (1<<4),
Packit Service 3880ab
	IB_PATH_INBOUND_REVERSE = (1<<5),
Packit Service 3880ab
	IB_PATH_BIDIRECTIONAL	= IB_PATH_OUTBOUND | IB_PATH_INBOUND_REVERSE
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct ib_path_rec_data {
Packit Service 3880ab
	__u32	flags;
Packit Service 3880ab
	__u32	reserved;
Packit Service 3880ab
	__u32	path_rec[16];
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct ib_user_path_rec {
Packit Service 3880ab
	__u8	dgid[16];
Packit Service 3880ab
	__u8	sgid[16];
Packit Service 3880ab
	__be16	dlid;
Packit Service 3880ab
	__be16	slid;
Packit Service 3880ab
	__u32	raw_traffic;
Packit Service 3880ab
	__be32	flow_label;
Packit Service 3880ab
	__u32	reversible;
Packit Service 3880ab
	__u32	mtu;
Packit Service 3880ab
	__be16	pkey;
Packit Service 3880ab
	__u8	hop_limit;
Packit Service 3880ab
	__u8	traffic_class;
Packit Service 3880ab
	__u8	numb_path;
Packit Service 3880ab
	__u8	sl;
Packit Service 3880ab
	__u8	mtu_selector;
Packit Service 3880ab
	__u8	rate_selector;
Packit Service 3880ab
	__u8	rate;
Packit Service 3880ab
	__u8	packet_life_time_selector;
Packit Service 3880ab
	__u8	packet_life_time;
Packit Service 3880ab
	__u8	preference;
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#endif /* IB_USER_SA_H */