]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust
authorWei Hu(Xavier) <xavier.huwei@huawei.com>
Wed, 23 May 2018 10:16:27 +0000 (18:16 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 21:41:52 +0000 (15:41 -0600)
commit669db9d28509750daac15572a306964c44970d4c
treee13b4f4ce5ff76047168fbe5df167009273975dc
parent075a93deb93bb10ae3877856488d2136351d6aca
RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

This patch modified uar allocation algorithm in hns_roce_uar_alloc
function to avoid bitmap exhaust.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_pd.c