From owner-freebsd-embedded@FreeBSD.ORG Thu Nov 10 00:13:57 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A242106564A for ; Thu, 10 Nov 2011 00:13:57 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 11A158FC08 for ; Thu, 10 Nov 2011 00:13:56 +0000 (UTC) Received: by faar19 with SMTP id r19so3149747faa.13 for ; Wed, 09 Nov 2011 16:13:55 -0800 (PST) Received: by 10.223.64.70 with SMTP id d6mr8047835fai.16.1320882550454; Wed, 09 Nov 2011 15:49:10 -0800 (PST) Received: from rnote.ddteam.net (191-157-133-95.pool.ukrtel.net. [95.133.157.191]) by mx.google.com with ESMTPS id i3sm8735257faf.0.2011.11.09.15.49.08 (version=SSLv3 cipher=OTHER); Wed, 09 Nov 2011 15:49:09 -0800 (PST) Date: Thu, 10 Nov 2011 01:49:04 +0200 From: Aleksandr Rybalko To: embedded@freebsd.org Message-Id: <20111110014904.0e8caf2c.ray@ddteam.net> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Ethernet switch framework 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: Thu, 10 Nov 2011 00:13:57 -0000 Hi "embedded" hacker! one my good friend say it is good to have "public history of there being work" :) So I glad to introduce first patchset of the Ethernet switch framework, and want to know what I do wrong or good? And which way would be better? Now it able control only VLANS on Atheros AR8x16-like switches Broadcom BCM5325-like switches Realtek RTL8309-like switches and on Ralink RT305xF internal switch. Still with problems, but I care about it. :) I will wait for any opinion. Thanks! Switch framework itself: http://my.ddteam.net/files/2011-11-09_dev_switch.patch Switch control utility: (dumb a little yet :) ) http://my.ddteam.net/files/2011-11-09_sbin_switchctl.patch Patch that allow attach hinted PHY drivers: http://my.ddteam.net/files/2011-11-09_dev_mii_mii.c_attach_hinted.patch Add please by hands that into sys/conf/files +dev/switch/switch_if.m optional switch +dev/switch/switchb_if.m optional switch +dev/switch/switch.c optional switch +dev/switch/switch_mii.c optional switch mii | miibus +dev/switch/switch_obio.c optional switch obio +dev/switch/switch_obio.c optional switch_obio +dev/switch/ar8x16_switch.c optional switch switch_ar8x16 +dev/switch/bcm5325_switch.c optional switch switch_bcm5325 +dev/switch/rt305x_switch.c optional switch switch_rt305x +dev/switch/rtl830x_switch.c optional switch switch_rtl830x WBW -- Aleksandr Rybalko