Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 16:38:15 +0200
From:      Maxim Tuliuk <mt@primats.org.ua>
To:        freebsd-net@freebsd.org
Subject:   weirdness with vlans & sk on 5.4-RELEASE
Message-ID:  <20060213143815.GA22437@top.net.ua>

next in thread | raw e-mail | index | archive | help
Hello!
I'm having some troubles with "sk" netcard in 5.4-RELEASE:

config info:
> part of dmesg boot:
FreeBSD 5.4-RELEASE-p2 #1: Tue Jun 28 16:10:16 EEST 2005
skc0: <3Com 3C940 Gigabit Ethernet> port 0xd400-0xd4ff mem 0xfeae8000-0xfeaebfff irq 22 at device 5.0 on pci2
skc0: 3Com Gigabit LOM (3C940) rev. (0x1)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:0c:6e:52:2e:5b
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto

> ifconfig vlan0
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1496
        inet 10.49.3.13 netmask 0xffffff00 broadcast 10.49.3.255
        ether 00:0c:6e:52:2e:5b
        media: Ethernet autoselect (100baseTX <half-duplex>)
        status: active
        vlan: 9 parent interface: sk0

> ifconfig sk0
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.49.0.7 netmask 0xffffff00 broadcast 10.49.0.255
        ether 00:0c:6e:52:2e:5b
        media: Ethernet autoselect (100baseTX <half-duplex>)
        status: active

addional info:
10.49.3.13 - the host with "broken" sk
10.49.3.10 - the nfs server host

tcpdump output:
> tcpdump -n -i vlan0 host 10.49.3.10
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan0, link-type EN10MB (Ethernet), capture size 96 bytes
16:31:17.890049 IP 10.49.3.13.557961704 > 10.49.3.10.2049: 156 readdir [|nfs]
16:31:17.891576 IP 10.49.3.10 > 10.49.3.13: udp
16:31:19.919736 IP 10.49.3.13.557961704 > 10.49.3.10.2049: 156 readdir [|nfs]
16:31:19.921189 IP 10.49.3.10 > 10.49.3.13: udp
16:31:23.969108 IP 10.49.3.13.557961704 > 10.49.3.10.2049: 156 readdir [|nfs]
16:31:23.970438 IP 10.49.3.10 > 10.49.3.13: udp

> tcpdump -n -i sk0 vlan 9
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on sk0, link-type EN10MB (Ethernet), capture size 96 bytes
16:32:53.875178 IP 10.49.3.13.557961704 > 10.49.3.10.2049: 156 readdir [|nfs]
16:32:53.876145 IP 10.49.3.10.2049 > 10.49.3.13.557961704: reply ok 1472 readdir16:32:53.876578 IP 10.49.3.10 > 10.49.3.13: udp
16:32:55.904865 IP 10.49.3.13.557961704 > 10.49.3.10.2049: 156 readdir [|nfs]
16:32:55.905811 IP 10.49.3.10.2049 > 10.49.3.13.557961704: reply ok 1472 readdir16:32:55.906246 IP 10.49.3.10 > 10.49.3.13: udp
16:32:59.954278 IP 10.49.3.13.557961704 > 10.49.3.10.2049: 156 readdir [|nfs]
16:32:59.955651 IP 10.49.3.10.2049 > 10.49.3.13.557961704: reply ok 1472 readdir16:32:59.956078 IP 10.49.3.10 > 10.49.3.13: udp

as you can see above, sk0 interface receives udp packet but vlan0 doesn't...

Any suggestions?
-- 
Maxim Tuliuk
WWW: http://primats.org.ua/~mt/
ICQ: 21134222

Bike is the freedom of moving



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