From owner-freebsd-net@FreeBSD.ORG Mon Jun 13 15:39:22 2011 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A689E1065676 for ; Mon, 13 Jun 2011 15:39:22 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 65F618FC14 for ; Mon, 13 Jun 2011 15:39:22 +0000 (UTC) Received: from 73-19-133-95.pool.ukrtel.net ([95.133.19.73] helo=rnote.ddteam.net) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1QW8c9-0002sg-Bj for freebsd-net@FreeBSD.org; Mon, 13 Jun 2011 17:59:41 +0300 Date: Mon, 13 Jun 2011 17:58:25 +0300 From: Aleksandr Rybalko To: freebsd-net@FreeBSD.org Message-Id: <20110613175825.181e6803.ray@freebsd.org> Organization: FreeBSD.ORG X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: H/W offload VLAN/PPPoE/NAT X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2011 15:39:22 -0000 Hi folks, I work with System-on-Chip(SoC) Ralink RT3052F and I have a questions which I think preferred to discuss here. SoC have Ethernet MAC and Ethernet switch, they connected together with two ports at MAC side called as GMAC1 and GMAC2. MAC internally have so called Frame-Engine, bus that deliver packets between GMAC1, GMAC2, CPU port, Discard port and PPE (Packet Processing Engine) Packet Processing Engine can insert/remove VLAN tag and PPPoE headers and do NAT/PAT translations. VLAN offload I will implement w/ IFCAP_VLAN_HWTAGGING and will use EVENTHANDLER_REGISTER(vlan_[un]config, ...) to limit max vlan subifaces to max 16 items supported by MAC. Right? Problem with PPPoE offload, since chip support only insert/remove PPPoE session header, so we need something like vlan clones, but for PPPoE. And session setup still should be done at parent interface. Any ideas? Another big question is a PPE, which seems just return packets to driver after processing, so I don't have any idea how to correct implement it. May someone help me with ideas, samples or something else what may help me? I would be thankful for any ideas. WBW -- Aleksandr Rybalko -- Aleksandr Rybalko