On Fri, Jun 08, 2018 at 06:08:15PM -0600, Logan Gunthorpe <log...@deltatee.com> wrote: > ntb_perf should not require more than one memory window per peer. This > was probably an off-by-one error. >
Good catch. Thanks. IDT got a lot of MWs especially if LookUpTables are enabled. That's why I didn't find the effect of this error. Regards, -Sergey > Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") > Signed-off-by: Logan Gunthorpe <log...@deltatee.com> > --- > drivers/ntb/test/ntb_perf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c > index 2a9d6b0d1f19..fe27412ffe91 100644 > --- a/drivers/ntb/test/ntb_perf.c > +++ b/drivers/ntb/test/ntb_perf.c > @@ -655,7 +655,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; > } > -- > 2.11.0 > > -- > You received this message because you are subscribed to the Google Groups > "linux-ntb" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-ntb+unsubscr...@googlegroups.com. > To post to this group, send email to linux-...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/linux-ntb/20180609000819.13883-6-logang%40deltatee.com. > For more options, visit https://groups.google.com/d/optout.