From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969549AbdAIC4o (ORCPT ); Sun, 8 Jan 2017 21:56:44 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:36658 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969188AbdAIC4m (ORCPT ); Sun, 8 Jan 2017 21:56:42 -0500 From: Vivien Didelot To: Andrew Lunn Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Andrey Smirnov , Jiri Pirko Subject: Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2 In-Reply-To: <20170108233019.GA25588@lunn.ch> References: <20170108231552.26995-1-vivien.didelot@savoirfairelinux.com> <20170108233019.GA25588@lunn.ch> Date: Sun, 08 Jan 2017 21:56:19 -0500 Message-ID: <87y3ylx7os.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, Andrew Lunn writes: >> Until the printing of netdev_phys_item_id structures is fixed in >> net/core/net-sysfs.c, an external helper can be used like this: > > As Florian pointed out, this cannot be changed. It is now part of the > ABI. We have to live with it printing little endian numbers as big > endian. I totally understand the fact that ABI must not be changed. However we should be aware that the current phys_switch_id of DSA is broken. In addition to the minor issue of being hardly useable, it does not meet the requirement described in the switchdev documentation of being unique on a system. A switch ID in DSA is currently unique only to a DSA tree. A system with two disjoint switch trees will have two switches with a phys_switch_id of "00000000". > Rather than recommending something, it might be better to point to the > Free Desktop "Predictable Network Interface Names" which is what most > people will end up with, if they rename: > > https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ > > It would also be good to test on a recent systemd system and see what > happens. What names does it pick? Note that the udev rules I gave in this commit message were only there as examples of renaming DSA slave interfaces from userspace. This is orthogonal with the purpose of this patch. Thanks, Vivien