aboutsummaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/srp/ib_srp.c
diff options
context:
space:
mode:
authorLijun Ou <[email protected]>2019-05-30 23:55:53 +0800
committerJason Gunthorpe <[email protected]>2019-05-31 16:11:02 -0300
commit97545b10221ad14b046dba135a37f4e98a560697 (patch)
tree15557f223569ae2ee89b7535509167ca0f14be55 /drivers/infiniband/ulp/srp/ib_srp.c
parentcac2a301c02a9b178842e22df34217da7854e588 (diff)
RDMA/hns: Bugfix for posting multiple srq work request
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: Xi Wang <[email protected]> Signed-off-by: Lijun Ou <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.c')
0 files changed, 0 insertions, 0 deletions