Re: [PATCH for-rc 1/8] RDMA/hns: Bugfix for posting multiple srq work request

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

 



On Fri, Jan 25, 2019 at 04:30:23PM +0800, Lijun Ou wrote:
> When the user submits more than 32 work request to a srq queue
> at a time, it needs to find the corresponding number of entries
> in the bitmap in the idx queue. However, the original lookup
> function named ffs only processes 32 bits of the array element,
> When the number of srq wqe issued exceeds 32, the ffs will only
> process the lower 32 bits of the elements, it will not be able
> to get the correct wqe index for srq wqe.
> 
> Signed-off-by: Lijun Ou <oulijun@xxxxxxxxxx>
>  drivers/infiniband/hw/hns/hns_roce_device.h | 2 +-
>  drivers/infiniband/hw/hns/hns_roce_hw_v2.c  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

This should use the apis in bitmap.h, not open code them.

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