From owner-freebsd-embedded@FreeBSD.ORG Wed Dec 21 12:22:04 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41A38106564A; Wed, 21 Dec 2011 12:22:04 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id EC1A78FC14; Wed, 21 Dec 2011 12:22:03 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 26F0D112A35; Wed, 21 Dec 2011 13:22:03 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Stefan Bethke In-Reply-To: Date: Wed, 21 Dec 2011 13:22:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0F6CC18F-6973-42A2-AC03-F01BF59458AE@lassitu.de> <1100F70E-9DA9-4163-AC9A-423ECE5AA9A3@lassitu.de> <18CABB46-9B9A-41CB-8742-6723C5FF4D67@lassitu.de> <2CBD8651-E132-49DC-A082-37A8F5C626EA@bsdimp.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: Oleksandr Tymoshenko , "freebsd-embedded@freebsd.org" Subject: Re: Updated switch/glue patch? X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2011 12:22:04 -0000 Am 20.12.2011 um 16:25 schrieb Adrian Chadd: > Hm, and I also need to see whether it's worthwhile keeping the > vlangroup config method, or whether the ar8216/ar8316 (and the others > supported in zrouter) really want to support a set of VLANs per port. > The AR8316 datasheet describes how it works - there's a table of known > VLANs and a bitmap in each VLAN entry describing which ports are able > to be used. There's also a way to configure port isolation, and the > ingres/egres port is configured by a magic 2 byte header added to each > ethernet frame. You're describing it as if it were different from the RTL8366RB. I'm open to replace "vlangroup" with a better term. I picked it to = distinguish it from ifconfig's use of "vlan" to configure the .1q VLAN = ID (VID). In the switch chips, as you correctly explain, there is a = VLAN configuration table (usually 16 entries), where each entry has the = VID, the member ports and potentially a number of additional parameters = (PCP, etc.) This entry I'm calling "vlangroup" (that's what the = datasheet for the RTL8306S calls it). I'd be happy if we could find a = better term. The Linux switch api ignores the VLAN configuration table and presents = the switch as if you had an entry for each possible VID. It's slightly = more complicated in the switch driver, but we could go down the same = route. Stefan --=20 Stefan Bethke Fon +49 151 14070811