From owner-freebsd-net@FreeBSD.ORG Fri Jul 22 08:29:16 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 208261065670 for ; Fri, 22 Jul 2011 08:29:16 +0000 (UTC) (envelope-from ivsan@ngs.ru) Received: from smtpout17.ngs.ru (smtpout17.ngs.ru [195.93.186.223]) by mx1.freebsd.org (Postfix) with ESMTP id 74DA78FC0C for ; Fri, 22 Jul 2011 08:29:15 +0000 (UTC) Received: from smtpout.ngs.ru (imx2.in.ngs.ru [172.16.0.5]) by smtpout17.ngs.ru (smtpout17.ngs.ru) with ESMTP id 4E9F871DA0C7 for ; Fri, 22 Jul 2011 14:59:59 +0700 (NOVST) Received: from mx14.intranet.ru (unknown [172.16.7.2]) by mail.ngs.ru (smtp) with ESMTP id 226E83A453556 for ; Fri, 22 Jul 2011 15:09:41 +0700 (NOVST) Received: from mx16.intranet.ru (unknown [172.16.7.4]) by mx14.intranet.ru (mx14.intranet.ru) with ESMTP id 1FF68FB56 for ; Fri, 22 Jul 2011 15:09:41 +0700 (NOVST) Received: from [80.242.66.33] (account ivsan@ngs.ru) by mx16.intranet.ru (CommuniGate Pro WebUser 4.3.11) with HTTP id 8285764 for freebsd-net@freebsd.org; Fri, 22 Jul 2011 12:09:41 +0400 From: "Ivan Alexandrovich" To: freebsd-net@freebsd.org Date: Fri, 22 Jul 2011 15:09:41 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R"; format="flowed" Content-Transfer-Encoding: 8bit Subject: Ethernet link status on i82576 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 08:29:16 -0000 Hi I've just noticed the following problem with intel's quad-port card based on i82756 chip: When the ethernet link goes down igb driver doesn't detect link status change. When the cable is unplugged ifconfig(8) still shows: igb5: flags=8802 metric 0 mtu 1500 options=1bb ether 00:1b:21:81:e9:57 media: Ethernet autoselect (1000baseT ) status: active Ethernet card: E1G44ET2 Motherboard: Intel S550WBV OS: FreeBSD 8.2-RELEASE, FreeBSD-9.0 (201105 snapshot) Driver: igb-2.0.7 (stock kernel), Intel's igb-2.2.3 On linux with 2.6.38 kernel link status detection on E1G44ET2 works fine. Tried to use debugging in intel's driver (set DEBUG_INIT* defines in if_igb.h to "1") but had no success. When the ethernet cable is plugged in it logs: igb_media_status: begin link state changed to UP ioctl rcv'd: SIOCxIFMEDIA (Get/Set Interface Media) igb_media_status: begin ioctl rcv'd: SIOCxIFMEDIA (Get/Set Interface Media) igb_media_status: begin But when I detach cable the driver remains silent. Some addtitional data concerning the issue included bellow. Thanks, Ivan FreeBSD 8.2-RELEASE, stock kernel's if_igb driver 2.0.7, dmesg excerpt ---------------------------------------------------------------------- igb5: port 0x1000-0x101f mem 0xb2400000-0xb241ffff,0xb1c00000-0xb1ffffff,0xb2440000- igb5: Using MSIX interrupts with 9 vectors igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: [ITHREAD] igb5: Ethernet address: 00:1b:21:81:e9:57 .. igb5: link state changed to UP linux, /usr/sbin/lspci output ----------------------------- 07:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) 07:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) 0a:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) 0a:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01) linux, kernel 2.6.38, dmesg excerpt ----------------------------------- igb 0000:0a:00.1: PCI INT B -> GSI 37 (level, low) -> IRQ 37 igb 0000:0a:00.1: setting latency timer to 64 igb 0000:0a:00.1: irq 118 for MSI/MSI-X igb 0000:0a:00.1: irq 119 for MSI/MSI-X igb 0000:0a:00.1: irq 120 for MSI/MSI-X igb 0000:0a:00.1: irq 121 for MSI/MSI-X igb 0000:0a:00.1: irq 122 for MSI/MSI-X igb 0000:0a:00.1: irq 123 for MSI/MSI-X igb 0000:0a:00.1: irq 124 for MSI/MSI-X igb 0000:0a:00.1: irq 125 for MSI/MSI-X igb 0000:0a:00.1: irq 126 for MSI/MSI-X igb 0000:0a:00.1: 0 vfs allocated igb 0000:0a:00.1: Intel(R) Gigabit Ethernet Network Connection igb 0000:0a:00.1: eth5: (PCIe:2.5Gb/s:Width x4) 00:1b:21:81:e9:57 igb 0000:0a:00.1: eth5: PBA No: E91609-003 igb 0000:0a:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s) igb 0000:0a:00.1: DCA enabled .. igb: eth4 NIC Link is Down igb: eth4 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX igb: eth7 NIC Link is Down igb: eth7 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX