1
0
Fork 0
alistair23-linux/drivers/infiniband/hw/hns
Wei Hu (Xavier) 8d497eb0f3 IB/hns: Optimize the logic of allocating memory using APIs
This patch modified the logic of allocating memory using APIs in
hns RoCE driver. We used kcalloc instead of kmalloc_array and
bitmap_zero. And When kcalloc failed, call vzalloc to alloc
memory.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Ping Zhang <zhangping5@huawei.com>
Signed-off-by: Salil Mehta  <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-12-03 14:20:42 -05:00
..
Kconfig IB/hns: Kconfig and Makefile for RoCE module 2016-08-22 14:02:33 -04:00
Makefile IB/hns: Kconfig and Makefile for RoCE module 2016-08-22 14:02:33 -04:00
hns_roce_ah.c
hns_roce_alloc.c
hns_roce_cmd.c
hns_roce_cmd.h
hns_roce_common.h IB/hns: Add code for refreshing CQ CI using TPTR 2016-12-03 14:20:42 -05:00
hns_roce_cq.c IB/hns: Add code for refreshing CQ CI using TPTR 2016-12-03 14:20:42 -05:00
hns_roce_device.h IB/hns: Add code for refreshing CQ CI using TPTR 2016-12-03 14:20:42 -05:00
hns_roce_eq.c IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hem.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hw_v1.c IB/hns: Add code for refreshing CQ CI using TPTR 2016-12-03 14:20:42 -05:00
hns_roce_hw_v1.h IB/hns: Add code for refreshing CQ CI using TPTR 2016-12-03 14:20:42 -05:00
hns_roce_main.c IB/hns: Add code for refreshing CQ CI using TPTR 2016-12-03 14:20:42 -05:00
hns_roce_mr.c IB/hns: Optimize the logic of allocating memory using APIs 2016-12-03 14:20:42 -05:00
hns_roce_pd.c IB/hns: Fix the bug when platform_get_resource() exec fail 2016-10-03 11:43:15 -04:00
hns_roce_qp.c IB/hns: Fix for removal of redundant code 2016-10-03 11:43:15 -04:00
hns_roce_user.h