RDMA/hns: Refactor extend link table allocation
Subsystems (2)
PATCH v2 1/1 RDMA/hns: Refactor extend link table allocation
From: Xi Wang <[email protected]>
The timeout link table works in HIP08 ES version and the hns driver only support the CS version for HIP08, so delete the related code. Then simplify the buffer allocation for link table to make the code more readable.
---
Changes since v1:
* Merge the first patch in the series into the second one.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/
drivers/infiniband/hw/hns/hns_roce_device.h | 3 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 255 ++++++++++++---------------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 72 +++----- 3 files changed, 124 insertions(+), 206 deletions(-)
drivers/infiniband/hw/hns/hns_roce_device.h +1 -2
@@ -854,8 +854,7 @@ struct hns_roce_caps {u32 gmv_buf_pg_sz;u32 gmv_hop_num;u32 sl_num; -u32 tsq_buf_pg_sz; -u32 tpq_buf_pg_sz; +u32 llm_buf_pg_sz;u32 chunk_sz;/* chunk size in non multihop mode */ u64 flags;u16 default_ceq_max_cnt;
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +104 -151
326 lines not on this page · raw message
drivers/infiniband/hw/hns/hns_roce_hw_v2.h +19 -53
104 lines not on this page · raw message
Signature · 1 line
2.7.4
Quoted 13 lines · Weihang Li
From: Xi Wang <[email protected]>
The timeout link table works in HIP08 ES version and the hns driver only support the CS version for HIP08, so delete the related code. Then simplify the buffer allocation for link table to make the code more readable.
Signed-off-by Xi Wang <[email protected]>Signed-off-by Weihang Li <[email protected]>---
Changes since v1:
* Merge the first patch in the series into the second one.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/
Quoted 5 lines
drivers/infiniband/hw/hns/hns_roce_device.h | 3 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 255 ++++++++++++---------------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 72 +++----- 3 files changed, 124 insertions(+), 206 deletions(-)
Thanks,
Quoted 9 lines · Weihang Li
From: Xi Wang <[email protected]>
The timeout link table works in HIP08 ES version and the hns driver only support the CS version for HIP08, so delete the related code. Then simplify the buffer allocation for link table to make the code more readable.
Signed-off-by Xi Wang <[email protected]>Signed-off-by Weihang Li <[email protected]>Reviewed-by Leon Romanovsky <[email protected]>
Quoted 8 lines
---
Changes since v1:
* Merge the first patch in the series into the second one.
* Link: https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/drivers/infiniband/hw/hns/hns_roce_device.h | 3 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 255 ++++++++++++---------------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 72 +++----- 3 files changed, 124 insertions(+), 206 deletions(-)
Applied to for-next, thanks
Jason