From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C47A5C761AF for ; Thu, 30 Mar 2023 03:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjC3D62 (ORCPT ); Wed, 29 Mar 2023 23:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjC3D60 (ORCPT ); Wed, 29 Mar 2023 23:58:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C08B110A for ; Wed, 29 Mar 2023 20:58:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 49AD461ED2 for ; Thu, 30 Mar 2023 03:58:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56762C433D2; Thu, 30 Mar 2023 03:58:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680148704; bh=QcyJGithp2yLIazCp1BTXMRLKjHyP0ZL6MZWaFSxtIw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gVYNariDaQvTUjOx0an7vNpRhi4MudfZvLKY0pu1tniltB7kx25vfKOEoH94ETokk 5/YgCD7MjM7ROSxXq/jRGj2mQ6BQ+pYSpR6eJyqGsR2lctY/srF25AXOy0HxX013HA nblC4JhUuMRvqkNYpFSY0oFnETBGP0uOU0BYDEogSmox9qaeYEAobbKVpd1JWrWvvy bz099L0JpcKy7BJLqgALxCtM1H6/Emm0Tob4btpyUHU3EWmd3pyxgtlfRK05G7CBSO OoMGsLj9rG5CztfdhdI0zN0DHLMMg6hTg+00KDwTfJ1H4Wz1tt8sCjT+IPMFBHGC6F kMxyITAABDAaw== Date: Wed, 29 Mar 2023 20:58:23 -0700 From: Jakub Kicinski To: Yinjun Zhang Cc: Louis Peens , David Miller , Paolo Abeni , Simon Horman , "netdev@vger.kernel.org" , oss-drivers Subject: Re: [PATCH net-next 1/2] nfp: initialize netdev's dev_port with correct id Message-ID: <20230329205823.6737512b@kernel.org> In-Reply-To: References: <20230329144548.66708-1-louis.peens@corigine.com> <20230329144548.66708-2-louis.peens@corigine.com> <20230329122227.1d662169@kernel.org> <20230329193831.2eb48e3c@kernel.org> <20230329201029.0fff8d9d@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 30 Mar 2023 03:27:56 +0000 Yinjun Zhang wrote: > > > Yes, phys_port_name is still there. But some users prefer to use dev_port. > > > I don't add this new attr, it's already existed since > > > 3f85944fe207 ("net: Add sysfs file for port number"). > > > I just make the attr's value correct. > > > > You're using a different ID than phys_port_name, as far as I can tell :( > > When the port is not split will id == label, always? > > You got the point. We create netdevs according to the port sequence in > eth_table from management firmware. I think M-FW will make sure > the sequence matches the port label id. Alright, then, with an improved commit message this patch should be fine.