Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2009 17:33:18 +0300
From:      Niki Denev <ndenev@gmail.com>
To:        pluknet <pluknet@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: bce(4) sees all incoming frames as 2026 bytes in length
Message-ID:  <2e77fc10904290733m4858172ayd96654f3a9a3a8a@mail.gmail.com>
In-Reply-To: <a31046fc0904290659h3c831abcy14318b73c1462068@mail.gmail.com>
References:  <5E915E92-2B82-4331-9493-739568CC6E8C@gmail.com> <a31046fc0904290659h3c831abcy14318b73c1462068@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 29, 2009 at 4:59 PM, pluknet <pluknet@gmail.com> wrote:
> 2009/4/29 Nikolay Denev <ndenev@gmail.com>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello,
>>
>> I have the following problem with the new bce(4) driver on a 7.2-PRERELEASE
>> from a few days ago.
>> When I run tcpdump on the bce interface on the machine, all incoming frames
>> are shown as 2026 in size,
>> but on the sending machine tcpdump reports that it's sending frames of the
>> correct size.
>> This looks very strange because I don't have enabled Jumbo Frames on this
>> bce interface , and it is still with it's default MTU of 1500 bytes.
>> When I tried to capture the packets, they are zero padded to the 2026 frame
>> size. The checksums are correct, so I suspect a driver bug?
>>
>> P.S.: I experience this problem on several machines with bce interfaces, and
>> on all of them tcpdump sees all incoming frames with length of 2026 bytes.
>
> hi.
>
> Please, give us more details. What is your network card model ?
> Share ifconfig, dmesg...
> I have a similar setup, except the frame size - mine are with expected values.
>
> --
> wbr,
> pluknet
>

Hi,

Here is one of the cards that have this problem :

bce1: <Broadcom NetXtreme II BCM5708 1000Base-T (B2)> mem
0xf8000000-0xf9ffffff irq 16 at device 0.0 on pci3
bce1: Ethernet address: 00:22:19:xx:xx:xx
bce1: [ITHREAD]
bce1: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C
(0x04040105); Flags( MFW MSI )

bce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
	ether 00:22:19:xx:xx:xx
	inet 10.18.2.1 netmask 0xffffff00 broadcast 10.18.2.255
	media: Ethernet autoselect (1000baseTX <full-duplex>)
	status: active

And here is a tcpdump that shows the problem :

16:27:32.593808 00:22:19:yy:yy:yy > 00:22:19:xx:xx:xx, ethertype IPv4
(0x0800), length 2026: (tos 0x0, ttl 64, id 45347, offset 0, flags
[none], proto ICMP (1), length 84) 10.18.2.2 > 10.18.2.1: ICMP echo
request, id 13578, seq 36, length 64
16:27:32.593817 00:22:19:xx:xx:xx > 00:22:19:yy:yy:yy, ethertype IPv4
(0x0800), length 98: (tos 0x0, ttl 64, id 18415, offset 0, flags
[none], proto ICMP (1), length 84) 10.18.2.1 > 10.18.2.2: ICMP echo
reply, id 13578, seq 36, length 64
16:27:33.596569 00:22:19:yy:yy:yy > 00:22:19:xx:xx:xx, ethertype IPv4
(0x0800), length 2026: (tos 0x0, ttl 64, id 45349, offset 0, flags
[none], proto ICMP (1), length 84) 10.18.2.2 > 10.18.2.1: ICMP echo
request, id 13578, seq 37, length 64
16:27:33.596575 00:22:19:xx:xx:xx > 00:22:19:yy:yy:yy, ethertype IPv4
(0x0800), length 98: (tos 0x0, ttl 64, id 18421, offset 0, flags
[none], proto ICMP (1), length 84) 10.18.2.1 > 10.18.2.2: ICMP echo
reply, id 13578, seq 37, length 64
16:27:34.599332 00:22:19:yy:yy:yy > 00:22:19:xx:xx:xx, ethertype IPv4
(0x0800), length 2026: (tos 0x0, ttl 64, id 45351, offset 0, flags
[none], proto ICMP (1), length 84) 10.18.2.2 > 10.18.2.1: ICMP echo
request, id 13578, seq 38, length 64
16:27:34.599338 00:22:19:xx:xx:xx > 00:22:19:yy:yy:yy, ethertype IPv4
(0x0800), length 98: (tos 0x0, ttl 64, id 18427, offset 0, flags
[none], proto ICMP (1), length 84) 10.18.2.1 > 10.18.2.2: ICMP echo
reply, id 13578, seq 38, length 64
16:27:35.545001 00:22:19:yy:yy:yy > 01:00:5e:00:00:05, ethertype IPv4
(0x0800), length 2026: (tos 0xc0, ttl 1, id 45353, offset 0, flags
[none], proto OSPF (89), length 68) 10.18.2.2 > 224.0.0.5: OSPFv2,
Hello, length: 48
16:27:35.545062 00:22:19:xx:xx:xx > 01:00:5e:00:00:05, ethertype IPv4
(0x0800), length 82: (tos 0xc0, ttl 1, id 18432, offset 0, flags
[none], proto OSPF (89), length 68) 10.18.2.1 > 224.0.0.5: OSPFv2,
Hello, length: 48

There is nothing special about the setup, a few machines connected to
a gigabit switch, and some of them have
cross connects. I'm seeing this on all bce(4) interfaces, regardless
of what they are connected to (other bce(4) interface, or GigE
switch).

--
Regards,
Niki



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e77fc10904290733m4858172ayd96654f3a9a3a8a>