xref: /linux/include/rdma/rdma_cm_ib.h (revision 6bf9d8f6)
1*6bf9d8f6SLeon Romanovsky /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2e51060f0SSean Hefty /*
3e51060f0SSean Hefty  * Copyright (c) 2006 Intel Corporation.  All rights reserved.
4e51060f0SSean Hefty  */
5e51060f0SSean Hefty 
6*6bf9d8f6SLeon Romanovsky #ifndef RDMA_CM_IB_H
7e51060f0SSean Hefty #define RDMA_CM_IB_H
8e51060f0SSean Hefty 
9e51060f0SSean Hefty #include <rdma/rdma_cm.h>
10e51060f0SSean Hefty 
11e51060f0SSean Hefty /**
12fe75889fSParav Pandit  * rdma_set_ib_path - Manually sets the path record used to establish a
13e51060f0SSean Hefty  *   connection.
14e51060f0SSean Hefty  * @id: Connection identifier associated with the request.
15e51060f0SSean Hefty  * @path_rec: Reference to the path record
16e51060f0SSean Hefty  *
17e51060f0SSean Hefty  * This call permits a user to specify routing information for rdma_cm_id's
18fe75889fSParav Pandit  * bound to InfiniBand devices. It is called on the client side of a
19e51060f0SSean Hefty  * connection and replaces the call to rdma_resolve_route.
20e51060f0SSean Hefty  */
21fe75889fSParav Pandit int rdma_set_ib_path(struct rdma_cm_id *id,
22fe75889fSParav Pandit 		     struct sa_path_rec *path_rec);
23e51060f0SSean Hefty 
24c8f6a362SSean Hefty /* Global qkey for UDP QPs and multicast groups. */
25c8f6a362SSean Hefty #define RDMA_UDP_QKEY 0x01234567
26628e5f6dSSean Hefty 
27e51060f0SSean Hefty #endif /* RDMA_CM_IB_H */
28