On Sat, Nov 28, 2020 at 06:22:38PM +0800, Weihang Li wrote: > From: Yangyang Li <liyangyang20@xxxxxxxxxx> > > Page alignment is required when setting the number of extended sge > according to the hardware's achivement. If the space of needed extended sge > is greater than one page, the roundup_pow_of_two() can ensure that. But if > the needed extended sge isn't 0 and can not be filled in a whole page, the > driver should align it specifically. > > Fixes: 54d6638765b0 ("RDMA/hns: Optimize WQE buffer size calculating process") > Signed-off-by: Yangyang Li <liyangyang20@xxxxxxxxxx> > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_qp.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>