]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
IB/hns: Add & initialize "node_guid" parameter for RDMA CM
authorLijun Ou <oulijun@huawei.com>
Thu, 15 Sep 2016 22:48:07 +0000 (23:48 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:10 +0000 (11:43 -0400)
commit31644665d41140c3961c5213350759edb24d5081
treef8f54dbaf04c978c801f039c70fa40ebc44b8388
parent2eefca272275cb2eac048ddfa3f6fb30d9b24d5e
IB/hns: Add & initialize "node_guid" parameter for RDMA CM

According to the Infiniband spec, NodeGUID uniquely identifies a
node. This must be initialized to some unique value. This patch
adds the support to the HNS RoCE driver to fetch the NodeGUID
value from DT or ACPI and then use this value to initialize the
node_guid parameter of IB device. This value shall be used by
RDMA CM.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_main.c