summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_device.h
diff options
context:
space:
mode:
authorWei Hu(Xavier) <xavier.huwei@huawei.com>2018-05-23 18:16:27 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-05-24 15:41:52 -0600
commit5b6eb54f586ba0a6385f1523bce4c96cbdb79afd (patch)
treee13b4f4ce5ff76047168fbe5df167009273975dc /drivers/infiniband/hw/hns/hns_roce_device.h
parentc62091bcd9843eedde93f1898ca05765a6875c18 (diff)
downloadtalos-op-linux-5b6eb54f586ba0a6385f1523bce4c96cbdb79afd.tar.gz
talos-op-linux-5b6eb54f586ba0a6385f1523bce4c96cbdb79afd.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_device.h')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index 53c2f1b8d068..412297d4b86c 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -214,6 +214,7 @@ enum {
struct hns_roce_uar {
u64 pfn;
unsigned long index;
+ unsigned long logic_idx;
};
struct hns_roce_ucontext {
OpenPOWER on IntegriCloud