From nobody@FreeBSD.org  Sun Jun 20 05:14:19 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5BFB71065674
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jun 2010 05:14:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 31C2A8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jun 2010 05:14:19 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5K5EIsb014543
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jun 2010 05:14:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5K5EIa4014542;
	Sun, 20 Jun 2010 05:14:18 GMT
	(envelope-from nobody)
Message-Id: <201006200514.o5K5EIa4014542@www.freebsd.org>
Date: Sun, 20 Jun 2010 05:14:18 GMT
From: Bill Clark <wclark@xoom.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Inconsistent networking with em driver on FreeBSD 8.0-p2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148004
>Category:       kern
>Synopsis:       [em] Inconsistent networking with em driver on FreeBSD 8.0-p2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jfv
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 20 05:20:02 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon Aug 23 14:30:43 UTC 2010
>Originator:     Bill Clark
>Release:        FreeBSD 8.0-p2
>Organization:
Before It's News
>Environment:
FreeBSD c4.beforeitsnews.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Fri Jan  8 06:01:44 GMT 2010     root@b1.beforeitsnews.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Machine with dual Intel(R) PRO/1000 Network Connection using em driver, updated to latest version 6.9.21 from Intel website (initially 6.9.14 with same problem) will connect fine to one (older) switch but completely non-functional (despite link lights) on another (newer) switch.  There's nothing wrong with the switch, since a dozen other FreeBSD machines (using bge or fxp) all work fine on it.  I've looked through many similar problem reports online and none of the diagnostic steps or fixes have helped.  No errors of any kind are reported.. the networking simply does not work, as if the interface were down.  Changing to the other switch, it works perfectly.  I unfortunately do not have the details about what models the two different switches are, as they're in a remote datacenter and my remote assistant gave up in frustration after the millionth time I had him juggle connections around.

dmesg:

em0: <Intel(R) PRO/1000 Network Connection 6.9.21> port 0xcc00-0xcc3f mem 0xfc9e0000-0xfc9fffff irq 74 at device 1.0 on pci5
em0: [FILTER]
em0: Ethernet address: 00:30:48:85:b0:44

sysctl -a:

dev.em.0.%desc: Intel(R) PRO/1000 Network Connection 6.9.21
dev.em.0.%driver: em
dev.em.0.%location: slot=1 function=0
dev.em.0.%pnpinfo: vendor=0x8086 device=0x1076 subvendor=0x15d9 subdevice=0x1076 class=0x020000
dev.em.0.%parent: pci5
dev.em.0.debug: -1
dev.em.0.stats: -1
dev.em.0.rx_int_delay: 0
dev.em.0.tx_int_delay: 66
dev.em.0.rx_abs_int_delay: 66
dev.em.0.tx_abs_int_delay: 66
dev.em.0.rx_processing_limit: 100

ifconfig -a:

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether 00:30:48:85:b0:44
        inet 10.0.0.104 netmask 0xffffff00 broadcast 10.0.0.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

netstat -rn:

Destination        Gateway            Flags    Refs      Use  Netif Expire
10.0.0.0/24        link#1             U           0        8    em0

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Bill Clark <wclark@xoom.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148004: Inconsistent networking with em driver on FreeBSD 
	8.0-p2
Date: Sat, 19 Jun 2010 23:15:58 -0700

 I tried the steps from this recommendation in the README for the
 driver from Intel (since it sounded very much like the problem I'm
 experiencing) but it did not help:
 
  82541/82547 can't link or is slow to link with some link partners
   -----------------------------------------------------------------
 
   There is a known compatibility issue where time to link is slow or link i=
 s not
   established between 82541/82547 controllers and some switches.  Known swi=
 tches
   include:
         Planex FXG-08TE
         I-O Data ETG-SH8
 
   The driver can be compiled with the following changes:
 
   Edit ./em.x.x.x/src/if_em.h to change the #define EM_MASTER_SLAVE
   For example, change from:
 
       #define EM_MASTER_SLAVE   e1000_ms_hw_default
   to:
       #define EM_MASTER_SLAVE   2
 
 On Sat, Jun 19, 2010 at 10:20 PM,  <FreeBSD-gnats-submit@freebsd.org> wrote=
 :
 > Thank you very much for your problem report.
 > It has the internal identification `kern/148004'.
 > The individual assigned to look at your
 > report is: freebsd-bugs.
 >
 > You can access the state of your problem report at any time
 > via this link:
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D148004
 >
 >>Category: =A0 =A0 =A0 kern
 >>Responsible: =A0 =A0freebsd-bugs
 >>Synopsis: =A0 =A0 =A0 Inconsistent networking with em driver on FreeBSD 8=
 .0-p2
 >>Arrival-Date: =A0 Sun Jun 20 05:20:02 UTC 2010
 >
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jun 20 09:12:56 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148004 
Responsible-Changed-From-To: freebsd-net->jfv 
Responsible-Changed-By: andre 
Responsible-Changed-When: Mon Aug 23 14:30:22 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148004 
>Unformatted:
