Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp976383lqp; Thu, 23 May 2024 05:59:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM9hlemb6N7j3IjIAW1OlqEAb7K5J+km/0Az+pHcZCxS1kdL0qlN/SO0eCo3mWWa606Ikyf5bZxUnYswDekpLQxuQ3AdD6VnJIdB1l/Q== X-Google-Smtp-Source: AGHT+IE4acfDAMDIT+Zmy8+0Evv3jvqMBtvyR7n7IIIi/pcYkm1M0W8WzG5+QCUDxJD5v04FJwP6 X-Received: by 2002:a50:d54c:0:b0:572:707f:1a99 with SMTP id 4fb4d7f45d1cf-57832a96f8fmr2887374a12.25.1716469177831; Thu, 23 May 2024 05:59:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716469177; cv=pass; d=google.com; s=arc-20160816; b=xakd7STy1NwIQgW2Of7wnVZpRWjggWpdnETDVJhHgjf9cHBqcv7kl99UrLcE2AYmcO PouyL31eZZ8LbQja421tvMZma8k/XRR600odcm33lKuRTD5NxWP+tmg5n6iLF7nCRS3T bOZEKa2h7Vwm+q2aD8ix05RxsEqF7tJOu9Bqk9LHEXcUQbjWLcnMFRoARQNcWxCQh5i1 O5xA40eheGJ5o6fqLLsgpSMdWqcCfHtY20xkP0aTq+TTBNsoTKx0jJux5rvRXXqmd4O0 1ZqVQ2S6YPdEByDBIUXSG3GT8AzpETwl26qbLH6u7tZUPOIt4lclEgePhKOHFrHjkfDo rjNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=SijCuv+QFkMCbbHDkAAt7AU3QROLkXxz8bUCBmDqLoc=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=TsyLpFzOaRrX8y3zDhLQ9pUBUErVmoJN6xLVI48LFhD2AOVvh5IOJ3ZJ8SyW9LIqBX t9eYsSqSLEyMdIAgl7xImb1KLY0DXFIFBcol86TV9wfTiWFeBXbaPxp0oKvqhwFnRASa SnRKcqrmQjCCTENGsPJEe10C9pcp5OeDfd2dbZ8BdV1hGKtuulRL4JxzEff35CTjKCLL aBhf5onz78gQeXPXosLeunl41tj3a2WTnScnxoyONVSGQBIyDcAjEbiOG28EUUeAqKYr ndhK5lQHPAqSKza9gvw3LE4HXrXjeWNzKFNQOjfe3hYsahWLHOKbWBnPb+XUT2ZiTwD5 w7aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="G27a6hD/"; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-187527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c377f3esi16659390a12.619.2024.05.23.05.59.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:59:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="G27a6hD/"; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-187527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 44F3B1F21D8D for ; Thu, 23 May 2024 12:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2948D14B089; Thu, 23 May 2024 12:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="G27a6hD/" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3E9B14A623; Thu, 23 May 2024 12:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716469145; cv=none; b=Rbe99STJPYT1vONWMmLl6iGxXSXZaCnVLFJ6aLM+PgrFcfrZZaO/4ELP6Nd+zC4hgJnQo2E5iVvM0rm60Faah8S3DIGQ0hD9TL+4a6OwJj4bxpI1oN2j45cjd1gOlS7E+pHkJWP1dGZMUfOJuxJB2aXHhMMRGDrG3XvRdVJlCtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716469145; c=relaxed/simple; bh=qrtMfi29nOPCDGguwmLI+rIX8nriV0m4167KbZpCAww=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=blOz2Xgb/tLd89sWPrgdJm6/btizsjepLvRRwVxaO5VLJdzyW9y96DW8xweeM1WfTbiYzeDZdOgKWaEKp2EBo5uQH5UstFLgRWjHCLzuVwjC4QaE1Kk6xVgzUaiq6F4tkj81P3biCNws7LXTAD98VpnLXbsCMcb3quk6r/OvxLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=G27a6hD/; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 9407220B9260; Thu, 23 May 2024 05:59:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9407220B9260 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1716469143; bh=SijCuv+QFkMCbbHDkAAt7AU3QROLkXxz8bUCBmDqLoc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G27a6hD/FuhFPiHIzMbEXNRWq7si4t1q8rXR/+Y6d1fpVyHO0AT40S1otS4u5ojuI fxaLJ4FdygcyTsPE16bLcuOxXnGof3PrZJtrd1AiM0VwbLtkv43q38JwbH6yHDGto9 n3T5Ud/l1XuYCYQnLFJvusSHnsFhspSmRzkuefrU= From: Konstantin Taranov To: kotaranov@microsoft.com, sharmaajay@microsoft.com, longli@microsoft.com, jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH rdma-next 1/2] RDMA/mana_ib: set node_guid Date: Thu, 23 May 2024 05:58:56 -0700 Message-Id: <1716469137-16844-2-git-send-email-kotaranov@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1716469137-16844-1-git-send-email-kotaranov@linux.microsoft.com> References: <1716469137-16844-1-git-send-email-kotaranov@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Konstantin Taranov Use the mac address for the node_guid of the IB device. Signed-off-by: Konstantin Taranov --- drivers/infiniband/hw/mana/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/mana/device.c b/drivers/infiniband/hw/mana/device.c index 7e09ceb..9a7da2e 100644 --- a/drivers/infiniband/hw/mana/device.c +++ b/drivers/infiniband/hw/mana/device.c @@ -5,6 +5,7 @@ #include "mana_ib.h" #include +#include 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) { -- 2.43.0