|
@@ -1003,6 +1003,9 @@ static int ntb_transport_init_queue(struct ntb_transport_ctx *nt,
|
|
mw_base = nt->mw_vec[mw_num].phys_addr;
|
|
mw_base = nt->mw_vec[mw_num].phys_addr;
|
|
mw_size = nt->mw_vec[mw_num].phys_size;
|
|
mw_size = nt->mw_vec[mw_num].phys_size;
|
|
|
|
|
|
|
|
+ if (max_mw_size && mw_size > max_mw_size)
|
|
|
|
+ mw_size = max_mw_size;
|
|
|
|
+
|
|
tx_size = (unsigned int)mw_size / num_qps_mw;
|
|
tx_size = (unsigned int)mw_size / num_qps_mw;
|
|
qp_offset = tx_size * (qp_num / mw_count);
|
|
qp_offset = tx_size * (qp_num / mw_count);
|
|
|
|
|