From owner-freebsd-net@FreeBSD.ORG Fri Jun 8 20:57:06 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A05CD16A421 for ; Fri, 8 Jun 2007 20:57:06 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from mms1.broadcom.com (mms1.broadcom.com [216.31.210.17]) by mx1.freebsd.org (Postfix) with ESMTP id 7595013C480 for ; Fri, 8 Jun 2007 20:57:06 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from [10.10.64.154] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Fri, 08 Jun 2007 13:56:57 -0700 X-Server-Uuid: 6B5CFB92-F616-4477-B110-55F967A57302 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id DA3492AF; Fri, 8 Jun 2007 13:56:56 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id C620C2AE; Fri, 8 Jun 2007 13:56:56 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FJB86703; Fri, 8 Jun 2007 13:56:56 -0700 (PDT) Received: from NT-IRVA-0750.brcm.ad.broadcom.com ( nt-irva-0750.brcm.ad.broadcom.com [10.8.194.64]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id 50DA469CA3; Fri, 8 Jun 2007 13:56:56 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 8 Jun 2007 13:56:55 -0700 Message-ID: <09BFF2FA5EAB4A45B6655E151BBDD9030423EE13@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <466873FA.9030800@tomjudge.com> X-MS-Has-Attach: yes Thread-Topic: Problems with BCE network adapter (Dell PE2950) Thread-Index: AcepR5/liNliNxpkQX2uYnIFBN75iAABQuKQ References: <46680DB1.9050905@tomjudge.com> <09BFF2FA5EAB4A45B6655E151BBDD9030414B1EC@NT-IRVA-0750.brcm.ad.broadcom.com> <466873FA.9030800@tomjudge.com> From: "David Christensen" To: "Tom Judge" X-WSS-ID: 6A771D1337041347804-01-01 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C7AA0F.8C2996AC" Cc: freebsd-net Subject: RE: Problems with BCE network adapter (Dell PE2950) 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, 08 Jun 2007 20:57:06 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C7AA0F.8C2996AC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Tom, There's already some debug code to watch for unusual size packets. If you can recompile the driver from HEAD with the attached diffs we can printout the first 128 bytes of any unusual sized packets. This does enabled other debugging code so performance will drop but that should be OK since this doesn't present as a performance problem. Dave > -----Original Message----- > From: Tom Judge [mailto:tom@tomjudge.com]=20 > Sent: Thursday, June 07, 2007 2:09 PM > To: David Christensen > Cc: freebsd-net > Subject: Re: Problems with BCE network adapter (Dell PE2950) >=20 > David Christensen wrote: > > It's not a problem I've seen before. The driver seems to be=20 > > passing an Ethernet frame up the stack with a length of -4. > > Is there anything unusual about your network setup like VLAN > > tagging, jumbo frames, or anything else that might cause > > the Ethernet frame to be formatted in an unusual manner? > > The error probably occurs in bce_rx_intr() but I'd need to > > see the packet that's causing the problem to figure out why > > the driver isn't calculating the packet length correctly. > >=20 > > Dave=20 > >=20 > Hi Dave, >=20 > The network is running Jumbo frames (8192 Byte frames). There are 5=20 > PE2950's and 7 PE1950's with this NIC on this network. However it is=20 > always the same system that causes the crash in the same=20 > manner. I will=20 > look into reproducing the error tomorrow with the switch port=20 > mirrored=20 > to a second server (with an em NIC). Hopefully I will get=20 > some useful=20 > dump files from tcpdump.... >=20 > Do you have any idea what the frame might look like that=20 > causes this error? >=20 > Here is the NIC config from the system: >=20 > >> #ifconfig bce0 > >> bce0: flags=3D8843 mtu = 8192 > >> =20 > options=3D3b > >> inet 172.31.0.13 netmask 0xffffff00 broadcast=20 > 172.31.0.255 > >> inet 172.31.0.157 netmask 0xffffffff broadcast=20 > 172.31.0.157 > >> inet 172.31.0.161 netmask 0xffffffff broadcast=20 > 172.31.0.161 > >> ether 00:18:8b:88:d8:81 > >> media: Ethernet autoselect (1000baseTX ) > >> status: active >=20 > If its any use the switch is a Dell PowerConnect 5324. >=20 > Tom >=20 > >> I am seeing some problems with one of my Dell PowerEdge=20 > >> 2950's (running=20 > >> RELENG_6_2) on board bce NICs. The interface seems to=20 > crash with the=20 > >> following errors, to which the fix seems to be and "ifconfig=20 > >> bce0 down;=20 > >> ifconfig bce0 up": > >> > >> Jun 7 12:20:29 gonzo kernel: bce0: discard frame w/o leading=20 > >> ethernet=20 > >> header (len 4294967292 pkt len 4294967292) > >> Jun 7 12:20:29 gonzo last message repeated 54 times > >> Jun 7 12:20:58 gonzo kernel: nfs server nfs-server:/usr/home: not=20 > >> responding > >> > >> > >> Is this a know problem? If so is there a solution? > >> > >> Tom > >> > >> #uname -a > >> FreeBSD gonzo.mintel.co.uk 6.2-RELEASE FreeBSD 6.2-RELEASE=20 > >> #10: Thu Apr=20 > >> 5 10:53:39 BST 2007=20 > >> root@roley.mintel.co.uk:/usr/obj/usr/src/sys/PE2950 amd64=20 > >> amd64 Intel(R)=20 > >> Xeon(R) CPU 5160 @ 3.00GHz FreeBSD > >> > >> > >> ## dmesg.boot snippet > >> bce0: mem=20 > >> 0xf4000000-0xf5ffffff irq 16 at device 0.0 on pci9 > >> bce0: ASIC ID 0x57081020; Revision (B2); PCI-X 64-bit 133MHz > >> miibus0: on bce0 > >> brgphy0: on miibus0 > >> brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,=20 > 1000baseTX,=20 > >> 1000baseTX-FDX, auto > >> bce0: Ethernet address: 00:18:8b:88:d8:81 > >> > >> ## pciconf -lv snippet > >> bce0@pci9:0:0: class=3D0x020000 card=3D0x01b21028=20 > >> chip=3D0x164c14e4 rev=3D0x12=20 > >> hdr=3D0x00 > >> vendor =3D 'Broadcom Corporation' > >> class =3D network > >> subclass =3D ethernet > >> > >> #ifconfig bce0 > >> bce0: flags=3D8843 mtu 8192 > >> =20 > options=3D3b > >> inet 172.31.0.13 netmask 0xffffff00 broadcast 172.31.0.255 > >> inet 172.31.0.157 netmask 0xffffffff broadcast=20 > 172.31.0.157 > >> inet 172.31.0.161 netmask 0xffffffff broadcast=20 > 172.31.0.161 > >> ether 00:18:8b:88:d8:81 > >> media: Ethernet autoselect (1000baseTX ) > >> status: active > >> > >> #Switch port counters > >> console# show interfaces counters ethernet g10 > >> Port InOctets InUcastPkts InMcastPkts InBcastPkts > >> ---------------- ---------- ----------- ----------- ----------- > >> g10 2615415297 87563987 0 13480 > >> > >> Port OutOctets OutUcastPkts OutMcastPkts OutBcastPkts > >> ---------------- ---------- ------------ ------------ ------------ > >> g10 2535595313 136391705 10740316 1420686 > >> > >> FCS Errors: 0 > >> Single Collision Frames: 0 > >> Late Collisions: 0 > >> Excessive Collisions: 0 > >> Internal MAC Tx Errors: 0 > >> Oversize Packets: 0 > >> Internal MAC Rx Errors: 0 > >> Received Pause Frames: 0 > >> Transmitted Pause Frames: 0 > >=20 > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to=20 > "freebsd-net-unsubscribe@freebsd.org" >=20 >=20 >=20 ------_=_NextPart_001_01C7AA0F.8C2996AC Content-Type: application/octet-stream; name=if_bce.diff Content-Transfer-Encoding: base64 Content-Description: if_bce.diff Content-Disposition: attachment; filename=if_bce.diff LS0tIGlmX2JjZS5jLm9yaW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X2xvOwotCXN0cnVjdCBtYnVmICptcCA9IG07CisJdTMyIHZh bF9oaSwgdmFsX2xvOw0KKwlpbnQgaTsKKwlzdHJ1Y3QgbWJ1ZiAqbXAgPSBtOw0KKwl1X2NoYXIg KmQ7CiAKIAlpZiAobSA9PSBOVUxMKSB7CiAJCUJDRV9QUklOVEYoIm1idWY6IG51bGwgcG9pbnRl clxuIik7CkBAIC02Mzk1LDYgKzYzOTksMjMgQEAKIAkJdmFsX2xvID0gQkNFX0FERFJfTE8obXAt Pm1fZGF0YSk7CiAJCXByaW50ZigiKSBtX2RhdGEgPSAweCUwOFg6JTA4WFxuIiwgCiAJCQkgICB2 YWxfaGksIHZhbF9sbyk7CisNCisJCS8qIFByaW50IHVwIHRvIDEyOCBieXRlcyBvZiBkYXRhIChz aG91bGQgYmUgdGhlIEV0aGVybmV0IGhlYWRlcikgKi8NCisJCWQgPSBtdG9kKG0sIHVfY2hhciAq KTsNCisJCWZvciAoaSA9IDA7IChpIDwgbS0+bV9sZW4gJiYgaSA8IDEyOCk7ICkgew0KKwkJCWlm ICgoaSAlIDE2KSA9PSAwKQ0KKwkJCQlwcmludGYoIjB4JTAyWDogIiwgaSk7DQorCQkJaWYgKGkg PD0gbS0+bV9sZW4pIHsNCisJCQkJcHJpbnRmKCIlMDJYICIsICpkKTsNCisJCQkJZCsrOw0KKwkJ CQlpKys7DQorCQkJfSBlbHNlDQorCQkJCWJyZWFrOw0KKwkJCWlmICgoaSAlIDE2KSA9PSAwKQ0K KwkJCQlwcmludGYoIlxuIik7DQorCQl9DQorCQlpZiAoaSAhPSAxMjgpDQorCQkJcHJpbnRmKCJc biIpOw0KIAogCQlpZiAobXAtPm1fZmxhZ3MgJiBNX1BLVEhEUikgewogCQkJQkNFX1BSSU5URigi LSBtX3BrdGhkcjogZmxhZ3MgPSAoICIpOwo= ------_=_NextPart_001_01C7AA0F.8C2996AC Content-Type: application/octet-stream; name=if_bcereg.diff Content-Transfer-Encoding: base64 Content-Description: if_bcereg.diff Content-Disposition: attachment; filename=if_bcereg.diff LS0tIGlmX2JjZXJlZy5oLm9yaWcJRnJpIEp1biAgOCAxMjoxODozNiAyMDA3CisrKyBpZl9iY2Vy ZWcuaAlGcmkgSnVuICA4IDEzOjMxOjEzIDIwMDcKQEAgLTk5LDggKzk5LDExIEBACiAKIC8qKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqLwogLyogRGVidWdnaW5nIG1hY3JvcyBhbmQgZGVmaW5pdGlvbnMuICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICovCi0vKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKi8KLSNkZWZpbmUgQkNFX0NQX0xPQUQgCQkJMHgwMDAwMDAwMQorLyoqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKiovDQorLyogRFJDIC0gU3RhcnQgKi8NCisjZGVmaW5lIEJDRV9ERUJVRyAxDQorLyogRFJD IC0gRW5kICovCisjZGVmaW5lIEJDRV9DUF9MT0FECQkJCTB4MDAwMDAwMDEKICNkZWZpbmUgQkNF X0NQX1NFTkQJCSAJCTB4MDAwMDAwMDIKICNkZWZpbmUgQkNFX0NQX1JFQ1YJCQkJMHgwMDAwMDAw NAogI2RlZmluZSBCQ0VfQ1BfSU5UUgkJCQkweDAwMDAwMDA4Cg== ------_=_NextPart_001_01C7AA0F.8C2996AC--