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