From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762381AbdAIQIJ (ORCPT ); Mon, 9 Jan 2017 11:08:09 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34205 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756505AbdAIQHr (ORCPT ); Mon, 9 Jan 2017 11:07:47 -0500 Date: Mon, 9 Jan 2017 17:07:44 +0100 From: Jiri Pirko To: Andrew Lunn Cc: Vivien Didelot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Andrey Smirnov Subject: Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2 Message-ID: <20170109160744.GE1862@nanopsycho> References: <20170108231552.26995-1-vivien.didelot@savoirfairelinux.com> <20170109073236.GA1862@nanopsycho> <877f6446lp.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> <20170109151131.GC1862@nanopsycho> <87y3yk2q5e.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> <20170109160019.GF25588@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170109160019.GF25588@lunn.ch> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, Jan 09, 2017 at 05:00:19PM CET, andrew@lunn.ch wrote: >> > No. That should be unique within one switch. In mlxsw we name it "p1", >> > "p2", ... >> > >> > The final netdev names are: >> > enp3s0np1, enp3s0np2, ... >> > >mlxsw are pci devices, so it follows this convention, i think: > > * [P]ps[f][n|d] > * PCI geographical location > >Our devices are not on PCI. So they won't follow this. I've no idea >what they actually follow, since some are MDIO devices, some are SPI >devices, some are memory mapped. Got it. We just have to make sure udev names them appropriately. > >I'm not against making the label option, but i do want to better >understand what we get as a result, just to make sure it is sensible. > >Vivien, could you try a recent udev and see what happens? > > Thanks > Andrew