[Bug 247584] New: dhcpcd sends DISCOVER before interface is up
https://bugzilla.novell.com/show_bug.cgi?id=247584 Summary: dhcpcd sends DISCOVER before interface is up Product: openSUSE 10.2 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: luizluca@gmail.com QAContact: qa@suse.de Hello, In a Broadcom NIC, dhcpcd sends its Discover package before interface is ready. I checked this using wireshark. Just the second Discover is correctly sent. This way, the startup script backgrounds dhcp. This way, any process that depends on network fails as ntp, autofs and so. Feb 21 19:14:08 aracaju ifup: eth0 device: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet (rev 03) Feb 21 19:14:08 aracaju ifup: eth0 configuration: eth-id-00:10:c6:b9:1a:b4 Feb 21 19:14:09 aracaju kernel: PM: Writing back config space on device 0000:0a:0b.0 at offset b (was 165314e4 , writing 2d81014) Feb 21 19:14:09 aracaju kernel: PM: Writing back config space on device 0000:0a:0b.0 at offset 3 (was 0, writi ng 2008) Feb 21 19:14:09 aracaju kernel: PM: Writing back config space on device 0000:0a:0b.0 at offset 2 (was 2000000, writing 2000003) Feb 21 19:14:09 aracaju kernel: PM: Writing back config space on device 0000:0a:0b.0 at offset 1 (was 2b00000, writing 2b00106) Feb 21 19:14:09 aracaju kernel: PM: Writing back config space on device 0000:0a:0b.0 at offset 0 (was 165314e4 , writing 165414e4) Feb 21 19:14:09 aracaju kernel: bridge-eth0: enabling the bridge Feb 21 19:14:09 aracaju kernel: bridge-eth0: up Feb 21 19:14:09 aracaju kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready Feb 21 19:14:09 aracaju ifup-dhcp: Starting DHCP Client Daemon on eth0... Feb 21 19:14:09 aracaju ifup-dhcp: . Feb 21 19:14:09 aracaju dhcpcd[21734]: broadcasting DHCP_REQUEST for 10.9.8.17 Feb 21 19:14:10 aracaju ifup-dhcp: . Feb 21 19:14:10 aracaju kernel: tg3: eth0: Link is up at 100 Mbps, full duplex. Feb 21 19:14:10 aracaju kernel: tg3: eth0: Flow control is off for TX and off for RX. Feb 21 19:14:10 aracaju kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Feb 21 19:14:11 aracaju ifup-dhcp: . Feb 21 19:14:12 aracaju ifup-dhcp: . Feb 21 19:14:13 aracaju ifup-dhcp: . Feb 21 19:14:14 aracaju ifup-dhcp: no IP address yet... backgrounding. Feb 21 19:14:19 aracaju dhcpcd[21734]: timed out waiting for DHCP_ACK response Feb 21 19:14:19 aracaju dhcpcd[21734]: broadcasting DHCP_DISCOVER 00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04) 00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 04) 00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03) 00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03) 00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03) 00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03) 00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3) 00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03) 00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03) 00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03) 00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03) 0a:0b.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705_2 Gigabit Ethernet (rev 03) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 ------- Comment #1 from luizluca@gmail.com 2007-02-21 14:35 MST ------- Created an attachment (id=120398) --> (https://bugzilla.novell.com/attachment.cgi?id=120398&action=view) Strace of "dhcpcd eth0" This logs the strace for dhcpcd program. It took more than 20s to return. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 ------- Comment #2 from luizluca@gmail.com 2007-02-21 14:39 MST ------- Maybe this bug is related to bug #242039 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |varkoly@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 poeml@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zoz@novell.com Status|NEW |NEEDINFO Info Provider| |luizluca@gmail.com ------- Comment #4 from poeml@novell.com 2007-03-05 03:47 MST ------- dhcpcd does not wait for drivers becoming ready or for a link becoming established. Either this is the job of the driver, or there is a place in sysconfig which waits for the link (I don't know, but I assume so). Christian knows more about this from the sysconfig point of view. In the end, if the link detection does not work correctly, it could be a driver issue. Christian, could you tell us how it normally works, please? There is a possible workaround by increasing DHCLIENT_TIMEOUT in /etc/sysconfig/network/dhcp: ## Type: integer ## Default: 0 # # Some interfaces need time to initialize. Add the latency time in seconds # so these can be handled properly. Should probably set per interface rather than here. # DHCLIENT_SLEEP="0" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 luizluca@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|luizluca@gmail.com | ------- Comment #5 from luizluca@gmail.com 2007-03-05 09:52 MST ------- The links becomes unavailable immediately after dhcpcd runs. DHCLIENT_SLEEP won't help cause it sleeps before dhcpcd and the link gets down when dhcpcd is running. Also changing DHCLIENT_TIMEOUT didn't help, even for huge values (99999). I think that it is a problem with the driver. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 zoz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |luizluca@gmail.com ------- Comment #6 from zoz@novell.com 2007-03-06 02:57 MST ------- So if the link was already there but becomes unavailable at device access, then ifplugd and friends cannot help either. Maybe the device is broken. Can you somehow check if the device works properly? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 luizluca@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|luizluca@gmail.com | ------- Comment #7 from luizluca@gmail.com 2007-03-07 09:09 MST ------- It is surelly working ok at fullspeed. After the dhcp finally gets the config or if I use fixed addresss, everything works perfectly. Maybe the device takes some time to detect the media type. I run it in a 100Mb/s network but the NIC is capable of 1000Mb/s. This happens in hundreds of IBM/Lenovo ThinkCentre we have here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 ------- Comment #8 from poeml@novell.com 2007-03-07 09:13 MST ------- if everything else works but DHCP, then it may be a problem (in the driver) with raw socket usage (which dhcpcd does). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 poeml@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|poeml@novell.com |kernel-maintainers@forge.provo.novell.com ------- Comment #9 from poeml@novell.com 2007-03-15 03:02 MST ------- kernel maintainers, can you please have a look? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 kkeil@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |poswald@novell.com AssignedTo|kernel- |kkeil@novell.com |maintainers@forge.provo.nove| |ll.com | Status|NEW |ASSIGNED ------- Comment #10 from kkeil@novell.com 2007-03-16 02:58 MST ------- Yes it seems that the broadcom driver has a issue here it sends the RTNETLINK too early. We'll discuss this with Broadcom. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584 ------- Comment #12 from luizluca@tre-sc.gov.br 2007-04-03 09:49 MST ------- I have other reference of this problem with Dell laptops: http://lists.us.dell.com/pipermail/linux-poweredge/2006-October/028001.html They say that the problem is related with the behavior of the driver with the spanning-tree from the switch. BTW, I got this problem both with a "HP xw4400 Workstation" and a "IBM/Lenovo ThinkCentre 8142-KPM" (this is HP's Broadcom NIC) 3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express (rev 02) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=247584#c14
Luiz Angelo Daros de Luca
participants (1)
-
bugzilla_noreply@novell.com