diff options
author | Konstantin Taranov <[email protected]> | 2024-05-30 04:55:16 -0700 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2024-06-02 11:50:15 +0300 |
commit | 65357e2c164a08bf20849dd55f46aa71e00334fa (patch) | |
tree | 90d031258803cd2e0c27cb7d079b4e9ebfcca265 | |
parent | 2d0e7ba468eae365f3c4bc9266679e1f8dd405f0 (diff) |
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]>
-rw-r--r-- | drivers/infiniband/hw/mana/device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mana/device.c b/drivers/infiniband/hw/mana/device.c index 7e09ceb3da53..9a7da2ec9cdb 100644 --- a/drivers/infiniband/hw/mana/device.c +++ b/drivers/infiniband/hw/mana/device.c @@ -5,6 +5,7 @@ #include "mana_ib.h" #include <net/mana/mana_auxiliary.h> +#include <net/addrconf.h> MODULE_DESCRIPTION("Microsoft Azure Network Adapter IB driver"); MODULE_LICENSE("GPL"); @@ -92,6 +93,7 @@ static int mana_ib_probe(struct auxiliary_device *adev, goto free_ib_device; } ether_addr_copy(mac_addr, upper_ndev->dev_addr); + addrconf_addr_eui48((u8 *)&dev->ib_dev.node_guid, upper_ndev->dev_addr); ret = ib_device_set_netdev(&dev->ib_dev, upper_ndev, 1); rcu_read_unlock(); if (ret) { |