xref: /openbmc/linux/include/rdma/rdma_cm_ib.h (revision c8f6a362bf3eb28ade6027b49bb160a336dd51c0)
1e51060f0SSean Hefty /*
2e51060f0SSean Hefty  * Copyright (c) 2006 Intel Corporation.  All rights reserved.
3e51060f0SSean Hefty  *
4e51060f0SSean Hefty  * This Software is licensed under one of the following licenses:
5e51060f0SSean Hefty  *
6e51060f0SSean Hefty  * 1) under the terms of the "Common Public License 1.0" a copy of which is
7e51060f0SSean Hefty  *    available from the Open Source Initiative, see
8e51060f0SSean Hefty  *    http://www.opensource.org/licenses/cpl.php.
9e51060f0SSean Hefty  *
10e51060f0SSean Hefty  * 2) under the terms of the "The BSD License" a copy of which is
11e51060f0SSean Hefty  *    available from the Open Source Initiative, see
12e51060f0SSean Hefty  *    http://www.opensource.org/licenses/bsd-license.php.
13e51060f0SSean Hefty  *
14e51060f0SSean Hefty  * 3) under the terms of the "GNU General Public License (GPL) Version 2" a
15e51060f0SSean Hefty  *    copy of which is available from the Open Source Initiative, see
16e51060f0SSean Hefty  *    http://www.opensource.org/licenses/gpl-license.php.
17e51060f0SSean Hefty  *
18e51060f0SSean Hefty  * Licensee has the right to choose one of the above licenses.
19e51060f0SSean Hefty  *
20e51060f0SSean Hefty  * Redistributions of source code must retain the above copyright
21e51060f0SSean Hefty  * notice and one of the license notices.
22e51060f0SSean Hefty  *
23e51060f0SSean Hefty  * Redistributions in binary form must reproduce both the above copyright
24e51060f0SSean Hefty  * notice, one of the license notices in the documentation
25e51060f0SSean Hefty  * and/or other materials provided with the distribution.
26e51060f0SSean Hefty  *
27e51060f0SSean Hefty  */
28e51060f0SSean Hefty 
29e51060f0SSean Hefty #if !defined(RDMA_CM_IB_H)
30e51060f0SSean Hefty #define RDMA_CM_IB_H
31e51060f0SSean Hefty 
32e51060f0SSean Hefty #include <rdma/rdma_cm.h>
33e51060f0SSean Hefty 
34e51060f0SSean Hefty /**
35e51060f0SSean Hefty  * rdma_set_ib_paths - Manually sets the path records used to establish a
36e51060f0SSean Hefty  *   connection.
37e51060f0SSean Hefty  * @id: Connection identifier associated with the request.
38e51060f0SSean Hefty  * @path_rec: Reference to the path record
39e51060f0SSean Hefty  *
40e51060f0SSean Hefty  * This call permits a user to specify routing information for rdma_cm_id's
41e51060f0SSean Hefty  * bound to Infiniband devices.  It is called on the client side of a
42e51060f0SSean Hefty  * connection and replaces the call to rdma_resolve_route.
43e51060f0SSean Hefty  */
44e51060f0SSean Hefty int rdma_set_ib_paths(struct rdma_cm_id *id,
45e51060f0SSean Hefty 		      struct ib_sa_path_rec *path_rec, int num_paths);
46e51060f0SSean Hefty 
47*c8f6a362SSean Hefty /* Global qkey for UDP QPs and multicast groups. */
48*c8f6a362SSean Hefty #define RDMA_UDP_QKEY 0x01234567
49628e5f6dSSean Hefty 
50e51060f0SSean Hefty #endif /* RDMA_CM_IB_H */
51