On 2020/1/4 3:51, Jason Gunthorpe wrote: > On Tue, Dec 10, 2019 at 08:45:02PM +0800, Weihang Li wrote: >> From: Yixian Liu <liuyixian@xxxxxxxxxx> >> >> Currently, the wqe idx is calculated repeatly everywhere it is used. >> This patch defines wqe_idx and calculated it only once, then just use it >> as needed. >> >> Fixes: 2d40788825ac ("RDMA/hns: Add support for processing send wr and >> receive wr") > > Please don't wrap fixes tags I see, thank you. Weihang > >> Signed-off-by: Yixian Liu <liuyixian@xxxxxxxxxx> >> Signed-off-by: Weihang Li <liweihang@xxxxxxxxxxxxx> >> --- >> drivers/infiniband/hw/hns/hns_roce_device.h | 3 +- >> drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 37 +++++++++++-------------- >> drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 43 ++++++++++++----------------- >> 3 files changed, 35 insertions(+), 48 deletions(-) > > Applied to for-next, thanks > > Jason > >