1*fe267a55SPedro F. Giffuni /*- 2*fe267a55SPedro F. Giffuni * SPDX-License-Identifier: BSD-2-Clause or GPL-2.0 3*fe267a55SPedro F. Giffuni * 4aa0a1e58SJeff Roberson * Copyright (c) 2006 Intel Corporation. All rights reserved. 5aa0a1e58SJeff Roberson * 6aa0a1e58SJeff Roberson * This software is available to you under a choice of one of two 7aa0a1e58SJeff Roberson * licenses. You may choose to be licensed under the terms of the GNU 8aa0a1e58SJeff Roberson * General Public License (GPL) Version 2, available from the file 9aa0a1e58SJeff Roberson * COPYING in the main directory of this source tree, or the 10aa0a1e58SJeff Roberson * OpenIB.org BSD license below: 11aa0a1e58SJeff Roberson * 12aa0a1e58SJeff Roberson * Redistribution and use in source and binary forms, with or 13aa0a1e58SJeff Roberson * without modification, are permitted provided that the following 14aa0a1e58SJeff Roberson * conditions are met: 15aa0a1e58SJeff Roberson * 16aa0a1e58SJeff Roberson * - Redistributions of source code must retain the above 17aa0a1e58SJeff Roberson * copyright notice, this list of conditions and the following 18aa0a1e58SJeff Roberson * disclaimer. 19aa0a1e58SJeff Roberson * 20aa0a1e58SJeff Roberson * - Redistributions in binary form must reproduce the above 21aa0a1e58SJeff Roberson * copyright notice, this list of conditions and the following 22aa0a1e58SJeff Roberson * disclaimer in the documentation and/or other materials 23aa0a1e58SJeff Roberson * provided with the distribution. 24aa0a1e58SJeff Roberson * 25aa0a1e58SJeff Roberson * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 26aa0a1e58SJeff Roberson * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 27aa0a1e58SJeff Roberson * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 28aa0a1e58SJeff Roberson * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 29aa0a1e58SJeff Roberson * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 30aa0a1e58SJeff Roberson * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 31aa0a1e58SJeff Roberson * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 32aa0a1e58SJeff Roberson * SOFTWARE. 33aa0a1e58SJeff Roberson */ 34aa0a1e58SJeff Roberson 35aa0a1e58SJeff Roberson #if !defined(RDMA_CM_IB_H) 36aa0a1e58SJeff Roberson #define RDMA_CM_IB_H 37aa0a1e58SJeff Roberson 38aa0a1e58SJeff Roberson #include <rdma/rdma_cm.h> 39aa0a1e58SJeff Roberson 40aa0a1e58SJeff Roberson /** 41aa0a1e58SJeff Roberson * rdma_set_ib_paths - Manually sets the path records used to establish a 42aa0a1e58SJeff Roberson * connection. 43aa0a1e58SJeff Roberson * @id: Connection identifier associated with the request. 44aa0a1e58SJeff Roberson * @path_rec: Reference to the path record 45aa0a1e58SJeff Roberson * 46aa0a1e58SJeff Roberson * This call permits a user to specify routing information for rdma_cm_id's 47aa0a1e58SJeff Roberson * bound to Infiniband devices. It is called on the client side of a 48aa0a1e58SJeff Roberson * connection and replaces the call to rdma_resolve_route. 49aa0a1e58SJeff Roberson */ 50aa0a1e58SJeff Roberson int rdma_set_ib_paths(struct rdma_cm_id *id, 51aa0a1e58SJeff Roberson struct ib_sa_path_rec *path_rec, int num_paths); 52aa0a1e58SJeff Roberson 53aa0a1e58SJeff Roberson /* Global qkey for UDP QPs and multicast groups. */ 54aa0a1e58SJeff Roberson #define RDMA_UDP_QKEY 0x01234567 55aa0a1e58SJeff Roberson 56aa0a1e58SJeff Roberson #endif /* RDMA_CM_IB_H */ 57