RDMA++
Loading...
Searching...
No Matches
srq.h
1#pragma once
2
3#include <memory>
4
5#include <infiniband/verbs.h>
6
7#include "rdmapp/pd.h"
8
9namespace rdmapp {
10
15class srq {
16 struct ibv_srq *srq_;
17 std::shared_ptr<pd> pd_;
18 friend class qp;
19
20public:
27 srq(std::shared_ptr<pd> pd, size_t max_wr = 1024);
28
33 ~srq();
34};
35
36} // namespace rdmapp
This class is an abstraction of a Protection Domain.
Definition pd.h:20
This class is an abstraction of an Infiniband Queue Pair.
Definition qp.h:50
This class represents a Shared Receive Queue.
Definition srq.h:15
~srq()
Destroy the srq object and the associated shared receive queue.
Definition srq.cc:27