Date: Fri, 24 Jun 2011 01:09:16 +0900 From: rozhuk.im@gmail.com To: "'Aleksandr Rybalko'" <ray@freebsd.org>, <freebsd-net@FreeBSD.org> Subject: RE: H/W offload VLAN/PPPoE/NAT Message-ID: <4e036530.4d21cc0a.4599.24f0@mx.google.com> In-Reply-To: <20110613175825.181e6803.ray@freebsd.org> References: <20110613175825.181e6803.ray@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ray@freebsd.org> > -- > Aleksandr Rybalko <ray@freebsd.org> > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4e036530.4d21cc0a.4599.24f0>