linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Domsch <Matt_Domsch@dell.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: net device renaming 2-step, IFNAMSIZ limit
Date: Wed, 09 Feb 2011 16:21:53 +0000	[thread overview]
Message-ID: <20110209162153.GA29964@auslistsprd01.us.dell.com> (raw)
In-Reply-To: <20101129032908.GA29904@auslistsprd01.us.dell.com>


> On Tue, Feb 8, 2011 at 6:42 AM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> > If biosdevname ever needs a two-step renaming, there is something
> > wrong. Two-step renaming happens only for conflicting names. We do not
> > want to support renaming in conflicting namespaces anymore.

biosdevname by default uses --policy=physical, which uses the emN and
pci<slot>p<port>_<vf> convention.  I believed (incorrectly)
that all renames were 2-step, thus going from eth100 -> pci4p1_63
could overflow.  Since only renames in the same space use the 2-step
process, then this isn't as much of a concern.

biosdevname does have --policy=all_ethN, for those who really love
their ethN convention.  It's not default, and it's not in the udev
rules file to use it, but it would be an option.  As long
as we don't have >10k devices, we're ok.  


> > Also, we can not use hashes without checking for conflicts, it's
> > unlikely to happen, but we just don't do such hacks. Just use the
> > ifindex or whatever fits to be correct.

I do like the idea of using ifindex here instead of a hash, just
because we allow any arbitrary-length name to be used in a rename
rule.  biosdevname itself won't exceed the length, but if someone had
a rule that would move from eth12345 to eth67890, it would trigger.

Thanks,
Matt

-- 
Matt Domsch
Technology Strategist
Dell | Office of the CTO

      parent reply	other threads:[~2011-02-09 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29  3:29 net device renaming 2-step, IFNAMSIZ limit Matt Domsch
2010-12-07  2:45 ` Piter PUNK
2010-12-07  3:54 ` Matt Domsch
2011-01-29 15:23 ` Matt Domsch
2011-02-08 14:42 ` Kay Sievers
2011-02-08 18:07 ` Scott James Remnant
2011-02-09 16:21 ` Matt Domsch [this message]

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=20110209162153.GA29964@auslistsprd01.us.dell.com \
    --to=matt_domsch@dell.com \
    --cc=linux-hotplug@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).