mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
NTB: perf: Don't require one more memory window than number of peers
[ Upstream commita9c4211ac9] ntb_perf should not require more than one memory window per peer. This was probably an off-by-one error. Fixes:5648e56d03("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Acked-by: Allen Hubbe <allenbh@gmail.com> Tested-by: Alexander Fomichev <fomichev.ru@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8aeebb1a15
commit
b3f110e160
@@ -656,7 +656,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user