Skip to content

RDMA/hns: Various cleanups

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 Latest10 patches 5 repliesApplied
  2. v111 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Drop patch 3/11 from series v1 because it's wrong to use IS_ERR_OR_NULL on a pointer returned by kmalloc().

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10RDMA/hns: Unify format of printsdrivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_pd.c+89 -730 replies
2/10RDMA/hns: Fix a wrong judgment of return valuedrivers/infiniband/hw/hns/hns_roce_mr.c+1 -10 replies
3/10RDMA/hns: Simplify attribute judgment codedrivers/infiniband/hw/hns/hns_roce_hw_v2.c+1 -20 replies
4/10RDMA/hns: Optimize hns_roce_alloc_vf_resource()drivers/infiniband/hw/hns/hns_roce_hw_v2.c+62 -814 replies
5/10RDMA/hns: Adjust the qp status value sequence of the hardwaredrivers/infiniband/hw/hns/hns_roce_hw_v2.h+1 -10 replies
6/10RDMA/hns: Remove definition of cq doorbell structuredrivers/infiniband/hw/hns/hns_roce_hw_v2.h+0 -50 replies
7/10RDMA/hns: Remove meaningless printsdrivers/infiniband/hw/hns/hns_roce_hw_v1.c drivers/infiniband/hw/hns/hns_roce_hw_v2.c+3 -110 replies
8/10RDMA/hns: Remove redundant qpc setup operationsdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+1 -2360 replies
9/10RDMA/hns: Remove redundant assignment of wc->smac when polling cqdrivers/infiniband/hw/hns/hns_roce_hw_v2.c+1 -80 replies
10/10RDMA/hns: Remove redundant judgment of qp_typedrivers/infiniband/hw/hns/hns_roce_hw_v2.c+0 -70 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 00/10] RDMA/hns: Various cleanups

This series contains some cleanups for the hns driver:
- patch 1 unifies format of prints in hns_roce_hw_v2.c and hns_roce_pd.c.
- patch 2 ~ 5 are some simple modifications.
- patch 6 ~ 10 remove some dead codes.

Previous discussions can be found at:
https://patchwork.kernel.org/cover/11447213/

Changes since v1:
- Drop patch 3/11 from series v1 because it's wrong to use IS_ERR_OR_NULL on a pointer returned by kmalloc().

Lang Cheng (4):
RDMA/hns: Simplify attribute judgment code RDMA/hns: Adjust the qp status value sequence of the hardware RDMA/hns: Remove definition of cq doorbell structure RDMA/hns: Remove redundant qpc setup operations

Lijun Ou (2):
RDMA/hns: Unify format of prints
RDMA/hns: Optimize hns_roce_alloc_vf_resource()

Weihang Li (3):
RDMA/hns: Fix a wrong judgment of return value RDMA/hns: Remove redundant assignment of wc->smac when polling cq RDMA/hns: Remove redundant judgment of qp_type

Wenpeng Liang (1):
RDMA/hns: Remove meaningless prints

 drivers/infiniband/hw/hns/hns_roce_hw_v1.c |   9 +-
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 560 ++++++++---------------------
 drivers/infiniband/hw/hns/hns_roce_hw_v2.h |   7 +-
 drivers/infiniband/hw/hns/hns_roce_mr.c    |   2 +-
 drivers/infiniband/hw/hns/hns_roce_pd.c    |   6 +-
 5 files changed, 159 insertions(+), 425 deletions(-)
Signature · 1 line
2.8.1