Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2006 10:31:24 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Christian Brueffer <brueffer@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org, sam@FreeBSD.org
Subject:   Re: is if_bridge broken?
Message-ID:  <20060812073123.GA9233@gothmog.pc>
In-Reply-To: <20060812071830.GA1755@haakonia.hitnet.RWTH-Aachen.DE>
References:  <86zmeafnjz.fsf@gothmog.pc> <20060812071830.GA1755@haakonia.hitnet.RWTH-Aachen.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-08-12 09:18, Christian Brueffer <brueffer@FreeBSD.org> wrote:
>On Sat, Aug 12, 2006 at 09:58:08AM +0300, keramida@FreeBSD.org wrote:
>> I am trying to run QEMU on a fairly recent snapshot of HEAD, but it failed with:
>>
>>     # DISPLAY=:0 qemu -win2k-hack -hda windows.img -boot c -net nic -net tap
>>     bridge0: creating bridge interface
>>     ifconfig: SIOCIFCREATE2: Invalid argument
>>     /etc/qemu-ifup: ERROR: bridge0: failed to create
>>     /etc/qemu-ifup: could not launch network script
>>     Could not initialize device 'tap'
>>     #
>>
>> At about the same time, `ifconfig bridge0 create' fails with:
>>
>> Aug 12 09:36:58 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available
>> Aug 12 09:36:58 gothmog giorgos: /etc/qemu-ifup: ERROR: bridge0: failed to create
>> Aug 12 09:37:17 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available
>> Aug 12 09:48:25 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available
>> Aug 12 09:48:49 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available
>>
>> It appears to have been caused by src/sys/net/if.h revision 1.261:
>>
>>     date: 2006/07/09 06:04:00;  author: sam;  state: Exp;  lines: +6 -3
>>     Revise network interface cloning to take an optional opaque
>>     parameter that can specify configuration parameters:
>>     o rev cloner api's to add optional parameter block
>>     o add SIOCCREATE2 that accepts parameter data
>>     o rev vlan support to use new api (maintain old code)
>>
>>     Reviewed by:    arch@
>>
>> Any idea how if_bridge can be fixed again?
>
> Have you tried loading the bridgestp module as suggested?  Is has been
> split out of if_bridge recently and exists in my CURRENT system.

Yes :-(

It doesn't make a lot of difference:

    root@gothmog:/root# kldstat | grep stp
    17    1 0xc58f0000 4000     bridgestp.ko
    root@gothmog:/root# ifconfig bridge0 create
    ifconfig: SIOCIFCREATE2: Invalid argument
    root@gothmog:/root#

This is with a kernel built from a checkout of 2006.08.11.10.58.24:

    $ uname -v
    FreeBSD 7.0-CURRENT #0: Fri Aug 11 22:23:01 EEST 2006 \
    build@gothmog.pc:/home/build/obj/home/build/src/sys/GOTHMOG




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