提交 a9c4211a 编写于 作者: L Logan Gunthorpe 提交者: Jon Mason

NTB: perf: Don't require one more memory window than number of peers

ntb_perf should not require more than one memory window per peer. This
was probably an off-by-one error.

Fixes: 5648e56d ("NTB: ntb_perf: Add full multi-port NTB API support")
Signed-off-by: NLogan Gunthorpe <logang@deltatee.com>
Acked-by: NAllen Hubbe <allenbh@gmail.com>
Tested-by: NAlexander Fomichev <fomichev.ru@gmail.com>
Signed-off-by: NJon Mason <jdmason@kudzu.us>
上级 ca93c457
......@@ -654,7 +654,7 @@ static int perf_init_service(struct perf_ctx *perf)
{
u64 mask;
if (ntb_peer_mw_count(perf->ntb) < perf->pcnt + 1) {
if (ntb_peer_mw_count(perf->ntb) < perf->pcnt) {
dev_err(&perf->ntb->dev, "Not enough memory windows\n");
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册