* [PATCH] igbvf: avoid name clash between PF and VF @ 2010-06-30 8:53 Stefan Assmann 2010-06-30 10:44 ` Ben Hutchings ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Stefan Assmann @ 2010-06-30 8:53 UTC (permalink / raw) To: netdev; +Cc: e1000-devel, Andy Gospodarek, jeffrey.t.kirsher, gregory.v.rose 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. To avoid this problem we could change the kernel name for the VFs and thus avoid confusion between VFs and PFs. I've already discussed this with Alexander Duyck and Greg Rose, so far they have no objection. However this problem appears for all drivers that support PFs and VFs and thus the changes should be applied consistently to all of these drivers. Signed-off-by: Stefan Assmann <sassmann@redhat.com> --- drivers/net/igbvf/netdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 5e2b2a8..2fb665b 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c @@ -2787,7 +2787,7 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, netif_carrier_off(netdev); netif_stop_queue(netdev); - strcpy(netdev->name, "eth%d"); + strcpy(netdev->name, "veth%d"); err = register_netdev(netdev); if (err) goto err_hw_init; -- 1.6.5.2 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 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 16:59 ` Casey Leedom 2010-07-08 13:41 ` Arnd Bergmann 2 siblings, 1 reply; 12+ messages in thread From: Ben Hutchings @ 2010-06-30 10:44 UTC (permalink / raw) To: Stefan Assmann Cc: netdev, e1000-devel, Duyck, Alexander H, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek 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. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-06-30 10:44 ` Ben Hutchings @ 2010-06-30 10:57 ` Stefan Assmann 2010-06-30 11:11 ` Kay Sievers 0 siblings, 1 reply; 12+ messages in thread From: Stefan Assmann @ 2010-06-30 10:57 UTC (permalink / raw) To: Ben Hutchings Cc: e1000-devel, netdev, kay.sievers, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek, harald 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. In that case let's Cc udev people. Stefan -- Stefan Assmann | Red Hat GmbH Software Engineer | Otto-Hahn-Strasse 20, 85609 Dornach | HR: Amtsgericht Muenchen HRB 153243 | GF: Brendan Lane, Charlie Peters, sassmann at redhat.com | Michael Cunningham, Charles Cachera ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-06-30 10:57 ` Stefan Assmann @ 2010-06-30 11:11 ` Kay Sievers 2010-06-30 13:07 ` Harald Hoyer 0 siblings, 1 reply; 12+ messages in thread From: Kay Sievers @ 2010-06-30 11:11 UTC (permalink / raw) To: Stefan Assmann Cc: Ben Hutchings, netdev, e1000-devel, Duyck, Alexander H, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek, harald 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-06-30 11:11 ` Kay Sievers @ 2010-06-30 13:07 ` Harald Hoyer 0 siblings, 0 replies; 12+ messages in thread From: Harald Hoyer @ 2010-06-30 13:07 UTC (permalink / raw) To: Kay Sievers Cc: e1000-devel, netdev, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek, Ben Hutchings, Stefan Assmann On 06/30/2010 01:11 PM, Kay Sievers wrote: > 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 Solution: move away from the "eth*" namespace and use "net*" for configured interfaces. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 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 16:59 ` Casey Leedom 2010-07-01 6:37 ` Stefan Assmann 2010-07-08 13:41 ` Arnd Bergmann 2 siblings, 1 reply; 12+ messages in thread From: Casey Leedom @ 2010-06-30 16:59 UTC (permalink / raw) To: Stefan Assmann Cc: netdev, e1000-devel, Duyck, Alexander H, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek | From: Stefan Assmann <sassmann@redhat.com> | Date: Wednesday, June 30, 2010 01:53 am | | This is not a udev bug since udev doesn't create persistent rules for | VFs as their MAC address changes every reboot. | | To avoid this problem we could change the kernel name for the VFs and | thus avoid confusion between VFs and PFs. | | I've already discussed this with Alexander Duyck and Greg Rose, so far | they have no objection. However this problem appears for all drivers that | support PFs and VFs and thus the changes should be applied consistently | to all of these drivers. I'm not sure that this problem affects "all drivers which support PFs and VFs." I think that you might mean "all drivers which support PFs and VFs with non- persistent MAC addresses for the VFs." For instance, the MAC addresses associated with the new cxgb4vf VFs are persistent so, from what I understand of the scenario you outlined, I don't think that they would trigger the problem you describe. Please correct me if I've missed something. Thanks. Casey ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-06-30 16:59 ` Casey Leedom @ 2010-07-01 6:37 ` Stefan Assmann 2010-07-01 17:12 ` Casey Leedom 0 siblings, 1 reply; 12+ messages in thread From: Stefan Assmann @ 2010-07-01 6:37 UTC (permalink / raw) To: Casey Leedom Cc: netdev, e1000-devel, Duyck, Alexander H, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek On 30.06.2010 18:59, Casey Leedom wrote: > | From: Stefan Assmann <sassmann@redhat.com> > | Date: Wednesday, June 30, 2010 01:53 am > | > | This is not a udev bug since udev doesn't create persistent rules for > | VFs as their MAC address changes every reboot. > | > | To avoid this problem we could change the kernel name for the VFs and > | thus avoid confusion between VFs and PFs. > | > | I've already discussed this with Alexander Duyck and Greg Rose, so far > | they have no objection. However this problem appears for all drivers that > | support PFs and VFs and thus the changes should be applied consistently > | to all of these drivers. > > I'm not sure that this problem affects "all drivers which support PFs and VFs." > I think that you might mean "all drivers which support PFs and VFs with non- > persistent MAC addresses for the VFs." For instance, the MAC addresses > associated with the new cxgb4vf VFs are persistent so, from what I understand of > the scenario you outlined, I don't think that they would trigger the problem you > describe. Please correct me if I've missed something. Thanks. > > Casey You're correct, the problem shouldn't occur with cxgb4vf and therefore this change shouldn't be necessary. However we might consider a consistent naming scheme for VFs in all drivers. But I don't have a strong opinion about this, either way would be fine by me. Stefan -- Stefan Assmann | Red Hat GmbH Software Engineer | Otto-Hahn-Strasse 20, 85609 Dornach | HR: Amtsgericht Muenchen HRB 153243 | GF: Brendan Lane, Charlie Peters, sassmann at redhat.com | Michael Cunningham, Charles Cachera ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-07-01 6:37 ` Stefan Assmann @ 2010-07-01 17:12 ` Casey Leedom 2010-07-02 6:37 ` Stefan Assmann 0 siblings, 1 reply; 12+ messages in thread From: Casey Leedom @ 2010-07-01 17:12 UTC (permalink / raw) To: Stefan Assmann Cc: e1000-devel, netdev, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek | From: Stefan Assmann <sassmann@redhat.com> | Date: Wednesday, June 30, 2010 11:37 pm | | You're correct, the problem shouldn't occur with cxgb4vf and therefore | this change shouldn't be necessary. However we might consider a | consistent naming scheme for VFs in all drivers. But I don't have a | strong opinion about this, either way would be fine by me. Sorry, I hadn't meant to imply any criticism of your naming proposal. I was just trying to clarify when/where such a scheme might be necessary. On the naming proposal itself, it strikes me that the most common use of PCI-E SR-IOV Virtual Functions will be to export them to KVM Virtual Machines via PCI "Pass Through." So there shouldn't be any naming conflict there, right? Or is it the same scenario you described before: that the VF NIC device might be found before the normal "eth0", etc. withing the Virtual Machine? In any case, I don't really have any feelings one way or the other about interface naming. As I mentioned before, the cxgb4vf driver will end up with persistent MAC addresses so all the normal interface management stuff will work normally (naming, DHCP, etc.) Casey ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-07-01 17:12 ` Casey Leedom @ 2010-07-02 6:37 ` Stefan Assmann 0 siblings, 0 replies; 12+ messages in thread From: Stefan Assmann @ 2010-07-02 6:37 UTC (permalink / raw) To: Casey Leedom Cc: e1000-devel, netdev, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek On 01.07.2010 19:12, Casey Leedom wrote: > | From: Stefan Assmann <sassmann@redhat.com> > | Date: Wednesday, June 30, 2010 11:37 pm > | > | You're correct, the problem shouldn't occur with cxgb4vf and therefore > | this change shouldn't be necessary. However we might consider a > | consistent naming scheme for VFs in all drivers. But I don't have a > | strong opinion about this, either way would be fine by me. > > Sorry, I hadn't meant to imply any criticism of your naming proposal. I was > just trying to clarify when/where such a scheme might be necessary. Sure, that's the reason why we're discussing this here. > > On the naming proposal itself, it strikes me that the most common use of PCI-E > SR-IOV Virtual Functions will be to export them to KVM Virtual Machines via PCI > "Pass Through." So there shouldn't be any naming conflict there, right? Or is > it the same scenario you described before: that the VF NIC device might be found > before the normal "eth0", etc. withing the Virtual Machine? I haven't had a scenario were passing multiple VF NICs to the guest was necessary. In theory it might happen there as well, if you have multiple NICs (with persistent and random MACs) in the guest. But usually you just have a single VF inside the guest and then you're fine. The scenario that I'm targeting is on the host side mostly. Stefan -- Stefan Assmann | Red Hat GmbH Software Engineer | Otto-Hahn-Strasse 20, 85609 Dornach | HR: Amtsgericht Muenchen HRB 153243 | GF: Brendan Lane, Charlie Peters, sassmann at redhat.com | Michael Cunningham, Charles Cachera ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 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 16:59 ` Casey Leedom @ 2010-07-08 13:41 ` Arnd Bergmann 2010-07-09 9:31 ` Stefan Assmann 2 siblings, 1 reply; 12+ messages in thread From: Arnd Bergmann @ 2010-07-08 13:41 UTC (permalink / raw) To: Stefan Assmann Cc: netdev, e1000-devel, Duyck, Alexander H, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek On Wednesday 30 June 2010, Stefan Assmann wrote: > diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c > index 5e2b2a8..2fb665b 100644 > --- a/drivers/net/igbvf/netdev.c > +++ b/drivers/net/igbvf/netdev.c > @@ -2787,7 +2787,7 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, > netif_carrier_off(netdev); > netif_stop_queue(netdev); > > - strcpy(netdev->name, "eth%d"); > + strcpy(netdev->name, "veth%d"); > err = register_netdev(netdev); > if (err) > goto err_hw_init; Note that 'veth' is the name used for a virtual ethernet pair by drivers/net/veth.c. If a variant of your patch gets applied, it would probably be useful to use a different naming scheme to avoid confusion with the veth driver. Arnd ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] igbvf: avoid name clash between PF and VF 2010-07-08 13:41 ` Arnd Bergmann @ 2010-07-09 9:31 ` Stefan Assmann 2010-07-09 15:33 ` Rose, Gregory V 0 siblings, 1 reply; 12+ messages in thread From: Stefan Assmann @ 2010-07-09 9:31 UTC (permalink / raw) To: Arnd Bergmann Cc: e1000-devel, netdev, gregory.v.rose, jeffrey.t.kirsher, Andy Gospodarek On 08.07.2010 15:41, Arnd Bergmann wrote: > On Wednesday 30 June 2010, Stefan Assmann wrote: >> diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c >> index 5e2b2a8..2fb665b 100644 >> --- a/drivers/net/igbvf/netdev.c >> +++ b/drivers/net/igbvf/netdev.c >> @@ -2787,7 +2787,7 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, >> netif_carrier_off(netdev); >> netif_stop_queue(netdev); >> >> - strcpy(netdev->name, "eth%d"); >> + strcpy(netdev->name, "veth%d"); >> err = register_netdev(netdev); >> if (err) >> goto err_hw_init; > > Note that 'veth' is the name used for a virtual ethernet pair by > drivers/net/veth.c. If a variant of your patch gets applied, it would > probably be useful to use a different naming scheme to avoid confusion > with the veth driver. Good point! Greg suggested vfeth, that should be more descriptive and unique. Stefan --- diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 5e2b2a8..4d02af8 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c @@ -2787,7 +2787,7 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, netif_carrier_off(netdev); netif_stop_queue(netdev); - strcpy(netdev->name, "eth%d"); + strcpy(netdev->name, "vfeth%d"); err = register_netdev(netdev); if (err) goto err_hw_init; ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply related [flat|nested] 12+ messages in thread
* RE: [PATCH] igbvf: avoid name clash between PF and VF 2010-07-09 9:31 ` Stefan Assmann @ 2010-07-09 15:33 ` Rose, Gregory V 0 siblings, 0 replies; 12+ messages in thread From: Rose, Gregory V @ 2010-07-09 15:33 UTC (permalink / raw) To: Stefan Assmann, Arnd Bergmann Cc: netdev, e1000-devel@lists.sourceforge.net, Duyck, Alexander H, Kirsher, Jeffrey T, Andy Gospodarek >-----Original Message----- >From: Stefan Assmann [mailto:sassmann@redhat.com] >Sent: Friday, July 09, 2010 2:32 AM >To: Arnd Bergmann >Cc: netdev; e1000-devel@lists.sourceforge.net; Duyck, Alexander H; Rose, >Gregory V; Kirsher, Jeffrey T; Andy Gospodarek >Subject: Re: [PATCH] igbvf: avoid name clash between PF and VF > >On 08.07.2010 15:41, Arnd Bergmann wrote: >> On Wednesday 30 June 2010, Stefan Assmann wrote: >>> diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c >>> index 5e2b2a8..2fb665b 100644 >>> --- a/drivers/net/igbvf/netdev.c >>> +++ b/drivers/net/igbvf/netdev.c >>> @@ -2787,7 +2787,7 @@ static int __devinit igbvf_probe(struct pci_dev >*pdev, >>> netif_carrier_off(netdev); >>> netif_stop_queue(netdev); >>> >>> - strcpy(netdev->name, "eth%d"); >>> + strcpy(netdev->name, "veth%d"); >>> err = register_netdev(netdev); >>> if (err) >>> goto err_hw_init; >> >> Note that 'veth' is the name used for a virtual ethernet pair by >> drivers/net/veth.c. If a variant of your patch gets applied, it would >> probably be useful to use a different naming scheme to avoid confusion >> with the veth driver. > >Good point! >Greg suggested vfeth, that should be more descriptive and unique. > > Stefan >--- >diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c >index 5e2b2a8..4d02af8 100644 >--- a/drivers/net/igbvf/netdev.c >+++ b/drivers/net/igbvf/netdev.c >@@ -2787,7 +2787,7 @@ static int __devinit igbvf_probe(struct pci_dev >*pdev, > netif_carrier_off(netdev); > netif_stop_queue(netdev); > >- strcpy(netdev->name, "eth%d"); >+ strcpy(netdev->name, "vfeth%d"); > err = register_netdev(netdev); > if (err) > goto err_hw_init; Acked-by: Greg Rose <gregory.v.rose@intel.com> ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-07-09 15:33 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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).