Changeset View
Changeset View
Standalone View
Standalone View
contrib/ofed/libirdma/irdma_uverbs.c
Context not available. | |||||
info.sq_size = info.sq_depth >> info.sq_shift; | info.sq_size = info.sq_depth >> info.sq_shift; | ||||
info.rq_size = info.rq_depth >> info.rq_shift; | info.rq_size = info.rq_depth >> info.rq_shift; | ||||
/** | /** | ||||
* For older ABI version (less than 6) passes raw sq and rq | * Maintain backward compatibility with older ABI which pass sq | ||||
* quanta in cap.max_send_wr and cap.max_recv_wr. | * and rq depth (in quanta) in cap.max_send_wr a cap.max_recv_wr | ||||
* But then kernel had no way of calculating the actual qp size. | |||||
*/ | */ | ||||
if (iwvctx->abi_ver <= 5) { | if (!iwvctx->use_raw_attrs) { | ||||
attr->cap.max_send_wr = info.sq_size; | attr->cap.max_send_wr = info.sq_size; | ||||
attr->cap.max_recv_wr = info.rq_size; | attr->cap.max_recv_wr = info.rq_size; | ||||
} | } | ||||
Context not available. |