/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ /* * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef RDMA_USER_CM_H #define RDMA_USER_CM_H #include <linux/types.h> #include <linux/socket.h> #include <linux/in6.h> #include <rdma/ib_user_verbs.h> #include <rdma/ib_user_sa.h> #define RDMA_USER_CM_ABI_VERSION … #define RDMA_MAX_PRIVATE_DATA … enum { … }; /* See IBTA Annex A11, servies ID bytes 4 & 5 */ enum rdma_ucm_port_space { … }; /* * command ABI structures. */ struct rdma_ucm_cmd_hdr { … }; struct rdma_ucm_create_id { … }; struct rdma_ucm_create_id_resp { … }; struct rdma_ucm_destroy_id { … }; struct rdma_ucm_destroy_id_resp { … }; struct rdma_ucm_bind_ip { … }; struct rdma_ucm_bind { … }; struct rdma_ucm_resolve_ip { … }; struct rdma_ucm_resolve_addr { … }; struct rdma_ucm_resolve_route { … }; enum { … }; struct rdma_ucm_query { … }; struct rdma_ucm_query_route_resp { … }; struct rdma_ucm_query_addr_resp { … }; struct rdma_ucm_query_path_resp { … }; struct rdma_ucm_conn_param { … }; struct rdma_ucm_ud_param { … }; struct rdma_ucm_ece { … }; struct rdma_ucm_connect { … }; struct rdma_ucm_listen { … }; struct rdma_ucm_accept { … }; struct rdma_ucm_reject { … }; struct rdma_ucm_disconnect { … }; struct rdma_ucm_init_qp_attr { … }; struct rdma_ucm_notify { … }; struct rdma_ucm_join_ip_mcast { … }; /* Multicast join flags */ enum { … }; struct rdma_ucm_join_mcast { … }; struct rdma_ucm_get_event { … }; struct rdma_ucm_event_resp { … }; /* Option levels */ enum { … }; /* Option details */ enum { … }; enum { … }; struct rdma_ucm_set_option { … }; struct rdma_ucm_migrate_id { … }; struct rdma_ucm_migrate_resp { … }; #endif /* RDMA_USER_CM_H */