RDMA/hns: Optimize hns buffer allocation flow
driver inclusion category: bugfix bugzilla: NA CVE: NA When the value of nbufs is 1, the buffer is in direct mode, which may cause confusion. So optimizes current codes to make it easier to maintain. Signed-off-by:Xi Wang <wangxi11@huawei.com> Signed-off-by:
Shunfeng Yang <yangshunfeng2@huawei.com> Reviewed-by:
chunzhi hu <huchunzhi@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- drivers/infiniband/hw/hns/hns_roce_alloc.c 104 additions, 120 deletionsdrivers/infiniband/hw/hns/hns_roce_alloc.c
- drivers/infiniband/hw/hns/hns_roce_cq.c 13 additions, 12 deletionsdrivers/infiniband/hw/hns/hns_roce_cq.c
- drivers/infiniband/hw/hns/hns_roce_device.h 46 additions, 20 deletionsdrivers/infiniband/hw/hns/hns_roce_device.h
- drivers/infiniband/hw/hns/hns_roce_hw_v1.c 3 additions, 7 deletionsdrivers/infiniband/hw/hns/hns_roce_hw_v1.c
- drivers/infiniband/hw/hns/hns_roce_hw_v2.c 4 additions, 4 deletionsdrivers/infiniband/hw/hns/hns_roce_hw_v2.c
- drivers/infiniband/hw/hns/hns_roce_mr.c 2 additions, 6 deletionsdrivers/infiniband/hw/hns/hns_roce_mr.c
- drivers/infiniband/hw/hns/hns_roce_qp.c 25 additions, 19 deletionsdrivers/infiniband/hw/hns/hns_roce_qp.c
- drivers/infiniband/hw/hns/hns_roce_srq.c 18 additions, 16 deletionsdrivers/infiniband/hw/hns/hns_roce_srq.c
- drivers/infiniband/hw/hns/roce-customer/rdfx_entry.c 1 addition, 1 deletiondrivers/infiniband/hw/hns/roce-customer/rdfx_entry.c
- drivers/infiniband/hw/hns/roce-customer/rdfx_intf.c 14 additions, 30 deletionsdrivers/infiniband/hw/hns/roce-customer/rdfx_intf.c
Please register or sign in to comment