Problems with first device on bridge
Sean C. Farley
scf at FreeBSD.org
Thu Aug 7 23:42:33 UTC 2008
On a 7-STABLE (built August 7th), I have noticed messages appearing in
/var/log/messages:
Aug 7 15:07:17 thor kernel: rtfree: 0xc7143a2c has 2 refs
Aug 7 15:07:19 thor last message repeated 2 times
Aug 7 15:09:28 thor last message repeated 3 times
Aug 7 15:11:54 thor last message repeated 9 times
This happens if I set up a bridge to have em0 and tap0 such as from:
ifconfig bridge0 create
ifconfig bridge0 addm em0
ifconfig bridge0 addm tap0
When I start QEMU on tap0, I would immediately lose IPv6 on em0 and
eventually IPv4 would go away. I would get a lot more of messages about
rtfree with QEMU started.
>From experimentation (and some luck), I found that if I reversed the
devices on a newly created bridge then the rtfree messages would go
away, but I would have problems with tap0. The workaround: create two
tap devices tap0 and tap1 and add to bridge0 in the order of tap1, tap0
and em0.
On another system, I noticed that a bridge between real NIC's (em1 and
sk0) also reports an rtfree message during boot. Any ideas?
Sean
--
scf at FreeBSD.org
More information about the freebsd-net
mailing list