Ethernet link status on i82576

Ivan Alexandrovich ivsan at ngs.ru
Fri Jul 22 08:29:16 UTC 2011


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<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
          options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
          ether 00:1b:21:81:e9:57
          media: Ethernet autoselect (1000baseT <full-duplex>)
          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: <Intel(R) PRO/1000 Network Connection version - 2.0.7> 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


More information about the freebsd-net mailing list