Signed-off-by: Bang Nguyen <bang.nguyen@oracle.com>
else
ic->i_rcq = ib_create_cq(dev, rds_ib_cq_comp_handler_recv,
rds_ib_cq_event_handler, conn,
- rds_ib_srq_max_wr - 1,
+ ic->i_recv_ring.w_nr,
IB_CQ_VECTOR_LEAST_ATTACHED);
if (IS_ERR(ic->i_rcq)) {
ret = PTR_ERR(ic->i_rcq);
INIT_DELAYED_WORK(&pool->flush_worker, rds_ib_mr_pool_flush_worker);
if (pool_type == RDS_IB_MR_1M_POOL) {
- pool->fmr_attr.max_pages = RDS_FMR_1M_MSG_SIZE;
+ pool->fmr_attr.max_pages = RDS_FMR_1M_MSG_SIZE + 1;
pool->max_items = rds_ib_fmr_1m_pool_size;
} else /* pool_type == RDS_IB_MR_8K_POOL */ {
- pool->fmr_attr.max_pages = RDS_FMR_8K_MSG_SIZE;
+ pool->fmr_attr.max_pages = RDS_FMR_8K_MSG_SIZE + 1;
pool->max_items = rds_ib_fmr_8k_pool_size;
}
pool->max_free_pinned =