Message ID | 20230620144855.288443-1-ivecera@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3738388vqr; Tue, 20 Jun 2023 08:14:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cH17nzdCDnOqirmiYUJ4+JldvniM8SJf4dRreWXP8sL2VR9S3zY+M0u9XNO29dql9aLC1 X-Received: by 2002:a17:903:2310:b0:1b3:bf70:4ed4 with SMTP id d16-20020a170903231000b001b3bf704ed4mr26217777plh.23.1687274041638; Tue, 20 Jun 2023 08:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687274041; cv=none; d=google.com; s=arc-20160816; b=Ra6yEhlvV+CT3kGaK2M6/RTRRKh75rUtcPKLNboy6uUrhn0/wejPKCSry7nl6Xj+pK HZBHNIH4N1k+0VI+bXeUsPkEbh0LOI9rC15yUIA7dLiQhzci0cMSYQaxPQ3ViAjBlZRL eH3cXt+fKvF96FGY8jOR7K5iYxNlPif3Vxj4kvQtblC8zJIfy1my9pSt8smwcGmhIlrY VZvPrTKT4EgSEz53weCC2/w5J2Z5NrWIQ4Tic43oX6AJTYZmgtyCo5YDcjzcrlSIMN56 VUhS4nM1t306Mc2jQILzzWNdxvtuSKCBZfjWEyQfF2Y8vcYfmdsWTqHLMucCaljegU3u 0OKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ELfQweYC/8dcGoZH9AqfrEpzRTMlTZCKvStu6Pf4W0w=; b=EWmjx8XEgrBqPLMnTrx7pkZFN++1MO0iOubmuUPol7XGfOS9ogp2Vqox9sgGPZkfei x6wJR4YLDIjwKND6KU98joplPy/CdxUW65ed0os09duznPkrZZCIpVJUx0K4L8rIFV3Q phMIwgNrYeFaHMgaX1qB/vKjf9Cj+CeTVrLT29fuhfoG46MlL2RF4Eg8hYd74XBMu8PH pxeIPOppg2yLPp2yDgJxgO31sDp0s7xx5sN441cNO2ZgivQyWYtxb4Y1G7w/vbE0dN+w r1ALP/Zxdk3cFmc3LJeSd2JbwZ/kyEHIwnboiR9t+rnY7NeWEswB7nMtahvwD4YuCjsM of7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f0J3Y1po; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a170903124a00b001b3e8a24232si2217992plh.186.2023.06.20.08.13.49; Tue, 20 Jun 2023 08:14:01 -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=@redhat.com header.s=mimecast20190719 header.b=f0J3Y1po; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232640AbjFTOw4 (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Tue, 20 Jun 2023 10:52:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbjFTOwy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2023 10:52:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A49701716 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2023 07:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687272722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ELfQweYC/8dcGoZH9AqfrEpzRTMlTZCKvStu6Pf4W0w=; b=f0J3Y1poW/SlPh66cw+iHLrjZo37PgCBHAXxjVBekPafLQQoz/a32OlBOllV5K7WyvEXW/ GjrM2fMY6B0HhHmR8euVJhWc00/j1DoSFdQUT0FQNKA7p9BfARRTEcQJNB2Lqb1wbMFv31 wgdzn8rGZpdeGJi9v5NtuWO0O56h628= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-119-bNBdKun_PNWBBkWTQYd94g-1; Tue, 20 Jun 2023 10:51:56 -0400 X-MC-Unique: bNBdKun_PNWBBkWTQYd94g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B55B1104459E; Tue, 20 Jun 2023 14:48:57 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.43.2.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id 895012166B26; Tue, 20 Jun 2023 14:48:56 +0000 (UTC) From: Ivan Vecera <ivecera@redhat.com> To: netdev@vger.kernel.org Cc: Michael Chan <michael.chan@broadcom.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next] bnxt_en: Link representors to PCI device Date: Tue, 20 Jun 2023 16:48:55 +0200 Message-Id: <20230620144855.288443-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1769235065223647417?= X-GMAIL-MSGID: =?utf-8?q?1769235065223647417?= |
Series |
[net-next] bnxt_en: Link representors to PCI device
|
|
Commit Message
Ivan Vecera
June 20, 2023, 2:48 p.m. UTC
Link VF representors to parent PCI device to benefit from
systemd defined naming scheme.
Without this change the representor is visible as ethN.
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, Jun 20, 2023 at 04:48:55PM +0200, Ivan Vecera wrote: > Link VF representors to parent PCI device to benefit from > systemd defined naming scheme. > > Without this change the representor is visible as ethN. > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com>
On Tue, Jun 20, 2023 at 10:00 PM Ivan Vecera <ivecera@redhat.com> wrote: > > Link VF representors to parent PCI device to benefit from > systemd defined naming scheme. > > Without this change the representor is visible as ethN. > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> Acked-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> > --- > drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c > index 2f1a1f2d2157..1467b94a6427 100644 > --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c > +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c > @@ -468,6 +468,7 @@ static void bnxt_vf_rep_netdev_init(struct bnxt *bp, struct bnxt_vf_rep *vf_rep, > struct net_device *pf_dev = bp->dev; > u16 max_mtu; > > + SET_NETDEV_DEV(dev, &bp->pdev->dev); > dev->netdev_ops = &bnxt_vf_rep_netdev_ops; > dev->ethtool_ops = &bnxt_vf_rep_ethtool_ops; > /* Just inherit all the featues of the parent PF as the VF-R > -- > 2.39.3 > >
On Tue, 20 Jun 2023 22:19:32 +0530 Sriharsha Basavapatna wrote: > This electronic communication and the information and any files transmitted > with it, or attached to it, are confidential and are intended solely for > the use of the individual or entity to whom it is addressed and may contain > information that is confidential, legally privileged, protected by privacy > laws, or otherwise restricted from disclosure to anyone else. If you are > not the intended recipient or the person responsible for delivering the > e-mail to the intended recipient, you are hereby notified that any use, > copying, distributing, dissemination, forwarding, printing, or copying of > this e-mail is strictly prohibited. If you received this e-mail in error, > please return the e-mail to the sender, delete it from your computer, and > destroy any printed copy of it. Your emails to the list must not include any legal note of this nature. I'll have to manually delete your review tag from the system.
On Tue, Jun 20, 2023 at 7:52 AM Ivan Vecera <ivecera@redhat.com> wrote: > > Link VF representors to parent PCI device to benefit from > systemd defined naming scheme. > > Without this change the representor is visible as ethN. > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> Thanks. Reviewed-by: Michael Chan <michael.chan@broadcon.com>
On Tue, Jun 20, 2023 at 10:26:21AM -0700, Michael Chan wrote: > On Tue, Jun 20, 2023 at 7:52 AM Ivan Vecera <ivecera@redhat.com> wrote: > > > > Link VF representors to parent PCI device to benefit from > > systemd defined naming scheme. > > > > Without this change the representor is visible as ethN. > > > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> > > Thanks. > > Reviewed-by: Michael Chan <michael.chan@broadcon.com> nit:) broadcon -> broadcom
On Tue, Jun 20, 2023 at 12:41 PM Simon Horman <simon.horman@corigine.com> wrote: > > On Tue, Jun 20, 2023 at 10:26:21AM -0700, Michael Chan wrote: > > On Tue, Jun 20, 2023 at 7:52 AM Ivan Vecera <ivecera@redhat.com> wrote: > > > > > > Link VF representors to parent PCI device to benefit from > > > systemd defined naming scheme. > > > > > > Without this change the representor is visible as ethN. > > > > > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> > > > > Thanks. > > > > Reviewed-by: Michael Chan <michael.chan@broadcon.com> > > nit:) broadcon -> broadcom > > Typo fixed. Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Tue, 20 Jun 2023 16:48:55 +0200 you wrote: > Link VF representors to parent PCI device to benefit from > systemd defined naming scheme. > > Without this change the representor is visible as ethN. > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> > > [...] Here is the summary with links: - [net-next] bnxt_en: Link representors to PCI device https://git.kernel.org/netdev/net-next/c/7ad7b7023fcb You are awesome, thank you!
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c index 2f1a1f2d2157..1467b94a6427 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c @@ -468,6 +468,7 @@ static void bnxt_vf_rep_netdev_init(struct bnxt *bp, struct bnxt_vf_rep *vf_rep, struct net_device *pf_dev = bp->dev; u16 max_mtu; + SET_NETDEV_DEV(dev, &bp->pdev->dev); dev->netdev_ops = &bnxt_vf_rep_netdev_ops; dev->ethtool_ops = &bnxt_vf_rep_ethtool_ops; /* Just inherit all the featues of the parent PF as the VF-R