On Tue, May 24, 2016 at 12:50:40PM -0700, Dennis Dalessandro wrote: > From: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx> > > rdmavt allows the driver to specify the size of the ack queue, but > only uses it for the modify QP limit testing for setting the atomic > limit value. > > The driver dependent size is now used to size the s_ack_queue ring > dynamicially. > > Since the driver knows its size, the driver will use its define > for any ring size dependent code. > > Reviewed-by: Mitko Haralanov <mitko.haralanov@xxxxxxxxx> > Signed-off-by: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx> > --- > drivers/infiniband/sw/rdmavt/qp.c | 22 ++++++++++++++++++++-- > include/rdma/rdma_vt.h | 9 +++++++++ > include/rdma/rdmavt_qp.h | 5 +---- > 3 files changed, 30 insertions(+), 6 deletions(-) > ... > /* > + * Return the max atomic suitable for determining > + * the size of the ack ring buffer in a QP. > + */ > +static inline unsigned int rvt_max_atomic(struct rvt_dev_info *rdi) > +{ In previous patch, you changed max_rdma_atomic to be u8 instead of int, so why are you returning unsigned int and not u8? > + return rdi->dparms.max_rdma_atomic + 1; > +} > +
Attachment:
signature.asc
Description: Digital signature