RE: Problems with BCE network adapter (Dell PE2950)



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@xxxxxxxxxxxx]
Sent: Thursday, June 07, 2007 2:09 PM
To: David Christensen
Cc: freebsd-net
Subject: Re: Problems with BCE network adapter (Dell PE2950)

David Christensen wrote:
It's not a problem I've seen before. The driver seems to be
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.

Dave

Hi Dave,

The network is running Jumbo frames (8192 Byte frames). There are 5
PE2950's and 7 PE1950's with this NIC on this network. However it is
always the same system that causes the crash in the same
manner. I will
look into reproducing the error tomorrow with the switch port
mirrored
to a second server (with an em NIC). Hopefully I will get
some useful
dump files from tcpdump....

Do you have any idea what the frame might look like that
causes this error?

Here is the NIC config from the system:

>> #ifconfig bce0
>> bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 8192
>>
options=3b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
>> inet 172.31.0.13 netmask 0xffffff00 broadcast
172.31.0.255
>> inet 172.31.0.157 netmask 0xffffffff broadcast
172.31.0.157
>> inet 172.31.0.161 netmask 0xffffffff broadcast
172.31.0.161
>> ether 00:18:8b:88:d8:81
>> media: Ethernet autoselect (1000baseTX <full-duplex>)
>> status: active

If its any use the switch is a Dell PowerConnect 5324.

Tom

I am seeing some problems with one of my Dell PowerEdge
2950's (running
RELENG_6_2) on board bce NICs. The interface seems to
crash with the
following errors, to which the fix seems to be and "ifconfig
bce0 down;
ifconfig bce0 up":

Jun 7 12:20:29 gonzo kernel: bce0: discard frame w/o leading
ethernet
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
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
#10: Thu Apr
5 10:53:39 BST 2007
root@xxxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/PE2950 amd64
amd64 Intel(R)
Xeon(R) CPU 5160 @ 3.00GHz FreeBSD


## dmesg.boot snippet
bce0: <Broadcom NetXtreme II BCM5708 1000Base-T (B2), v0.9.6> mem
0xf4000000-0xf5ffffff irq 16 at device 0.0 on pci9
bce0: ASIC ID 0x57081020; Revision (B2); PCI-X 64-bit 133MHz
miibus0: <MII bus> on bce0
brgphy0: <BCM5708C 10/100/1000baseTX PHY> on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseTX,
1000baseTX-FDX, auto
bce0: Ethernet address: 00:18:8b:88:d8:81

## pciconf -lv snippet
bce0@pci9:0:0: class=0x020000 card=0x01b21028
chip=0x164c14e4 rev=0x12
hdr=0x00
vendor = 'Broadcom Corporation'
class = network
subclass = ethernet

#ifconfig bce0
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 8192

options=3b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
inet 172.31.0.13 netmask 0xffffff00 broadcast 172.31.0.255
inet 172.31.0.157 netmask 0xffffffff broadcast
172.31.0.157
inet 172.31.0.161 netmask 0xffffffff broadcast
172.31.0.161
ether 00:18:8b:88:d8:81
media: Ethernet autoselect (1000baseTX <full-duplex>)
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

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to
"freebsd-net-unsubscribe@xxxxxxxxxxx"



Attachment: if_bce.diff
Description: if_bce.diff

Attachment: if_bcereg.diff
Description: if_bcereg.diff

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: NEWS: Ofcom works out why Wi-Fi doesnt work
    ... filling 90 per cent of the data frames sent over Wi-Fi. ... retransmissions were found to be 80% of all data packets. ... Lots of retransmissions flying around that network. ...
    (alt.internet.wireless)
  • Re: Virtual Ethernet device on Solaris
    ... > various kinds of Ethernet packets. ... > can reach every computer on the outside network, ... > PF_PACKET code to loop the packets back. ... We can reach everything on the host computer, ...
    (comp.unix.programmer)
  • Virtual Ethernet device on Solaris
    ... and talks to the outside network in two ways: ... Ethernet interface, assign the simulation our own unique ... PF_PACKET code to loop the packets back. ... We can reach everything on the host computer, ...
    (comp.unix.programmer)
  • Re: Q:Ethernet bandwidth when programming UDP sockets
    ... >>But on Ethernet it consumes almost ten times bigger bandwidths. ... Ethernet has too much overheads to transfer data. ... > Even 14 cameras are sending to one monitoring PC, network is not over full. ... what size packets are you sending? ...
    (comp.programming)
  • Re: Problems with BCE network adapter (Dell PE2950)
    ... passing an Ethernet frame up the stack with a length of -4. ... Is there anything unusual about your network setup like VLAN ... The network is running Jumbo frames. ... inet 172.31.0.157 netmask 0xffffffff broadcast 172.31.0.157 ...
    (freebsd-net)