blob: 200d3134aaae18f5e3c06f66aaf64f5918699236 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Andy Grover55b7ed02009-02-24 15:30:37 +00002#ifndef _RDMA_TRANSPORT_H
3#define _RDMA_TRANSPORT_H
4
5#include <rdma/ib_verbs.h>
6#include <rdma/rdma_cm.h>
7#include "rds.h"
8
Ka-Cheong Poon1e2b44e2018-07-23 20:51:22 -07009/* RDMA_CM also uses 16385 as the listener port. */
10#define RDS_CM_PORT 16385
11
Andy Grover55b7ed02009-02-24 15:30:37 +000012#define RDS_RDMA_RESOLVE_TIMEOUT_MS 5000
13
14int rds_rdma_conn_connect(struct rds_connection *conn);
15int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
16 struct rdma_cm_event *event);
Ka-Cheong Poon1e2b44e2018-07-23 20:51:22 -070017int rds6_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
18 struct rdma_cm_event *event);
Andy Grover55b7ed02009-02-24 15:30:37 +000019
Andy Grover55b7ed02009-02-24 15:30:37 +000020/* from ib.c */
21extern struct rds_transport rds_ib_transport;
22int rds_ib_init(void);
23void rds_ib_exit(void);
24
Andy Grover55b7ed02009-02-24 15:30:37 +000025#endif