projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eade67
)
RDMA/hns: Set the guid for hip08 RoCE device
author
oulijun
<
[email protected]
>
Wed, 10 Jan 2018 06:39:53 +0000
(14:39 +0800)
committer
Jason Gunthorpe
<
[email protected]
>
Wed, 17 Jan 2018 03:38:18 +0000
(20:38 -0700)
This patch assign a guid(Global Unique identifer) value to the hip08
device.
Signed-off-by: Lijun Ou <
[email protected]
>
Signed-off-by: Yixian Liu <
[email protected]
>
Signed-off-by: Wei Hu (Xavier) <
[email protected]
>
Reviewed-by: Leon Romanovsky <
[email protected]
>
Signed-off-by: Jason Gunthorpe <
[email protected]
>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 11391c8ce6df5a2e4bbd0f7554a6ae01a208b422..256fe110107acc2080b48099b0883c88905e9e04 100644
(file)
--- a/
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@
-34,6
+34,7
@@
#include <linux/etherdevice.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
+#include <net/addrconf.h>
#include <rdma/ib_umem.h>
#include "hnae3.h"
@@
-4679,6
+4680,9
@@
static int hns_roce_hw_v2_get_cfg(struct hns_roce_dev *hr_dev,
hr_dev->iboe.netdevs[0] = handle->rinfo.netdev;
hr_dev->iboe.phy_port[0] = 0;
+ addrconf_addr_eui48((u8 *)&hr_dev->ib_dev.node_guid,
+ hr_dev->iboe.netdevs[0]->dev_addr);
+
for (i = 0; i < HNS_ROCE_V2_MAX_IRQ_NUM; i++)
hr_dev->irq[i] = pci_irq_vector(handle->pdev,
i + handle->rinfo.base_vector);