I see similar problem with my ral(4), reported in PR 5420
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=5420

See if the diff at the end of the report do you any good.

also, there
http://marc.info/?l=openbsd-tech&w=2&r=1&s=patch+if_trunk.h+for+ath+and+em&q=b

michael hamerski wrote:
hi,

I'm trying to do wired/wireless failover with dhcp on -current/amd64:

$ cat /etc/hostname.re0
up media 100baseTX

$ cat /etc/hostname.bwi0
up media DS11 nwid xxxx nwkey yyyy

$ cat /etc/hostname.trunk0
trunkproto failover trunkport re0 trunkport bwi0
dhcp

$ ifconfig

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33168
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:f3:52:7b:0a
        trunk: trunkdev trunk0
        media: Ethernet 100baseTX (100baseTX half-duplex)
        status: active
        inet6 fe80::218:f3ff:fe52:7b0a%re0 prefixlen 64 scopeid 0x1
bwi0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:f3:52:7b:0a
        trunk: trunkdev trunk0
        groups: wlan
        media: IEEE802.11 DS11 (DS11 mode 11b)
        status: active
        ieee80211: nwid <not displayed> chan 2 bssid 00:0e:2e:8a:91:d2 26dB
nwkey <not displayed>
        inet6 fe80::218:f3ff:fe46:2940%bwi0 prefixlen 64 scopeid 0x2
enc0: flags=0<> mtu 1536
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:18:f3:52:7b:0a
        trunk: trunkproto failover
                trunkport bwi0 active
                trunkport re0 master,active
        groups: trunk egress
        media: Ethernet autoselect
        status: active
        inet6 fe80::218:f3ff:fe52:7b0a%trunk0 prefixlen 64 scopeid 0x5
        inet 192.168.16.72 netmask 0xffffff00 broadcast 192.168.16.255


I'm lucky to own both a re(4) card that hangs the system when not
forced to 100baseTX and a bwi(4) that only works when forced to 11b,
hence the media directives in hostname.if. I can get an IP when
booting with or without wired plugged in, but if I subsequently pull
the wired, it never fails over. However, if i run dhclient trunk0
again, I get an IP over wireless. Am I missing something? There's a
weird two lines at end of dmesg that I've never seen.

thanks,

mike

OpenBSD 4.2-current (GENERIC.MP) #1446: Mon Nov 12 16:39:11 MST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1073082368 (1023MB)
avail mem = 1030402048 (982MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (53 entries)
bios0: vendor American Megatrends Inc. version "080012" date 08/22/2007
bios0: ASUSTeK Computer INC. A6Tc
acpi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Turion(tm) 64 X2 Mobile Technology TL-50, 1607.56 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Turion(tm) 64 X2 Mobile Technology TL-50, 1607.32 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type PCI
mpbios: bus 5 is type ISA
ioapic0 at mainbus0 apid 2 pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1
"NVIDIA C51 Host" rev 0xa2 at pci0 dev 0 function 0 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 1 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 2 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 3 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 4 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 5 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 6 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 3 function 0 "NVIDIA C51 PCIE" rev 0xa1
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2
(0x3800), apic 2 int 11 (irq 11), address 00:18:f3:52:7b:0a
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ppb1 at pci0 dev 4 function 0 "NVIDIA C51 PCIE" rev 0xa1
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 "NVIDIA GeForce 7300 Go" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"NVIDIA MCP51 Host" rev 0xa2 at pci0 dev 9 function 0 not configured
pcib0 at pci0 dev 10 function 0 "NVIDIA MCP51 ISA" rev 0xa3
nviic0 at pci0 dev 10 function 1 "NVIDIA MCP51 SMBus" rev 0xa3
iic0 at nviic0
maxtmp0 at iic0 addr 0x4c: max6657
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
iic1 at nviic0
"NVIDIA MCP51 PMU" rev 0xa3 at pci0 dev 10 function 3 not configured
ohci0 at pci0 dev 11 function 0 "NVIDIA MCP51 USB" rev 0xa3: apic 2
int 11 (irq 11), version 1.0, legacy support
ehci0 at pci0 dev 11 function 1 "NVIDIA MCP51 USB" rev 0xa3: apic 2
int 7 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
pciide0 at pci0 dev 13 function 0 "NVIDIA MCP51 IDE" rev 0xa1: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-RAM UJ-850S, 1.21> SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd0 at pciide0 channel 1 drive 0: <HTS541080G9AT00>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
ppb2 at pci0 dev 16 function 0 "NVIDIA MCP51 PCI-PCI" rev 0xa2
pci3 at ppb2 bus 3
cbb0 at pci3 dev 1 function 0 "Ricoh 5C476 CardBus" rev 0xb3: apic 2
int 11 (irq 11)
"Ricoh 5C552 Firewire" rev 0x08 at pci3 dev 1 function 1 not configured
sdhc0 at pci3 dev 1 function 2 "Ricoh 5C822 SD/MMC" rev 0x17: apic 2
int 5 (irq 5)
sdmmc0 at sdhc0
"Ricoh 5C592 Memory Stick" rev 0x08 at pci3 dev 1 function 3 not configured
bwi0 at pci3 dev 3 function 0 "Broadcom BCM4318" rev 0x02: apic 2 int
11 (irq 11), address 00:18:f3:46:29:40
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 4 device 0 cacheline 0x0, lattimer 0x40
pcmcia0 at cardslot0
azalia0 at pci0 dev 16 function 1 "NVIDIA MCP51 HD Audio" rev 0xa2:
apic 2 int 10 (irq 10)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek/0x0861 (rev. 3.64), HDA version 1.0
azalia0: codec: Motorola/0x3055 (rev. 7.0), HDA version 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
ugen0 at uhub0 port 5 "Syntek USB2.0" rev 2.00/0.05 addr 2
uhidev0 at uhub1 port 3 configuration 1 interface 0 "Logitech
Trackball" rev 1.10/2.20 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
ugen1 at uhub1 port 7 "ASUS product 0x1712" rev 2.00/19.15 addr 3
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
Data modified on freelist: word 0 of object 0xffff800000157800 size
0x150 previous type free (invalid addr 0x1)
Data modified on freelist: word 0 of object 0xffff800000157800 size
0x150 previous type free (0x0 != 0xdeadbeef)

Reply via email to