aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
diff options
context:
space:
mode:
authorLijun Ou <oulijun@huawei.com>2018-07-25 15:29:40 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-07-26 20:10:37 -0600
commit0c4a0e2987a51415de73180ce9f389a99b3dddd1 (patch)
tree78e10235137cf728e58cda0437396076be6905bd /drivers/infiniband/hw/hns/hns_roce_hw_v2.h
parentRDMA/hns: Use delay instead of usleep (diff)
downloadlinux-dev-0c4a0e2987a51415de73180ce9f389a99b3dddd1.tar.xz
linux-dev-0c4a0e2987a51415de73180ce9f389a99b3dddd1.zip
RDMA/hns: Update the data type of immediate data
Because the data structure of hip08 is little endian, it needs to fix the immediate field of wqe and cqe into __le32. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
index df95b3515c94..f40d8c22d357 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
@@ -772,7 +772,7 @@ struct hns_roce_v2_cqe {
__le32 byte_4;
union {
__le32 rkey;
- __be32 immtdata;
+ __le32 immtdata;
};
__le32 byte_12;
__le32 byte_16;
@@ -930,7 +930,7 @@ struct hns_roce_v2_cq_db {
struct hns_roce_v2_ud_send_wqe {
__le32 byte_4;
__le32 msg_len;
- __be32 immtdata;
+ __le32 immtdata;
__le32 byte_16;
__le32 byte_20;
__le32 byte_24;
@@ -1016,7 +1016,7 @@ struct hns_roce_v2_rc_send_wqe {
__le32 msg_len;
union {
__le32 inv_key;
- __be32 immtdata;
+ __le32 immtdata;
};
__le32 byte_16;
__le32 byte_20;