Skip to content

Commit 70a1a35

Browse files
Dennis Dalessandrodledford
authored andcommitted
IB/rdmavt: Move SRQ data structure into rdmavt
Patch moves the srq data structure into rdmavt in preparation for removal from qib and hfi1 which will follow in subsequent patches. Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Harish Chegondi <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 119a8e7 commit 70a1a35

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/rdma/rdma_vt.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ struct rvt_qp {
349349
____cacheline_aligned_in_smp;
350350
};
351351

352+
struct rvt_srq {
353+
struct ib_srq ibsrq;
354+
struct rvt_rq rq;
355+
struct rvt_mmap_info *ip;
356+
/* send signal when number of RWQEs < limit */
357+
u32 limit;
358+
};
359+
352360
/* End QP section */
353361

354362
/*
@@ -485,6 +493,11 @@ static inline void rvt_get_mr(struct rvt_mregion *mr)
485493
atomic_inc(&mr->refcount);
486494
}
487495

496+
static inline struct rvt_srq *ibsrq_to_rvtsrq(struct ib_srq *ibsrq)
497+
{
498+
return container_of(ibsrq, struct rvt_srq, ibsrq);
499+
}
500+
488501
int rvt_register_device(struct rvt_dev_info *rvd);
489502
void rvt_unregister_device(struct rvt_dev_info *rvd);
490503
int rvt_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr);

0 commit comments

Comments
 (0)