Hi,

On amd64, after a system update via snapshot, I start to see warning
messages in console (and to be complete, the running kernel is GENERIC.MP
with a patch on acpitz, so shoudn't be related).

The message is (complete dmesg below):
bge0: trying to send packet on wrong domain. if 0 vs. mbuf 52

The network configuration is the following:

# cat /etc/hostname.bge0                                                        
                                                     
dhcp
inet6 autoconf
up
!/usr/sbin/arp -F -s 192.168.92.2 c8:be:19:e2:2c:ed permanent

# cat /etc/hostname.vlan52                                                      
                                                     
vlandev bge0 rdomain 52
description "Test"
inet 192.168.52.45

The vlan52 interface is only used for test purpose, and I use rdomain to
ensure separation from the rest of the system.

/etc/pf.conf contains nothing related to rtable or rdomain.
# cat /etc/pf.conf
# See pf.conf(5) and /etc/examples/pf.conf

set skip on lo

# enable statistic collection on egress
set loginterface egress

block return    # block stateless traffic
pass            # establish keep-state

# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010


The rtable 52 has nothing special (no manual adding).

# route -T 52 -n show                
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio
Iface
192.168.52/24      192.168.52.45      UC         1        0     -     8 vlan52
192.168.52.1       link#8             UHLc       0        1     -     8 vlan52
192.168.52.45      00:1b:38:33:97:b0  UHLl       0        0     -     1 lo0  
192.168.52.255     192.168.52.45      UHb        0        0     -     1 vlan52


The message is printed for every packet sent from rdomain 52
$ route -T 52 exec ping 192.168.52.1 
PING 192.168.52.1 (192.168.52.1): 56 data bytes
--- 192.168.52.1 ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss

$ dmesg | tail -2
bge0: trying to send packet on wrong domain. if 0 vs. mbuf 52
bge0: trying to send packet on wrong domain. if 0 vs. mbuf 52

No other problem than a message in console for every packet.

This message have been introduced in sys/net/if.c (line 452) at version
1.344.

>       if (ifp->if_rdomain != rtable_l2(m->m_pkthdr.ph_rtableid)) {
>                printf("%s: trying to send packet on wrong domain. "
>                           "if %d vs. mbuf %d\n",
>                           ifp->if_xname, ifp->if_rdomain,
>                           rtable_l2(m->m_pkthdr.ph_rtableid));
>       }

I am also able to reproduce it on other host with true GENERIC.MP (from
same snapshot version), with more conventional network configuration (no
mix between tagged/untagged vlan):
  - one physical re0 (just up)
  - several vlan interface on it
  - one rdomain on vlan interface

Thanks.
-- 
Sebastien Marie

OpenBSD 5.8-beta (GENERIC.MP) #107: Thu Jul  2 09:23:23 CEST 2015
    semarie@clyde:/home/semarie/tmp/openbsd/builds/obj/GENERIC.MP
real mem = 2122121216 (2023MB)
avail mem = 2053996544 (1958MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf398f (23 entries)
bios0: vendor Hewlett-Packard version "68YCU Ver. F.0B" date 09/05/2007
bios0: Hewlett-Packard HP Compaq nc6400 (EH522AV)
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices C098(S5) C0F7(S3) C0F8(S3) C0F9(S3) C0FA(S3) C101(S0) 
C229(S0) C111(S5) C234(S5) C117(S5) C235(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz, 1662.80 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz, 1662.50 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 2MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 2 (C098)
acpiprt1 at acpi0: bus 8 (C101)
acpiprt2 at acpi0: bus 16 (C111)
acpiprt3 at acpi0: bus 0 (C002)
acpiec0 at acpi0
acpicpu0 at acpi0: !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: C1E7, resource for C1E2
acpipwrres1 at acpi0: C1EF, resource for C1E8
acpipwrres2 at acpi0: C1F6, resource for C1F0
acpipwrres3 at acpi0: C220, resource for C21E
acpipwrres4 at acpi0: C228, resource for C11A
acpipwrres5 at acpi0: C32D, resource for C331
acpipwrres6 at acpi0: C32E, resource for C332
acpipwrres7 at acpi0: C32F, resource for C333
acpipwrres8 at acpi0: C330, resource for C334
acpitz0 at acpi0: critical temperature is 256 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpitz2 at acpi0: critical temperature is 105 degC
acpitz3 at acpi0: critical temperature is 105 degC
acpitz4 at acpi0: critical temperature is 110 degC
acpibat0 at acpi0: C1B4 model "Primary" serial 03899 2007/05/17 type LIon oem 
"Hewlett-Packard"
acpibat1 at acpi0: C1B3 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: C249
acpibtn1 at acpi0: C241
acpivideo0 at acpi0: C085
cpu0: Enhanced SpeedStep 1662 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
intagp0 at vga1
agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1280x800
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi
azalia0: codecs: Analog Devices AD1981HD, AT&T/Lucent/0x3026, using Analog 
Devices AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: msi
pci1 at ppb0 bus 8
bge0 at pci1 dev 0 function 0 "Broadcom BCM5753M" rev 0x21, BCM5750 C1 
(0x4201): msi, address 00:1b:38:33:97:b0
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: msi
pci2 at ppb1 bus 16
bwi0 at pci2 dev 0 function 0 "Broadcom BCM4312" rev 0x01: apic 1 int 17, 
address 00:1a:73:6c:90:d3
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 1 int 20
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 1 int 22
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 1 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 1 int 20
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1
pci3 at ppb2 bus 2
cbb0 at pci3 dev 6 function 0 "TI PCIXX12 CardBus" rev 0x00: apic 1 int 18
"TI PCIXX12 Multimedia Card Reader" rev 0x00 at pci3 dev 6 function 2 not 
configured
sdhc0 at pci3 dev 6 function 3 "TI PCIXX12 SD" rev 0x00: apic 1 int 22
sdmmc0 at sdhc0
"TI PCIXX12 Smart Card" rev 0x00 at pci3 dev 6 function 4 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x20
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x01
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-U10N, HP06> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI" rev 0x01: msi, AHCI 1.1
ahci0: port 0: 1.5Gb/s
scsibus2 at ahci0: 32 targets
sd0 at scsibus2 targ 0 lun 0: <ATA, Hitachi HTS54161, SB4O> SCSI3 0/direct 
fixed t10.ATA_Hitachi_HTS541616J9SA00_SB2481SJEKVZ1E
sd0: 152627MB, 512 bytes/sector, 312581808 sectors
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 6.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
ugen0 at uhub2 port 1 "AuthenTec Fingerprint Sensor" rev 1.10/6.23 addr 2
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (3ed108d2b4f1280b.a) swap on sd0b dump on sd0b
bge0: trying to send packet on wrong domain. if 0 vs. mbuf 52
sd1 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed
sd1: 51200MB, 512 bytes/sector, 104857680 sectors

Reply via email to