From owner-freebsd-net@FreeBSD.ORG Thu Jun 23 16:40:14 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA64C106566B for ; Thu, 23 Jun 2011 16:40:14 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 696118FC14 for ; Thu, 23 Jun 2011 16:40:14 +0000 (UTC) Received: by bwz12 with SMTP id 12so2478444bwz.13 for ; Thu, 23 Jun 2011 09:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:reply-to:from:to:references:in-reply-to:subject :date:message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=iY3OYdb99CjBhtg3eYycu74LEeP1MhAP585PNZomCeM=; b=PfgWfI+DrcQJ3oCm/2ZpS+wNw37I6aZRcVJ7L+DxI2adjClnt6qRBsYtIuD6dRpJlA oLnu1Wiw+FWIj1pEN6IyZ8DYyrfMNlj+66KpKBnaZzd4leejeOBTfbyzQwqRhWdv2Q7A rgfAFSf+CgDDxpQUJup2P82K4jCUnQ6yvBoF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=reply-to:from:to:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=hLBdPqGbY/Ilk1p1ui/cwW2ui5OhbhBHWJt62136ZmgfU8Xum2Oili9pcv0tR1cAFY Rv4ddvfsAxgbqgw2/z1F2yzj45U43OjPuh9v7MqgazyG1ATqshqz+yerwui45uiUA3FH 4iWJmgaCFV+9L5dfmW0QZL6azy3b5iSDpaJAw= Received: by 10.204.40.80 with SMTP id j16mr1072099bke.107.1308845361229; Thu, 23 Jun 2011 09:09:21 -0700 (PDT) Received: from rimwks1x64 ([92.124.5.157]) by mx.google.com with ESMTPS id g13sm866711bkd.22.2011.06.23.09.09.19 (version=SSLv3 cipher=OTHER); Thu, 23 Jun 2011 09:09:20 -0700 (PDT) From: rozhuk.im@gmail.com To: "'Aleksandr Rybalko'" , References: <20110613175825.181e6803.ray@freebsd.org> In-Reply-To: <20110613175825.181e6803.ray@freebsd.org> Date: Fri, 24 Jun 2011 01:09:16 +0900 Message-ID: <4e036530.4d21cc0a.4599.24f0@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acwp4DQTIc4UXkgGQwOEeJcVrUhm0AH29p+g Content-Language: ru Cc: Subject: RE: H/W offload VLAN/PPPoE/NAT X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 16:40:15 -0000 Hi! Another way for vlans is: "ng_ether + ng_vlan + ng_iface". See in sources: VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM I don=92t see any profits with hardware PPPoE, mpd5 is fast. For hardware NAT you can try make "closed" netgraph based interface. Node like "ng_ether + ng_nat" =3D ng_hwnat, compatible with ng_nat =A0 -- Rozhuk Ivan =A0=20 > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of Aleksandr Rybalko > Sent: Monday, June 13, 2011 11:58 PM > To: freebsd-net@FreeBSD.org > Subject: H/W offload VLAN/PPPoE/NAT >=20 > Hi folks, >=20 > I work with System-on-Chip(SoC) Ralink RT3052F and I have a questions > which I think preferred to discuss here. >=20 > SoC have Ethernet MAC and Ethernet switch, they connected together > with two ports at MAC side called as GMAC1 and GMAC2. >=20 > MAC internally have so called Frame-Engine, bus that deliver packets > between GMAC1, GMAC2, CPU port, Discard port and PPE (Packet > Processing Engine) >=20 > Packet Processing Engine can insert/remove VLAN tag and PPPoE headers > and do NAT/PAT translations. >=20 > 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? >=20 > 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? >=20 > 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? >=20 > I would be thankful for any ideas. >=20 > WBW > -- > Aleksandr Rybalko > -- > Aleksandr Rybalko > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"