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