RDMA/erdma: Unify byte ordering APIs usage
authorCheng Xu <chengyou@linux.alibaba.com>
Wed, 22 Mar 2023 09:33:17 +0000 (17:33 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 22 Mar 2023 11:10:46 +0000 (13:10 +0200)
commitde19ec778c7a4ee2fe2112126c5d05a10db2d582
treec14830aa77170a04a8d4b8767395c3904cc07ccf
parent697d5cf073acd41a8ab135695bb1e2ae3fd0acb3
RDMA/erdma: Unify byte ordering APIs usage

Replace __be32_to_cpu/__cpu_to_be16 with be32_to_cpu/cpu_to_be16.
And use be32_to_cpu_array to copy and swap byte order to hide the
loop.

Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230322093319.84045-2-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_cm.h
drivers/infiniband/hw/erdma/erdma_cmdq.c
drivers/infiniband/hw/erdma/erdma_cq.c