From root@dev.office.embinet.de  Mon Jul 21 01:19:55 2008
Return-Path: <root@dev.office.embinet.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 062D8106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Jul 2008 01:19:55 +0000 (UTC)
	(envelope-from root@dev.office.embinet.de)
Received: from mailserv.regfish.com (mailserv.regfish.com [79.140.49.126])
	by mx1.freebsd.org (Postfix) with ESMTP id 673298FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Jul 2008 01:19:54 +0000 (UTC)
	(envelope-from root@dev.office.embinet.de)
Received: (qmail 17942 invoked from network); 21 Jul 2008 00:51:41 -0000
Received: from dslb-084-057-070-149.pools.arcor-ip.net (HELO mail.anwalt-its.de) (43620-0001@[84.57.70.149])
          (envelope-sender <root@dev.office.embinet.de>)
          by mailserv.regfish.com (qmail-ldap-1.03) with SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 21 Jul 2008 00:51:41 -0000
Received: from dev.office.embinet.de (unknown [192.168.128.169])
	by mail.anwalt-its.de (Postfix) with SMTP id C6332638133
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Jul 2008 02:51:45 +0200 (CEST)
Received: (nullmailer pid 11114 invoked by uid 0);
	Mon, 21 Jul 2008 00:51:45 -0000
Message-Id: <1216601505.439663.11113.nullmailer@dev.office.embinet.de>
Date: Mon, 21 Jul 2008 02:51:45 +0200
From: Stephan Eisvogel <eisvogel@seitics.de>
To: FreeBSD-gnats-submit@freebsd.org
Subject: carp stuck in init when using bridge interface
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         125816
>Category:       kern
>Synopsis:       [carp] [if_bridge] carp stuck in init when using bridge interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    glebius
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 21 01:30:01 UTC 2008
>Closed-Date:    Wed Jan 22 09:14:39 UTC 2014
>Last-Modified:  Wed Jan 22 09:14:39 UTC 2014
>Originator:     
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD dev.seitics.de 7.0-STABLE FreeBSD 7.0-STABLE #24 r180564M: Thu Jul 17 01:33:27 CEST 2008 root@dev.seitics.de:/home/build/obj/home/build/src/sys/MYKERNEL i386

>Description:
	I'm trying to carp a bridge but the carp interface won't leave init state. I grepped
	around in src/sys/net and there seems to be no if_link_state_change present in the
	bridging code. I compared this to a recent patch in kern/113956 which could be the
	same symptom. I had two uses in mind: Bridged tap style openvpn (ethernet bridging)
	and use of the two boxes as access-points with hostapd.

>How-To-Repeat:
	Create a carp interface for a bridge. It will be stuck in init state.
	E.g. in rc.conf

	cloned_interfaces="bridge0 carp0"
	ifconfig_vr0="up"
	ifconfig_ath0="up"
	ifconfig_bridge0="addm vr0 addm ath0 10.0.0.250/24"
	ifconfig_carp0="vhid 1 pass mypass 10.0.0.1/24"

>Fix:
	Maybe teach the bridging code to talk about link state changes.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Jul 21 13:53:12 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s).  Hopefully somebody can establish if this is 
an issue with carp or with bridge. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125816 

From: Stephan Eisvogel <eisvogel@seitics.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/125816: [carp] [bridge] carp stuck in init when using bridge interface
Date: Thu, 24 Jul 2008 00:37:18 +0200

 This doesn't work on rev 180768 of 8-CURRENT
 that I just checked out of SVN as well. The
 bridge's carp interface won't leave INIT.
 
 Platform btw is an alix board by pc engines.
 

From: Stephan Eisvogel <eisvogel@seitics.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/125816: [carp] [bridge] carp stuck in init when using bridge interface
Date: Sat, 26 Jul 2008 16:40:08 +0200

 For the ADHS crowd: Using a bridge as carped device adds ~900ms to
 configured advertising interval.
 
 A chap from bsdforums has sent me a note that layer 2 failover is
 best done with spanning tree and not carp but as I explained I am
 not trying to cluster filtering bridges but cluster routers that
 happen to have a bridge sitting on top (in my case an Ethernet
 10/100 vr(4) and an Atheros card ath(4) bridged to create a
 wireless access point).
 
 I am back to 7-STABLE and also now have carpdev patch by max in
 kernel which I just merged into fib changes of julian. Because if
 it's broken why not brake it some more while at it...
 
 Using another PC with wireshark as reference I measured the inter
 packet gap of the announcements when carping the bridge and a
 setting of advbase 1 advskew 0 delivers 1.950s intervals instead
 of 1.000s as expected. When I up the advbase value to 3 the master
 will announce every 3.950s so the effect appears to be an offset
 and not multiplicative. It also does not appear to matter how
 many devices are attached to the bridge. The moment I set the
 carped interface to a physical interface announcement interval
 will come down to the correct 3.010s interval.
 
 I measured ping delay to exclude the possibility of the Alix'
 hardware timer running at wrong speed but inter packet gap was
 very near 1s for a default ping.
 
 I'll be trying to nail the thinko or bug and submit a patch
 but because I never tweaked the carp or bridge code don't
 bet on it...
 
Responsible-Changed-From-To: freebsd-net->glebius 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Sat Oct 15 14:25:17 UTC 2011 
Responsible-Changed-Why:  
I'm now working on major rewrite of CARP for FreeBSD 10, and 
I'd like to take all related PRs.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=125816 
State-Changed-From-To: open->patched 
State-Changed-By: glebius 
State-Changed-When: Mon Jun 18 11:19:43 UTC 2012 
State-Changed-Why:  
I bet it is fixed in head. See: 

http://svnweb.freebsd.org/base?view=revision&revision=234084 
http://svnweb.freebsd.org/base?view=revision&revision=234487 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125816 
State-Changed-From-To: patched->closed 
State-Changed-By: glebius 
State-Changed-When: Wed Jan 22 09:14:20 UTC 2014 
State-Changed-Why:  
Fixed in 10.0-RELEASE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125816 
>Unformatted:
