On Tue, Dec 26, 2017 at 07:25:10PM +0800, Lijun Ou wrote: > This patch fixes the usage with sr_max filed and rr_max of qp > context when modify qp. Its modifications include: > 1. Adjust location of filling sr_max filed of qpc > 2. Only assign the number of responder resource if > IB_QP_MAX_DEST_RD_ATOMIC bit is set > 3. Only assign the number of outstanding resource if > IB_QP_MAX_QP_RD_ATOMIC > 4. Fix the assgin algorithms for the field of sr_max > and rr_max of qp context > > Signed-off-by: Lijun Ou <oulijun@xxxxxxxxxx> > Signed-off-by: Yixian Liu <liuyixian@xxxxxxxxxx> > Signed-off-by: Wei Hu (Xavier) <xavier.huwei@xxxxxxxxxx> > --- > V1->V2: > - Adjust the write way for if branch condition from > Leon Romanovsky's advice. > > V1: > - the initial submit > --- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 27 ++++++++++++++++----------- > 1 file changed, 16 insertions(+), 11 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature