From: Jiri Pirko <jiri@resnulli.us>
To: Michal Kubecek <mkubecek@suse.cz>
Cc: netdev@vger.kernel.org,
Stephen Hemminger <stephen@networkplumber.org>,
Andrew Lunn <andrew@lunn.ch>, David Ahern <dsahern@gmail.com>,
davem@davemloft.net, jakub.kicinski@netronome.com,
mlxsw@mellanox.com
Subject: Re: [RFC] longer netdev names proposal
Date: Fri, 28 Jun 2019 14:25:26 +0200 [thread overview]
Message-ID: <20190628122526.GA2304@nanopsycho> (raw)
In-Reply-To: <20190628114212.GE29149@unicorn.suse.cz>
Fri, Jun 28, 2019 at 01:42:12PM CEST, mkubecek@suse.cz wrote:
>On Fri, Jun 28, 2019 at 01:12:16PM +0200, Jiri Pirko wrote:
>>
>> I think that it is desired for kernel to work with "real alias" as a
>> handle. Userspace could either pass ifindex, IFLA_NAME or "real alias".
>> Userspace mapping like you did here might be perhaps okay for iproute2,
>> but I think that we need something and easy to use for all.
>>
>> Let's call it "altname". Get would return:
>>
>> IFLA_NAME eth0
>> IFLA_ALT_NAME_LIST
>> IFLA_ALT_NAME eth0
>> IFLA_ALT_NAME somethingelse
>> IFLA_ALT_NAME somenamethatisreallylong
>>
>> then userspace would pass with a request (get/set/del):
>> IFLA_ALT_NAME eth0/somethingelse/somenamethatisreallylong
>> or
>> IFLA_NAME eth0 if it is talking with older kernel
>>
>> Then following would do exactly the same:
>> ip link set eth0 addr 11:22:33:44:55:66
>> ip link set somethingelse addr 11:22:33:44:55:66
>> ip link set somenamethatisreallylong addr 11:22:33:44:55:66
>
>Yes, this sounds nice.
>
>> We would have to figure out the iproute2 iface to add/del altnames:
>> ip link add eth0 altname somethingelse
>> ip link del eth0 altname somethingelse
>> this might be also:
>> ip link del somethingelse altname somethingelse
>
>This would be a bit confusing, IMHO, as so far
>
> ip link add $name ...
>
>always means we want to add or delete new device $name which would not
>be the case here. How about the other way around:
>
> ip link add somethingelse altname_for eth0
>
>(preferrably with a better keyword than "altname_for" :-) ). Or maybe
>
> ip altname add somethingelse dev eth0
> ip altname del somethingelse dev eth0
Yeah, I like this.
Let's see how it will work during the implementation.
next prev parent reply other threads:[~2019-06-28 12:25 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
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 [this message]
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=20190628122526.GA2304@nanopsycho \
--to=jiri@resnulli.us \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=jakub.kicinski@netronome.com \
--cc=mkubecek@suse.cz \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox