Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp657201rwb; Wed, 16 Nov 2022 06:07:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/HG6Ci6HCPFHmmXAUyVj4ry/I3zTgMN+DJSZqmtG+qtvqdYu8FDe/eBU+bW7m9PaBcFrq X-Received: by 2002:a17:90a:3d0e:b0:212:fb7e:54c7 with SMTP id h14-20020a17090a3d0e00b00212fb7e54c7mr3901844pjc.124.1668607635298; Wed, 16 Nov 2022 06:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668607635; cv=none; d=google.com; s=arc-20160816; b=KplU5USLh5ECvOOwYEyormSxnmjW5x0D4basFt1zCcb2YQzDvPv0Khy96AX9NoH2NL IJYc2WSGIA3kpSQWkl+xR3pXWo55kHqxuGfC0FiG9Ppn7M0PCn+Ve6Q+nVmkcalhm3Bc ryht/d3ZS00UbNTcOex7PzOe4IKQdCxXCEjuDmZzi5/T/o7EcwWnj0YFKdpAKkpc3i1J RRDOiKbrP+SFajM2Y4YSCt+8kZu37xfUtRFcII90jkum7M/JIVJpIFTrLNpoGbLwtz1C 9hgsnhU48Z8jfYwpCxYrcpkpk5Hp4+haLcNP0S/RwLGq+74IFeS4QR4PS2zJnfPyvhMe 0w6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vOhf5Vs6Hr0hFLYE0bv9EyZDIkrIxvZ7t0QosSy46mc=; b=R3cuvBs27MVaW20WKEpjc3EOchY/t6oLM8tPNyXwk/fcH4U7KIMTyB2+5tuGa257Us EFZm5iq41dv5cOGuJNSq5oYtfb9luwDyS+TlQscZiphPE9MFTEcepqkyM5PpKPywM6Op lcXzPpZcj632NXJLWUFilrfkyZweg7fuW7vIQ/U3SL28SNtifejujP8paXRNRasfWJkf 3cB+hxoHK5Y964b7gGSUbKNe+XKYgxtl4IYSGvqJTWj83cPN85Pd3cllI58wFAaqGtzn xug5bkZ5uicnVTF26CDzAM2VZgX3ddyAjVz4XpbV7Aakyr41k+vKaStvz5oOTpuAdsEQ 4+9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kZE4gqPI; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170902d58c00b0017f7faef235si15299261plh.148.2022.11.16.06.06.34; Wed, 16 Nov 2022 06:07:15 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=kZE4gqPI; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbiKPNmV (ORCPT + 91 others); Wed, 16 Nov 2022 08:42:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233701AbiKPNmO (ORCPT ); Wed, 16 Nov 2022 08:42:14 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3EF643AD1; Wed, 16 Nov 2022 05:42:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=vOhf5Vs6Hr0hFLYE0bv9EyZDIkrIxvZ7t0QosSy46mc=; b=kZE4gqPIYo/A4YjNtK5dgxelvc bjDr5FzQ385E0lRz8s9S9mn1/ziD2ZOPIaTIMDyYsZxWFL2obLV7zSWqbxV86H8PPuK1bQsd1gaBo ifyn0eLn93N16vKL9mKeSXzFYjpm8bgYnlW6rX+nwKtgtMsSb5zI5Wb9/18Q3/XiqOyM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ovIfy-002ZVJ-2K; Wed, 16 Nov 2022 14:42:02 +0100 Date: Wed, 16 Nov 2022 14:42:02 +0100 From: Andrew Lunn To: Rasmus Villemoes Cc: Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] net: dsa: set name_assign_type to NET_NAME_ENUM for enumerated user ports Message-ID: References: <20221115074356.998747-1-linux@rasmusvillemoes.dk> <20221116105205.1127843-1-linux@rasmusvillemoes.dk> <20221116105205.1127843-4-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116105205.1127843-4-linux@rasmusvillemoes.dk> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2022 at 11:52:04AM +0100, Rasmus Villemoes wrote: > When a user port does not have a label in device tree, and we thus > fall back to the eth%d scheme, the proper constant to use is > NET_NAME_ENUM. See also commit e9f656b7a214 ("net: ethernet: set > default assignment identifier to NET_NAME_ENUM"), which in turn quoted > commit 685343fc3ba6 ("net: add name_assign_type netdev attribute"): > > ... when the kernel has given the interface a name using global > device enumeration based on order of discovery (ethX, wlanY, etc) > ... are labelled NET_NAME_ENUM. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Andrew Lunn Andrew