rdma_transport.h 549 B

12345678910111213141516171819202122232425
  1. #ifndef _RDMA_TRANSPORT_H
  2. #define _RDMA_TRANSPORT_H
  3. #include <rdma/ib_verbs.h>
  4. #include <rdma/rdma_cm.h>
  5. #include "rds.h"
  6. #define RDS_RDMA_RESOLVE_TIMEOUT_MS 5000
  7. int rds_rdma_conn_connect(struct rds_connection *conn);
  8. int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
  9. struct rdma_cm_event *event);
  10. /* from ib.c */
  11. extern struct rds_transport rds_ib_transport;
  12. int rds_ib_init(void);
  13. void rds_ib_exit(void);
  14. /* from iw.c */
  15. extern struct rds_transport rds_iw_transport;
  16. int rds_iw_init(void);
  17. void rds_iw_exit(void);
  18. #endif