]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Use hr_reg_read() instead of remaining roce_get_xxx()
authorWenpeng Liang <liangwenpeng@huawei.com>
Thu, 12 May 2022 08:00:12 +0000 (16:00 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 12 May 2022 17:16:28 +0000 (14:16 -0300)
commit06a7c85a309d8389219255d0b88762eb6d5c6ef1
tree6f41e74caf1b991406ebdbcfc725c273f39742cf
parent16c13c6c280905ff2ffb956d0ae25eb1ed62b9e2
RDMA/hns: Use hr_reg_read() instead of remaining roce_get_xxx()

To reduce the code size and make the code clearer, replace all
roce_get_xxx() with hr_reg_read() to read the data fields.

Link: https://lore.kernel.org/r/20220512080012.38728-3-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_restrack.c