All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Kubecek <mkubecek@suse.cz>
To: netdev@vger.kernel.org
Cc: David Ahern <dsahern@gmail.com>, Jiri Pirko <jiri@resnulli.us>,
	davem@davemloft.net, jakub.kicinski@netronome.com,
	sthemmin@microsoft.com, mlxsw@mellanox.com
Subject: Re: [RFC] longer netdev names proposal
Date: Thu, 27 Jun 2019 20:08:03 +0200	[thread overview]
Message-ID: <20190627180803.GJ27240@unicorn.suse.cz> (raw)
In-Reply-To: <26b73332-9ea0-9d2c-9185-9de522c72bb9@gmail.com>

On Thu, Jun 27, 2019 at 11:14:31AM -0600, David Ahern wrote:
> > 4) There are two cases that can happen during rename:
> >    A) The name is shorter than IFNAMSIZ
> >       -> both IFLA_NAME and IFLA_NAME_EXT would contain the same string:
> >          original IFLA_NAME     = eth0
> >          original IFLA_NAME_EXT = eth0
> >          renamed  IFLA_NAME     = enp5s0f1npf0vf1
> >          renamed  IFLA_NAME_EXT = enp5s0f1npf0vf1
> >    B) The name is longer tha IFNAMSIZ
> >       -> IFLA_NAME would contain the original one, IFLA_NAME_EXT would 
> >          contain the new one:
> >          original IFLA_NAME     = eth0
> >          original IFLA_NAME_EXT = eth0
> >          renamed  IFLA_NAME     = eth0
> >          renamed  IFLA_NAME_EXT = enp131s0f1npf0vf22
> 
> so kernel side there will be 2 names for the same net_device?

It often feels as a deficiency that unlike block devices where we can
keep one name and create multiple symlinks based on different naming
schemes, network devices can have only one name. There are aliases but
AFAIK they are only used (and can be only used) for SNMP. IMHO this
limitation is part of the mess that left us with so-called "predictable
names" which are in practice neither persistent nor predictable.

So perhaps we could introduce actual aliases (or altnames or whatever we
would call them) for network devices that could be used to identify
a network device whenever both kernel and userspace tool supports them.
Old (and ancient) tools would have to use the one canonical name limited
to current IFNAMSIZ, new tools would allow using any alias which could
be longer.

Michal

  reply	other threads:[~2019-06-27 18:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-27  9:43 [RFC] longer netdev names proposal Jiri Pirko
2019-06-27 15:29 ` Stephen Hemminger
2019-06-27 16:12   ` Dan Williams
2019-06-27 17:14 ` David Ahern
2019-06-27 18:08   ` Michal Kubecek [this message]
2019-06-27 18:23     ` Stephen Hemminger
2019-06-27 18:35       ` Andrew Lunn
2019-06-27 18:39         ` Michal Kubecek
2019-06-27 19:20           ` Stephen Hemminger
2019-06-27 19:35             ` Dan Williams
2019-06-28  7:35               ` Jiri Pirko
2019-06-28 11:12             ` Jiri Pirko
2019-06-28 11:42               ` Michal Kubecek
2019-06-28 12:25                 ` Jiri Pirko
2019-06-28 13:14               ` Andrew Lunn
2019-06-28 13:55                 ` Jiri Pirko
2019-06-28 15:44                   ` Stephen Hemminger
2019-06-28 15:56                     ` Jiri Pirko
2019-06-28 16:27                   ` Michal Kubecek
2019-06-28  7:29   ` Jiri Pirko
2019-06-27 17:48 ` Jakub Kicinski
2019-06-27 17:56   ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190627180803.GJ27240@unicorn.suse.cz \
    --to=mkubecek@suse.cz \
    --cc=davem@davemloft.net \
    --cc=dsahern@gmail.com \
    --cc=jakub.kicinski@netronome.com \
    --cc=jiri@resnulli.us \
    --cc=mlxsw@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=sthemmin@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.