From: "Sven Schnelle" <svens@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: ifIndex allocation
Date: Tue, 16 May 2006 08:11:01 +0200 [thread overview]
Message-ID: <86r72uh53e.fsf@deprecated.bitebene.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
Hi List,
investigating a problem with an snmp software for linux, i was wondering
why the kernel allocates a new ifindex Number, even if the old one is still
available. For example, if i unload a network driver module, and reload
it, it has a different ifindex.
Looking at the function dev_new_index (line 2620 in net/core/dev.c)
there is a line 'static int ifindex'. Is there any special reason why
this variable is static, and the list is not traversed from the
beginning, so that the first free ifindex will be used?
Best regards,
Sven.
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
reply other threads:[~2006-05-16 6:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=86r72uh53e.fsf@deprecated.bitebene.org \
--to=svens@gmx.de \
--cc=linux-kernel@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