OSDN Git Service

RDMA/hns: Update convert function of endian format
authoroulijun <oulijun@huawei.com>
Fri, 4 May 2018 02:57:06 +0000 (10:57 +0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 14:45:18 +0000 (10:45 -0400)
commitad18e20ba2887e221e903d311f4c9a1586eacffb
tree30eb6ac8c0103cd41eb5f936a603ef17da2b4d4f
parentf97a62c39423575c62649721657e5cc04f67c0ac
RDMA/hns: Update convert function of endian format

Because the sys_image_guid of ib_device_attr structure is __be64, it
need to use cpu_to_be64 for converting.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_main.c