From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034507AbdAIQA0 (ORCPT ); Mon, 9 Jan 2017 11:00:26 -0500 Received: from vps0.lunn.ch ([178.209.37.122]:52359 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031387AbdAIQAW (ORCPT ); Mon, 9 Jan 2017 11:00:22 -0500 Date: Mon, 9 Jan 2017 17:00:19 +0100 From: Andrew Lunn To: Vivien Didelot Cc: Jiri Pirko , 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: <20170109160019.GF25588@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y3yk2q5e.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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. 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