Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp881954rwb; Wed, 16 Nov 2022 08:53:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EAlrkH/fjjMlCwNIrJI7XJ8PxRfaDWLqbV5+d3cXwtMGYryBYt0QZBlJXvMJDZ8E/8HBL X-Received: by 2002:a05:6a00:4ac9:b0:56d:6450:9e49 with SMTP id ds9-20020a056a004ac900b0056d64509e49mr23890583pfb.54.1668617628637; Wed, 16 Nov 2022 08:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668617628; cv=none; d=google.com; s=arc-20160816; b=0GEuvoNT2MEjrnmiENcUsYisFLALbFds/xwfemEbnrA7nuD/x0fVcQdT97VnWT/ixC YF33L4c8kEbdrN9e4JQxtQd1cM20iJZM5yWmO0VYJCO8pD0O0wtlN3SV7oguhbzIustR FXDDWNOiIQP7bJcyHDtMwTh5ewlNbq5+v0dLH9pMhufwy7Uy4NbvyZpN0sIXLWY5bgGD haIz9IQmYxLHljPdpBLkaUcZNIhmxw1RulKmcTXUp+mQDlzL+yxmiNT3RAeMf4SFRZMr HsaaTOQ6H6lsLHDFZZMKAzeLnP8l1ByIKoCKdZOXgtLr2TAAAQujgmsBEKODIXPqW+Xj nRhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qXI3XjMSMCMBO9xCUGUKNUZQZSgMc4kAU9Goj4h0jRw=; b=vAxbqvALUsfftOCz9YYuGl7EwqIWo3U7Du2RETtv5pSJ7N3piY7LYKT+cGHCusMyME vp6cA65gOcYfc9dpltYCC1mDLT0CUshp/g0/OPRu1z/IOqk3KTEiYGKbbWc5qDCBM0I6 my+Ej8NmaGhM73yqgDZgjzFmYIjy+aORTijDJeKowFfVsNj4W4jX2u4bM60UuxabdiZ9 a5O44qTO6gbe417fif4MX03UPYlshx6Gc86zIL/cxgO+jx1vYUMw2qcfDh+Vqq51r9yI 0BT5Hqi1BuyBQGvo0FH8c4i7Ir0RK6Zv/s3a2SkL/7lOiUBGMRN6waljpxOUXQUWzgrL UFMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OJWI09JW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja5-20020a170902efc500b0018870678209si14085593plb.257.2022.11.16.08.53.36; Wed, 16 Nov 2022 08:53:48 -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=@gmail.com header.s=20210112 header.b=OJWI09JW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238978AbiKPQ2n (ORCPT + 92 others); Wed, 16 Nov 2022 11:28:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238421AbiKPQ2Q (ORCPT ); Wed, 16 Nov 2022 11:28:16 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D33FB5D681; Wed, 16 Nov 2022 08:22:58 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id q1-20020a17090a750100b002139ec1e999so2879027pjk.1; Wed, 16 Nov 2022 08:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qXI3XjMSMCMBO9xCUGUKNUZQZSgMc4kAU9Goj4h0jRw=; b=OJWI09JWX39bAeK/Sm8EhfJCDzi8bWX+YsRhrh7/WGGiRKFXFaTEjQfT5ftco9etWf 7yjy1Yb0FFehJApfEtNRH9lJAvP1n0IgokD5V590NswnqgcUFbWJQzVWwQUeSIQ8h0uS 1YI40mZU5rHTG8GjjnbO3kpZGPHKuscZBAwyZXkHgvGqlXKQINSfhSupaTYQMsTsMc2P hWJMPfN3L/idHuuF/X4wKUtbXNNH6Jn5IdhnLfO2lMLt9Abplv8X8uuVELfxgi6In0m3 fnesXUapK0ckNIUS6qMseZLsqbavIqXQR81kQhQJUDpld1YCLGw16WsGGMzQb374eGWN KC2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qXI3XjMSMCMBO9xCUGUKNUZQZSgMc4kAU9Goj4h0jRw=; b=AUgBUTQu7JcNyIWWq0JsbPi7AN4tciSNC8pbQi92KRIysNsTSdALT8FTlmntvjsbzf acm1mGBPKWdulXYaY+uejbaRnfP1eydyGIVK5qZJ0WC16F8DEWIl5ASc9Vpd6PW7bC91 tvLsE1GIUpQXT0tYcksfqynwApqbhrqEeQ7kog4NU0Zmgq0TBTUjBiJwEBGmFI1d7PMd puFoejP30RJ1QoyjjrYQtOFxWDPV5en/rSuBbkVctEO3ki6K6SQxP/OvJMLfH2tNriJh SXoXONmYEQZHq1TAQOSkkbHVg3L9sbqHGrzyDR7H3teQHc2uvD8h1eT/UGIfhn35otoN lGqQ== X-Gm-Message-State: ANoB5pk+I2qqvs1B58s4cEQwi7Gv/4q2ls1HwG4BQdh/CFB8mIE0dtlB GGpRWG6oDTac/n/Ux3W6AoU= X-Received: by 2002:a17:902:ba91:b0:186:c958:6cd8 with SMTP id k17-20020a170902ba9100b00186c9586cd8mr9533839pls.145.1668615777910; Wed, 16 Nov 2022 08:22:57 -0800 (PST) Received: from ?IPV6:2600:8802:b00:4a48:9801:5907:5eb0:dd5f? ([2600:8802:b00:4a48:9801:5907:5eb0:dd5f]) by smtp.gmail.com with ESMTPSA id c6-20020a170902c1c600b00186616b8fbasm12470225plc.10.2022.11.16.08.22.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Nov 2022 08:22:56 -0800 (PST) Message-ID: <013241c5-b099-279a-7496-3169197dac58@gmail.com> Date: Wed, 16 Nov 2022 08:22:56 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v3 2/3] net: dsa: use NET_NAME_PREDICTABLE for user ports with name given in DT Content-Language: en-US To: Rasmus Villemoes , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221115074356.998747-1-linux@rasmusvillemoes.dk> <20221116105205.1127843-1-linux@rasmusvillemoes.dk> <20221116105205.1127843-3-linux@rasmusvillemoes.dk> From: Florian Fainelli In-Reply-To: <20221116105205.1127843-3-linux@rasmusvillemoes.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 11/16/2022 2:52 AM, 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: Florian Fainelli -- Florian