14 #ifndef VERBS_QueuePair
15 #define VERBS_QueuePair
17 #define VERBS_MAX_INLINE 256
18 #define VERBS_DEFAULT_QKEY 0x01234567
19 #define VERBS_MCAST_QPN 0xffffff
20 #define VERBS_UD_MEMADDON 40
40 ComplQueue* send_cq,
int send_depth,
int max_send_sge,
41 ComplQueue* recv_cq,
int recv_depth,
int max_recv_sge);
44 struct ibv_qp *
qp()
const {
return f_qp; }
61 bool Connect(uint16_t lid, uint32_t qpn, uint32_t psn, uint8_t src_path_bits = 0);
Wrapper for IB VERBS completion queue
Reference to verbs::Context
Represent VERBS queue pair functionality.
QueuePair(ContextRef ctx, ibv_qp_type qp_type, ComplQueue *send_cq, int send_depth, int max_send_sge, ComplQueue *recv_cq, int recv_depth, int max_recv_sge)
static uint32_t fQPCounter
bool InitUD()
Initialize QP for unreliable datagram protocol.
unsigned NumSendSegs() const
bool Post_Send(struct ibv_send_wr *swr)
bool Post_Recv(struct ibv_recv_wr *rwr)
struct ibv_qp * qp() const
ibv_qp_type qp_type() const
bool DetachMcast(ibv_gid *mgid, uint16_t mlid)
bool AttachMcast(ibv_gid *mgid, uint16_t mlid)
uint32_t remote_qpn() const
uint32_t local_psn() const
uint16_t remote_lid() const
uint32_t f_local_psn
number used in connection
uint32_t remote_psn() const
bool Connect(uint16_t lid, uint32_t qpn, uint32_t psn, uint8_t src_path_bits=0)
Connect QP to specified remote queue pair.
Support of InfiniBand verbs.