RDMA/hns: Fix query destination qpn
authorWenpeng Liang <liangwenpeng@huawei.com>
Thu, 26 Aug 2021 13:37:30 +0000 (21:37 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Aug 2021 15:12:20 +0000 (12:12 -0300)
commite788a3cd5787aca74e0ee00202d4dca64b43f043
tree313575a5b8ece8504e0c3190dcf8931639e26dda
parent145eba1aaec9f6798c30842d201920a80f9049a3
RDMA/hns: Fix query destination qpn

The bit width of dqpn is 24 bits, using u8 will cause truncation error.

Fixes: 926a01dc000d ("RDMA/hns: Add QP operations support for hip08 SoC")
Link: https://lore.kernel.org/r/1629985056-57004-2-git-send-email-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_hw_v2.c