[dpdk-dev] [PATCH] vhost: fix off-by-one error on nr_desc check

2016-07-25 Thread Yuanhan Liu
On Mon, Jul 25, 2016 at 04:09:58PM +0200, Maxime Coquelin wrote: > nr_desc is not an index but the number of descriptors, > so can be equal to the virtqueue size. > > Fixes: a436f53ebfeb ("vhost: avoid dead loop chain") > > Cc: Yuanhan Liu > Signed-off-by: Maxime Coquelin Thanks for catching i

[dpdk-dev] [PATCH] vhost: fix off-by-one error on nr_desc check

2016-07-25 Thread Thomas Monjalon
2016-07-25 23:24, Yuanhan Liu: > On Mon, Jul 25, 2016 at 04:09:58PM +0200, Maxime Coquelin wrote: > > nr_desc is not an index but the number of descriptors, > > so can be equal to the virtqueue size. > > > > Fixes: a436f53ebfeb ("vhost: avoid dead loop chain") > > > > Cc: Yuanhan Liu > > Signed-

[dpdk-dev] [PATCH] vhost: fix off-by-one error on nr_desc check

2016-07-25 Thread Maxime Coquelin
On 07/25/2016 05:24 PM, Yuanhan Liu wrote: > On Mon, Jul 25, 2016 at 04:09:58PM +0200, Maxime Coquelin wrote: >> nr_desc is not an index but the number of descriptors, >> so can be equal to the virtqueue size. >> >> Fixes: a436f53ebfeb ("vhost: avoid dead loop chain") >> >> Cc: Yuanhan Liu >> Si

[dpdk-dev] [PATCH] vhost: fix off-by-one error on nr_desc check

2016-07-25 Thread Maxime Coquelin
nr_desc is not an index but the number of descriptors, so can be equal to the virtqueue size. Fixes: a436f53ebfeb ("vhost: avoid dead loop chain") Cc: Yuanhan Liu Signed-off-by: Maxime Coquelin --- Hi Yuanhan, I faced the bug while testing my indirect descriptor patch, it happens as soon as th