RDMA/hns: Remove some magic numbers
authorXinhao Liu <liuxinhao5@hisilicon.com>
Fri, 5 Feb 2021 09:39:31 +0000 (17:39 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Feb 2021 00:25:25 +0000 (20:25 -0400)
commit993703370a6f929fcef39a14d1be17cbc1d26a30
treebce15de9b76b00e3f5393f96aafd646b23f38a92
parentc05ffb1f7db2d2060530a1e0c41a496ccb44328f
RDMA/hns: Remove some magic numbers

Use macros instead of magic numbers to represent shift of dma_handle_wqe,
dma_handle_idx and UDP destination port number of RoCEv2.

Link: https://lore.kernel.org/r/1612517974-31867-10-git-send-email-liweihang@huawei.com
Signed-off-by: Xinhao Liu <liuxinhao5@hisilicon.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c