Re: [bug, 2.6.24-rc1] sysfs: duplicate filename 'eth0' can not be created

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rick Jones
Date: Monday, October 29, 2007 - 2:49 pm

Jeff Garzik wrote:

Ingo -

You are not alone.  I see very similar stuff when I boot a system with a large 
number of interfaces.  At first it was almost every interface generating the 
messages or ones like them, but now with a patch applied (might have come via Jeff?)

hpcpc103:~/linux-2.6.24-rc1# more dev_change_name.patch
--- a/net/core/dev.c    2007-10-24 06:01:31.000000000 -0700
+++ b/net/core/dev.c    2007-10-24 06:41:18.000000000 -0700
@@ -885,6 +885,9 @@ int dev_change_name(struct net_device *d
         if (!dev_valid_name(newname))
                 return -EINVAL;

+       if (strncmp(newname, dev->name, IFNAMSIZ) == 0)
+               return 0;
+
         memcpy(oldname, dev->name, IFNAMSIZ);

         if (strchr(newname, '%')) {

I see far fewer of them:

GSI 60 (level, low) -> CPU 6 (0x0c00) vector 70
sysfs: duplicate filename 'eth6_rename' can not be created
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()
Call Trace:
  [<a0000001000137c0>] show_stack+0x40/0xa0
                                 sp=e000000159abfb90 bsp=e000000159ab8f48
  [<a000000100013850>] dump_stack+0x30/0x60
                                 sp=e000000159abfd60 bsp=e000000159ab8f30
  [<a000000100206d10>] sysfs_add_one+0xb0/0x240
                                 sp=e000000159abfd60 bsp=e000000159ab8f00
  [<a0000001002092c0>] sysfs_create_link+0x200/0x300
                                 sp=e000000159abfd60 bsp=e000000159ab8ed0
  [<a000000100396bb0>] device_rename+0x2d0/0x380
                                 sp=e000000159abfd80 bsp=e000000159ab8e78
  [<a00000010040b690>] dev_change_name+0x2b0/0x4a0
                                 sp=e000000159abfd80 bsp=e000000159ab8e30
  [<a00000010040bd80>] dev_ifsioc+0x500/0x6c0
                                 sp=e000000159abfd90 bsp=e000000159ab8e00
  [<a00000010040cda0>] dev_ioctl+0xe60/0x1160
                                 sp=e000000159abfda0 bsp=e000000159ab8da0
  [<a0000001003ea7f0>] sock_ioctl+0x610/0x660
                                 sp=e000000159abfe10 bsp=e000000159ab8d68
  [<a000000100170650>] do_ioctl+0x90/0x180
                                 sp=e000000159abfe10 bsp=e000000159ab8d28
  [<a000000100170fa0>] vfs_ioctl+0x860/0x8c0
                                 sp=e000000159abfe10 bsp=e000000159ab8ce0
  [<a0000001001710a0>] sys_ioctl+0xa0/0x120
                                 sp=e000000159abfe20 bsp=e000000159ab8c60
  [<a00000010000af20>] ia64_ret_from_syscall+0x0/0x20
                                 sp=e000000159abfe30 bsp=e000000159ab8c60
  [<a000000000010620>] __start_ivt_text+0xffffffff00010620/0x400
                                 sp=e000000159ac0000 bsp=e000000159ab8c60
:
net eth6_rename: device_rename: sysfs_create_symlink failed (-17)
sysfs: duplicate filename 'eth6' can not be created
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()

...
net eth6: device_rename: sysfs_create_symlink failed (-17)
udev: renamed network interface eth7 to eth6
sysfs: duplicate filename 'eth7' can not be created
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()

...

                                 sp=e000000159ac0000 bsp=e000000159ab8c60
net eth7: device_rename: sysfs_create_symlink failed (-17)
udev: renamed network interface eth6_rename to eth7
ACPI: PCI Interrupt 0000:14:01.0[A] -> GSI 60 (level, low) -> IRQ 70


Interestingly (?) when I look at my eth7 interface via ethtool I see:

hpcpc103:~/linux-2.6.24-rc1# ethtool -i eth7
driver: Neterion
version: 2.0.26.5
firmware-version:
bus-info: 0000:0f:01.0

but if I look for it in /proc/interrupts I don't see it:

hpcpc103:~/linux-2.6.24-rc1# cat /proc/interrupts | grep eth7
hpcpc103:~/linux-2.6.24-rc1#

and if I look at all of /proc/interrupts:

hpcpc103:~# cat /proc/interrupts
            CPU0       CPU1       CPU2       CPU3       CPU4       CPU5 
CPU6       CPU7
  28:         12         12         12         12         12         12 
12         12          LSAPIC  cpe_poll
  29:          0          0          0          0          0          0 
  0          0          LSAPIC  cmc_poll
  31:          0          0          0          0          0          0 
  0          0          LSAPIC  cmc_hndlr
  48:          0          0          0          0          0          0 
  0          0  IO-SAPIC-level  acpi
  50:          0          0       1065          0          0          0 
  0          0  IO-SAPIC-level  serial
  52:          0          0          0          0        328          0 
  0          0  IO-SAPIC-level  ehci_hcd:usb1
  54:          0          0          0          0          0          0 
32          0  IO-SAPIC-level  ohci_hcd:usb2
  57:          0          0          0          0          0          0 
  0          0  IO-SAPIC-level  ohci_hcd:usb3
  60:          0          0          0          0      11945          0 
  0          0  IO-SAPIC-level  eth6
  61:          0          0          0          0          0     101072 
  0          0  IO-SAPIC-level  eth6 Neterion 10 Gigabit Ethernet-SR Low Profile 
PCI-X 2.0 DDR A
  70:          0          0          0          0          0          0 
25580          0  IO-SAPIC-level  cciss0
232:          0          0          0          0          0          0 
0          0          LSAPIC  mca_rdzv
238:          0          0          0          0          0          0 
0          0          LSAPIC  perfmon
239:    2376190    2376079    2376009    2376005    2376127    2376121 
2375918    2373020          LSAPIC  timer
240:          0          0          0          0          0          0 
0          0          LSAPIC  mca_wkup
252:          0          0          0          0          0          0 
0          0          LSAPIC  tlb_flush
253:        586        255        449        315        448        982 
497        702          LSAPIC  resched
254:        123        162        161        166        168        154 
109        140          LSAPIC  IPI
ERR:          0

it appears as eth6.

rick jones
...



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [bug, 2.6.24-rc1] sysfs: duplicate filename 'eth0' can ..., Stephen Hemminger, (Mon Oct 29, 2:40 pm)
Re: [bug, 2.6.24-rc1] sysfs: duplicate filename 'eth0' can ..., Rick Jones, (Mon Oct 29, 2:49 pm)