RDMA/mana_ib: set node_guid
BugLink: https://bugs.launchpad.net/bugs/2083196 [ Upstream commit 65357e2c164a08bf20849dd55f46aa71e00334fa ] Use the mac address for the node_guid of the IB device. Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Link: https://lore.kernel.org/r/1717070117-1234-2-git-send-email-kotaranov@linux.microsoft.com Reviewed-by: Long Li <longli@microsoft.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Stable-dep-of: 1df03a4b4414 ("RDMA/mana_ib: Set correct device into ib") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Portia Stephens <portia.stephens@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
6bf027d14f
commit
0bcdc1f0cf
@@ -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");
|
||||
@@ -98,6 +99,7 @@ static int mana_ib_probe(struct auxiliary_device *adev,
|
||||
ret);
|
||||
goto free_ib_device;
|
||||
}
|
||||
addrconf_addr_eui48((u8 *)&dev->ib_dev.node_guid, upper_ndev->dev_addr);
|
||||
dev->gdma_dev = &mdev->gdma_context->mana_ib;
|
||||
|
||||
ret = mana_ib_gd_query_adapter_caps(dev);
|
||||
|
||||
Reference in New Issue
Block a user