From: Maximilian Wilhelm <max@rfc2324.org>
To: netdev@vger.kernel.org
Subject: Re: [RFC] Stable interface index option
Date: Tue, 1 Dec 2015 23:43:25 +0100 [thread overview]
Message-ID: <20151201224325.GD14984@principal.rfc2324.org> (raw)
In-Reply-To: <1449001579.3817695.455078657.261B9C10@webmail.messagingengine.com>
Anno domini 2015 Hannes Frederic Sowa scripsit:
> On Tue, Dec 1, 2015, at 20:27, David Miller wrote:
> > From: Hannes Frederic Sowa <hannes@stressinduktion.org>
> > Date: Tue, 01 Dec 2015 17:02:23 +0100
> >
> > > On Tue, Dec 1, 2015, at 16:50, Maximilian Wilhelm wrote:
> > >> > I'm not sure I understand how this would work- are we going to
> > >> > pin down the ifindex for some subset of interfaces?
> > >>
> > >> I'm not sure what your idea is, but I guess we might mean the same
> > >> thing:
> > >>
> > >> What I have in mind is that the user can supply a list of (ifname ->
> > >> ifindex) entries via a sysfs/procfs interface and if such a list is
> > >> present, the kernel will search the list for every ifname which is
> > >> registered and check if there is an entry. If there is, the ifindex
> > >> for this entry is used. If there is no entry found for the given
> > >> ifname, the usual algorithm is used (therefore inherently providing
> > >> backward compatibility).
> > >
> > > Sorry to ask because I don't like this feature at all. There was a lot
> > > of work on stable interface names. Why do you need stable ifindexes,
> > > which were never meant to be stable for a longer amount of time?
> >
> > Because all the remote SNMP tools work with interface indexes, not names.
That's indeed true and the underlying problem which brought us to this
idea.
> I know, but it should be terribly simply to patch SNMP tools to even
> store the table of ifindex <-> name mappings persistently on the disk
> and thus completely avoid this issue. Even though they can check on
> interfaces if they have the same characteristics, e.g. tunnel to the
> same destinations etc. Those are all policies which user space should
> handle.
How should net-snmp handle cases where new interfaces come up on old
and now unused numbers? What should it report? That would escalate the
problem a lot IMHO.
> I agree it would make life much easier for user space if the kernel
> would keep the ifindex stable over reboots etc. but for a much higher
> costs at kernel maintenance.
What would that cost be in the implementation I sketched before?
I don't quite see what the higher cost would be. I currently can
manually set an ifindex of my choosing for newly created GRE tunnels,
vlan interfaces and the like. So what would be the difference of
having the optional ability to push some of these predefined ifindexes
into the kernel and don't bother while creating the interface and
having the same outcome? Same effect but easier to use once set up.
Regarding the performance issues raised before the same question
applies: What's the difference if I create some / a lot of interfaces
with sparse ifindexes by using "ip link add foo index 1234" or by
having a list within the kernel.
I still consider this a feature worth and simple enough to implement
which would serve as a great option for people with such usage
scenarios.
Best
Max
--
"Does is bother me, that people hurt others, because they are to weak to face the truth? Yeah. Sorry 'bout that."
-- Thirteen, House M.D.
next prev parent reply other threads:[~2015-12-01 22:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 12:04 [RFC] Stable interface index option Maximilian Wilhelm
2015-12-01 15:34 ` Sowmini Varadhan
2015-12-01 15:50 ` Maximilian Wilhelm
2015-12-01 16:02 ` Hannes Frederic Sowa
2015-12-01 16:06 ` Stephen Hemminger
2015-12-01 19:28 ` David Miller
2015-12-01 20:20 ` Stephen Hemminger
2015-12-01 20:57 ` David Miller
2015-12-01 21:06 ` Sowmini Varadhan
2015-12-01 21:14 ` Hannes Frederic Sowa
2015-12-01 21:44 ` Stephen Hemminger
2015-12-01 21:54 ` Hannes Frederic Sowa
2015-12-01 22:31 ` Stephen Hemminger
2015-12-01 19:27 ` David Miller
2015-12-01 20:26 ` Hannes Frederic Sowa
2015-12-01 22:43 ` Maximilian Wilhelm [this message]
2015-12-01 23:58 ` Hannes Frederic Sowa
2015-12-02 1:41 ` Andrew Lunn
2015-12-02 11:03 ` Marcelo Ricardo Leitner
2015-12-01 16:11 ` Sowmini Varadhan
-- strict thread matches above, loose matches on Subject: below --
2015-12-01 16:10 Maximilian Wilhelm
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=20151201224325.GD14984@principal.rfc2324.org \
--to=max@rfc2324.org \
--cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).