Skip to content

Commit 65357e2

Browse files
Konstantin Taranovrleon
authored andcommitted
RDMA/mana_ib: set node_guid
Use the mac address for the node_guid of the IB device. Signed-off-by: Konstantin Taranov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Long Li <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 2d0e7ba commit 65357e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/infiniband/hw/mana/device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "mana_ib.h"
77
#include <net/mana/mana_auxiliary.h>
8+
#include <net/addrconf.h>
89

910
MODULE_DESCRIPTION("Microsoft Azure Network Adapter IB driver");
1011
MODULE_LICENSE("GPL");
@@ -92,6 +93,7 @@ static int mana_ib_probe(struct auxiliary_device *adev,
9293
goto free_ib_device;
9394
}
9495
ether_addr_copy(mac_addr, upper_ndev->dev_addr);
96+
addrconf_addr_eui48((u8 *)&dev->ib_dev.node_guid, upper_ndev->dev_addr);
9597
ret = ib_device_set_netdev(&dev->ib_dev, upper_ndev, 1);
9698
rcu_read_unlock();
9799
if (ret) {

0 commit comments

Comments
 (0)