From: Kay Sievers <kay.sievers@vrfy.org>
To: Stefan Assmann <sassmann@redhat.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>,
netdev <netdev@vger.kernel.org>,
e1000-devel@lists.sourceforge.net, "Duyck,
Alexander H" <alexander.h.duyck@intel.com>,
gregory.v.rose@intel.com, jeffrey.t.kirsher@intel.com,
Andy Gospodarek <gospo@redhat.com>,
harald@redhat.com
Subject: Re: [PATCH] igbvf: avoid name clash between PF and VF
Date: Wed, 30 Jun 2010 13:11:33 +0200 [thread overview]
Message-ID: <AANLkTin08wA8a5nCnq-djQnTSq1g2TQ7GqYfCEBCTn9l@mail.gmail.com> (raw)
In-Reply-To: <4C2B22FD.4050705@redhat.com>
On Wed, Jun 30, 2010 at 12:57, Stefan Assmann <sassmann@redhat.com> wrote:
> On 30.06.2010 12:44, Ben Hutchings wrote:
>> On Wed, 2010-06-30 at 10:53 +0200, Stefan Assmann wrote:
>>> From: Stefan Assmann <sassmann@redhat.com>
>>>
>>> It looks like the VFs get initialized before all the PFs are. Therefore
>>> the udev mapping MAC <-> ethX (for PFs) gets screwed because the VFs
>>> may grab the ethX interface names (reserved by udev) for the PFs.
>>>
>>> Example:
>>> igb max_vfs=0
>>> eth0 Link encap:Ethernet HWaddr 00:13:20:F7:A5:9E
>>> eth1 Link encap:Ethernet HWaddr 00:13:20:F7:A5:9F
>>> eth2 Link encap:Ethernet HWaddr 00:13:20:F7:A5:A0
>>> eth3 Link encap:Ethernet HWaddr 00:13:20:F7:A5:A1
>>> igb max_vfs=1
>>> eth0 Link encap:Ethernet HWaddr 00:13:20:F7:A5:9E
>>> eth1 Link encap:Ethernet HWaddr 0A:CF:41:69:F7:A9
>>> eth2 Link encap:Ethernet HWaddr 3A:FE:20:4C:2A:3B
>>> eth3 Link encap:Ethernet HWaddr C6:C3:B1:56:C9:A4
>>> eth3_rename Link encap:Ethernet HWaddr 00:13:20:F7:A5:9F
>>> eth4 Link encap:Ethernet HWaddr 6E:8A:8A:A3:5F:69
>>> eth4_rename Link encap:Ethernet HWaddr 00:13:20:F7:A5:A0
>>> eth5_rename Link encap:Ethernet HWaddr 00:13:20:F7:A5:A1
>>>
>>> In the example above VF 0A:CF:41:69:F7:A9 grabs eth1 but udev
>>> has a rule that says eth1 should be assigned PF 00:13:20:F7:A5:9F
>>> (eth3_rename) and waits for the VF to disappear to rename eth3_rename
>>> to eth1. Unfortunately eth1 is not going to disappear.
>>> This is not a udev bug since udev doesn't create persistent rules for
>>> VFs as their MAC address changes every reboot.
>> [...]
>>
>> I think it is a bug in the udev rules: udev should rename the VFs even
>> though their names won't be persistent.
Udev writes out these configs to a rules file, and therefore can never
handle random MAC addresses, as they would just accumulate in the
rules file with a new entry at every bootup.
Stuff like this is just not supported at the moment with the rather
simple logic it has, and there is no current plan/idea, or anybody
working on changing/improving this at the moment.
Kay
next prev parent reply other threads:[~2010-06-30 11:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 8:53 [PATCH] igbvf: avoid name clash between PF and VF Stefan Assmann
2010-06-30 10:44 ` Ben Hutchings
2010-06-30 10:57 ` Stefan Assmann
2010-06-30 11:11 ` Kay Sievers [this message]
2010-06-30 13:07 ` Harald Hoyer
2010-06-30 16:59 ` Casey Leedom
2010-07-01 6:37 ` Stefan Assmann
2010-07-01 17:12 ` Casey Leedom
2010-07-02 6:37 ` Stefan Assmann
2010-07-08 13:41 ` Arnd Bergmann
2010-07-09 9:31 ` Stefan Assmann
2010-07-09 15:33 ` Rose, Gregory V
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=AANLkTin08wA8a5nCnq-djQnTSq1g2TQ7GqYfCEBCTn9l@mail.gmail.com \
--to=kay.sievers@vrfy.org \
--cc=alexander.h.duyck@intel.com \
--cc=bhutchings@solarflare.com \
--cc=e1000-devel@lists.sourceforge.net \
--cc=gospo@redhat.com \
--cc=gregory.v.rose@intel.com \
--cc=harald@redhat.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.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 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).