Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2006 15:43:12 +0300
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        Sten Spans <sten@blinkenlights.nl>, Dave Raven <dave@raven.za.net>, freebsd-net@freebsd.org
Subject:   Re: em driver + VLAN's
Message-ID:  <20060130124311.GA44477@comp.chem.msu.su>
In-Reply-To: <200601182028.k0IKS6Nf073019@ambrisko.com>
References:  <Pine.SOC.4.61.0601182118510.10112@tea.blinkenlights.nl> <200601182028.k0IKS6Nf073019@ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 18, 2006 at 12:28:06PM -0800, Doug Ambrisko wrote:
> Sten Spans writes:
> | On Wed, 18 Jan 2006, Doug Ambrisko wrote:
> | > Dave Raven writes:
> | > | FreeBSD 4.9 - char em_driver_version[] = "1.7.16";
> | > |
> | > | I've tried multiple bridge configurations - from bridging just em0,em1 to
> | > | bridging two vlan's attached to each card. Unfortunately I don't have access
> | > | to the box at the moment - if its still necessary I will fetch the
> | > | information tomorrow (ifconfig etc)
> | > |
> | > | To sum up its something like the following
> | > | 	net.inet.ether.bridge_config=em0,em1
> | > | 	net.inet.ether.bridge=1
> | > |
> | > | Or vlan0,vlan1 with:
> | > | 	ifconfig vlan0 create
> | > | 	ifconfig vlan1 create
> | > | 	ifconfig vlan0 vlan 100 vlandev em0
> | > | 	ifconfig vlan1 vlan 100 vlandev em1
> | > |
> | > |
> | > | If I change to using fxp it immediately works..
> | >
> | > I think you will find you are bridging in promiscous mode and the
> | > HW VLAN stuff isn't there.  You should try to bridge the vlan devices
> | > or disable the VLAN HW (driver hack).  It works with the fxp0 since you
> | > are using SW VLAN so the HW part isn't grabing it.  I've done the driver
> | > hack for some things I needed to do.
> | 
> | what about vlanhwtag (ifconfig) ?
> | according to the em manpage it is disabled by default
> | so this setup should work.
> 
> I'm not sure ... things have changed over time.

To the best of my knowledge, vlanhwtag in em(4) is disabled by
default in FreeBSD 5.x and 6.x only.  OTOH, vlanhwtag is disabled
when promiscuous mode is enabled on em(4) in 4.x, too.  However,
it wasn't in 4.9.  At least 4.11 is needed, otherwise the driver
source needs to be hacked (a call to em_enable_vlans() removed.)

-- 
Yar



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