Skip to content

RDMA/hns: Codes optimization

Weihang Li linux-rdma 2 versions – Applied

Status from this message: applied to for-next, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyApplied
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Fix comments from Jason that the arrays should be defined in type of "static const" in patch #3 ~ #6.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6RDMA/hns: Optimize hns_roce_config_link_table()drivers/infiniband/hw/hns/hns_roce_hw_v2.c+21 -320 replies
2/6RDMA/hns: Optimize hns_roce_v2_set_mac()drivers/infiniband/hw/hns/hns_roce_hw_v2.c+2 -50 replies
3/6RDMA/hns: Simplify the qp state convert codedrivers/infiniband/hw/hns/hns_roce_hw_v2.c+14 -130 replies
4/6RDMA/hns: Simplify the cqe code of poll cqdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+57 -730 replies
5/6RDMA/hns: Simplify the state judgment code of qpdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+27 -270 replies
6/6RDMA/hns: Simplify the status judgment code of hns_roce_v1_m_qp()drivers/infiniband/hw/hns/hns_roce_hw_v1.c+30 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 for-next 0/6] RDMA/hns: Codes optimization

This series optimize some codes in hns drivers. The first two patches are mainly to remove unnecessary memset(), and the others use map table to simplify the conversion of values.

Previous version can be found at:
https://patchwork.kernel.org/cover/11485099/

Changes since v1:
- Fix comments from Jason that the arrays should be defined in type of "static const" in patch #3 ~ #6.

Lang Cheng (4):
RDMA/hns: Simplify the qp state convert code
RDMA/hns: Simplify the cqe code of poll cq
RDMA/hns: Simplify the state judgment code of qp RDMA/hns: Simplify the status judgment code of hns_roce_v1_m_qp()

Lijun Ou (2):
RDMA/hns: Optimize hns_roce_config_link_table()
RDMA/hns: Optimize hns_roce_v2_set_mac()

 drivers/infiniband/hw/hns/hns_roce_hw_v1.c |  42 +++--
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 269 +++++++++++++----------------
 2 files changed, 150 insertions(+), 161 deletions(-)
Signature · 1 line
2.8.1