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)
commit5b6eb54f586ba0a6385f1523bce4c96cbdb79afd
treee13b4f4ce5ff76047168fbe5df167009273975dc
parentc62091bcd9843eedde93f1898ca05765a6875c18
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