Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp632608rwb; Wed, 16 Nov 2022 05:49:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ktoc57zekDEkx2W+1h7XCC/rwcxoqcnpD8tt6vi7QSDbe1SOXrO5g88ShoE3Z8gNB2S2C X-Received: by 2002:a17:906:24cb:b0:78d:4167:cf08 with SMTP id f11-20020a17090624cb00b0078d4167cf08mr18059250ejb.337.1668606550596; Wed, 16 Nov 2022 05:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668606550; cv=none; d=google.com; s=arc-20160816; b=lyKkYLE7/Oq/ys48EPwb+JPdsbTuhcIO95BiZzHO1v9XbJBRu6yz1Q6ea2Dw2KnT9K A/2+b604ofooLX6CGerd26WT4zPKuczSPHTwr7Eaz2nxAMzrmFNUSZNH47BKCL1yxzRc 7dMX8pZm4KChBRIj+oT7nuR5YNcUSCuNKDC7ltcoVWGrNeq7mU9qO8QFEol4QWAJUdqA /VrPMO1unTCVBLhbAQLNUKce7dUatWthaft0+oPKsyJ+ueoYAIzQUxlhnvb79e0BbOaX 058ovD8SZe28n5WKsB2ktPWOrXW7DYidi0F4IBoewZT1CsXtC6X2lj1GPjEukEX9kvei LJ+Q== 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=tdYQjrHuPTnZ+b2rbFm8ma7ka8KQeTwqY1MzgMyZJek=; b=mKk8ActvXHSBj71rA4b7hMKa9QG+s63xzj8sI8BBogpFXzOucFpon6hH7H7LP/9W6q 4+7+mnZV9IiLh1L7lUtCapNelKHPKai7iHUsHFw6u9O1mqBWvk3CvONGqXD/5af+4BKZ wd5zv2h6RBll/iboPjjBtD9cfeJMtarsMDfHaIVLAmWpA9B9dfjE954GvlbIDVrnvsOg MA8dZ3CjD4GF8yM0J8gSC4IInRlq3UmX6AJ6ESdpsgMcH0PgVHyR9c275me7gbJpcCG6 8JiHdYBRZ1QW0DkR4+937FTQ5zHUK1SRprRIHMzi247g/hnp8H5Zn+QDsxSWhAqUyaLh b7ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eGp+bnP8; 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 hq10-20020a1709073f0a00b007adbf64b5f4si14819496ejc.768.2022.11.16.05.48.48; Wed, 16 Nov 2022 05:49:10 -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=eGp+bnP8; 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 S232911AbiKPNlv (ORCPT + 91 others); Wed, 16 Nov 2022 08:41:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237884AbiKPNll (ORCPT ); Wed, 16 Nov 2022 08:41:41 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ACF81E3FC; Wed, 16 Nov 2022 05:41:40 -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=tdYQjrHuPTnZ+b2rbFm8ma7ka8KQeTwqY1MzgMyZJek=; b=eGp+bnP82D3YVfldKwUDMhxqhd KXuhDF/g7fPDia59s5hS5ObQl9hrwD80Z86dhKTO/h4XdtBXYuDSgoCAwXbefnV5NmiKKr/iVFvJe oN4SrJFs2DbHFqX9CoOCM6LsdUK6ZRhqFRnNy5rp5Zt3eZoXnBF6S11Tq1pRo1uiqdvU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ovIfW-002ZUr-HD; Wed, 16 Nov 2022 14:41:34 +0100 Date: Wed, 16 Nov 2022 14:41:34 +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 2/3] net: dsa: use NET_NAME_PREDICTABLE for user ports with name given in DT Message-ID: References: <20221115074356.998747-1-linux@rasmusvillemoes.dk> <20221116105205.1127843-1-linux@rasmusvillemoes.dk> <20221116105205.1127843-3-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116105205.1127843-3-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:03AM +0100, Rasmus Villemoes wrote: > When a user port has a label in device tree, the corresponding > netdevice is, to quote include/uapi/linux/netdevice.h, "predictably > named by the kernel". This is also explicitly one of the intended use > cases for NET_NAME_PREDICTABLE, quoting 685343fc3ba6 ("net: add > name_assign_type netdev attribute"): > > NET_NAME_PREDICTABLE: > The ifname has been assigned by the kernel in a predictable way > [...] Examples include [...] and names deduced from hardware > properties (including being given explicitly by the firmware). > > Expose that information properly for the benefit of userspace tools > that make decisions based on the name_assign_type attribute, > e.g. a systemd-udev rule with "kernel" in NamePolicy. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Andrew Lunn Andrew