Message ID | 1666034441-15424-7-git-send-email-longli@linuxonhyperv.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1605922wrs; Mon, 17 Oct 2022 12:22:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RSouAC/jbf2reejGQ3Nz01E6Z5GAT9Nf9ehDr+zl1UTxGWeLjxTm+xIw+PtXsDcLuRQBb X-Received: by 2002:a05:6a02:186:b0:439:49a3:479b with SMTP id bj6-20020a056a02018600b0043949a3479bmr12053297pgb.171.1666034538219; Mon, 17 Oct 2022 12:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666034538; cv=none; d=google.com; s=arc-20160816; b=oRlBRliEK6OELyWb1/qFiz8W53aWu5G/j9PfyKG99HjduyM0DOJ5wwsjhkqiCWo+Qv LzVOdvEIk+A2sNdGr3q3os2g6gCgnH2cSrhopWcTC1G13WvEqMF2dAD9xpRJ1x4MEBOP nGTuMGTc+1j5XXlkbn/rl3rlQEmFwzMWrKee0QrewelEugdHwdT+G+vdteX7tu/wmrf8 0IG/EAPDKBSb17fiP1v3KIjc3NJYWbUSI/t5hJ2Y9AjYtpd+mfDSLcPkbBv6MDGSM3hY 6F1/xwohsbTvCFYHhwBw4NkDCtkQFFGxdK95zo18Ys/uwWayAyMVwaKx91XcEFvXkCi6 P4yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=rxJ1l3XZAaUy7L0ulivQTclU3lx9TfDBngKUNfhY9VY=; b=CI+kd2d23bp+UL1XX97xT6MzZYoPnI5sAATtVJgB3+5PwP7D30TJnIve2WxHibubqs V7AYZncLOcLBxwP9adyT4HgNZeI0F0Bb8jy2gapSOtEXcuc99zR3cCTzPXmrzdlDGpyX U+ZVbknVDVt66x5rcb1T6tI+ggnpMOTY7Kiey5Mozb2FY7D3VRXhlHJzGcsLPEAfmToJ 0wslJu97oIyhG64ofwoNGSJHGpoApURJxW6mTqb5mGe4MBYbqxd0B7nDXbmSZhKfhvm3 NQicC5FhvM8BsVwGFkfca2wMM1tBvrKHRPwYNksKE08VfasWlbj1YgNyGcs1jvQNpr8Y 3QLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=PePY3trN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxonhyperv.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h132-20020a636c8a000000b0045ceb2c2eb7si10626638pgc.760.2022.10.17.12.22.04; Mon, 17 Oct 2022 12:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=PePY3trN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxonhyperv.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230390AbiJQTVl (ORCPT <rfc822;kernel.ruili@gmail.com> + 99 others); Mon, 17 Oct 2022 15:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbiJQTVB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Oct 2022 15:21:01 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21DBA5006E; Mon, 17 Oct 2022 12:20:55 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1004) id 086F320FDA84; Mon, 17 Oct 2022 12:20:54 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 086F320FDA84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1666034454; bh=rxJ1l3XZAaUy7L0ulivQTclU3lx9TfDBngKUNfhY9VY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From; b=PePY3trNGguiL0s+ienaQOB/u9ao4YFoyvpE/JtzLb+f7C/r9Ff2+QTqcmOSlrz7k KugDJMN5BY1tZoZMsNRyu8T4WCkpocMEGnirh2BUuoAFSdMdgWvd6p+MBdL28ADdlr KIkGcbkUUMrqDCW756gxk1R862zHeC7mRZLqAghg= From: longli@linuxonhyperv.com To: "K. Y. Srinivasan" <kys@microsoft.com>, Haiyang Zhang <haiyangz@microsoft.com>, Stephen Hemminger <sthemmin@microsoft.com>, Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>, edumazet@google.com, shiraz.saleem@intel.com, Ajay Sharma <sharmaajay@microsoft.com> Cc: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Long Li <longli@microsoft.com> Subject: [Patch v7 06/12] net: mana: Record port number in netdev Date: Mon, 17 Oct 2022 12:20:35 -0700 Message-Id: <1666034441-15424-7-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1666034441-15424-1-git-send-email-longli@linuxonhyperv.com> References: <1666034441-15424-1-git-send-email-longli@linuxonhyperv.com> Reply-To: longli@microsoft.com X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746963832201616006?= X-GMAIL-MSGID: =?utf-8?q?1746963832201616006?= |
Series |
Introduce Microsoft Azure Network Adapter (MANA) RDMA driver
|
|
Commit Message
longli@linuxonhyperv.com
Oct. 17, 2022, 7:20 p.m. UTC
From: Long Li <longli@microsoft.com> The port number is useful for user-mode application to identify this net device based on port index. Set to the correct value in ndev. Reviewed-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Long Li <longli@microsoft.com> Acked-by: Haiyang Zhang <haiyangz@microsoft.com> --- drivers/net/ethernet/microsoft/mana/mana_en.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c index 6ad4bc8cbc99..b6303a43fa7c 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_en.c +++ b/drivers/net/ethernet/microsoft/mana/mana_en.c @@ -2133,6 +2133,7 @@ static int mana_probe_port(struct mana_context *ac, int port_idx, ndev->max_mtu = ndev->mtu; ndev->min_mtu = ndev->mtu; ndev->needed_headroom = MANA_HEADROOM; + ndev->dev_port = port_idx; SET_NETDEV_DEV(ndev, gc->dev); netif_carrier_off(ndev);