H/W offload VLAN/PPPoE/NAT
rozhuk.im at gmail.com
rozhuk.im at gmail.com
Thu Jun 23 16:40:15 UTC 2011
Hi!
Another way for vlans is: "ng_ether + ng_vlan + ng_iface".
See in sources: VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
I don’t 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" = ng_hwnat, compatible with ng_nat
--
Rozhuk Ivan
> -----Original Message-----
> From: owner-freebsd-net at freebsd.org [mailto:owner-freebsd-
> net at freebsd.org] On Behalf Of Aleksandr Rybalko
> Sent: Monday, June 13, 2011 11:58 PM
> To: freebsd-net at FreeBSD.org
> Subject: H/W offload VLAN/PPPoE/NAT
>
> 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 <ray at freebsd.org>
> --
> Aleksandr Rybalko <ray at freebsd.org>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list