Re: [PATCH for-next] RDMA/hns: Simplify the calculation and usage of wqe idx for post verbs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
> 
> 




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux