| Both sides previous revision Previous revision Next revision | Previous revision |
| docs:techref:hardware:switch [2021/02/17 23:51] – [Vitesse] linus | docs:techref:hardware:switch [2024/08/11 20:52] (current) – [Realtek] fix link linus |
|---|
| ====== Ethernet Network Switch ====== | ====== Ethernet Network Switch ====== |
| Many devices supported by OpenWrt contain an Ethernet network switch. Most switches are //configurable// and driver options are available. Typical features include ethernet frame tagging and [[docs:guide-user:network:vlan:switch_configuration|VLAN]] support. We require two software components: | Many devices supported by OpenWrt contain an Ethernet network switch. Most switches are //configurable// and driver options are available. Typical features include ethernet frame tagging and [[docs:guide-user:network:vlan:switch_configuration|VLAN]] support. We require two software components: |
| - a kind of a driver | - A kind of a driver |
| - a utility | - A utility |
| |
| ===== DSA Distributed Network Switch ===== | ===== DSA Distributed Network Switch ===== |
| |
| ^ Target ^ Kernel ^ Notes ^ | ^ Target ^ Kernel ^ Notes ^ |
| | Gemini | 5.4 | | | | bcm53xx | 5.10? | | |
| | IMX6 | 5.4 | | | | Gemini | 5.10 | | |
| | Kirkwood | 5.4 | | | | IMX6 | 5.10 | | |
| | Mediatek/mt7623 | 5.4 | | | | IPQ40xx | 5.15 | | |
| | Mvebu | 5.4 | | | | Kirkwood | 5.10 | | |
| | rtl838x | 5.4 | | | | Lantiq | 5.10 | | |
| | Ramips/mt7621 | 5.4 | See [[https://github.com/openwrt/openwrt/pull/2942|Github PR #2942]] (merged) for improvements | | | Mediatek/MT7623 | 5.10 | | |
| | | Mvebu | 5.10 | | |
| | | Realtek | 5.10 | | |
| | | Ramips/MT7621 | 5.10 | See [[https://github.com/openwrt/openwrt/pull/2942|Github PR #2942]] (merged) for improvements | |
| ===== Switchdev ===== | ===== Switchdev ===== |
| |
| * [[http://realtek.info/pdf/rtl8366_8369_datasheet_1-1.pdf|RTL8366/RTL8369 datasheet]], notice that this is quite different from RTL8366RB or RTL8369S | * [[http://realtek.info/pdf/rtl8366_8369_datasheet_1-1.pdf|RTL8366/RTL8369 datasheet]], notice that this is quite different from RTL8366RB or RTL8369S |
| * [[https://web.archive.org/web/20100729202805/http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PNid=18&PFid=15&Level=5&Conn=4&ProdID=197|RealTek RTL8366RB]], a 5-port Gigabit switch e.g. in the [[toh/tp-link/tl-wr1043nd|WR1043ND v1]] or [[toh/d-link/DIR-685]] | * [[https://web.archive.org/web/20100729202805/http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PNid=18&PFid=15&Level=5&Conn=4&ProdID=197|RealTek RTL8366RB]], a 5-port Gigabit switch e.g. in the [[toh/tp-link/tl-wr1043nd|WR1043ND v1]] or [[toh/d-link/DIR-685]] |
| * [[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/dsa/rtl8366rb.c|Upstream RTL8366RB DSA kernel driver]] this should become the default after incorporating kernel v4.19 or later | * [[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/dsa/realtek/rtl8366rb.c|Upstream RTL8366RB DSA kernel driver]] this should become the default after incorporating kernel v4.19 or later |
| * see [[https://dev.openwrt.org/search?q=+8366RB&noquickjump=1&ticket=on|all tickets concerning the Realtek RTL8366RB]] | * see [[https://dev.openwrt.org/search?q=+8366RB&noquickjump=1&ticket=on|all tickets concerning the Realtek RTL8366RB]] |
| * e.g. [[https://dev.openwrt.org/ticket/7977|Ticket 7977:Enhance rtl8366rb driver]] | * e.g. [[https://dev.openwrt.org/ticket/7977|Ticket 7977:Enhance rtl8366rb driver]] |
| ==== Qualcomm / Atheros ==== | ==== Qualcomm / Atheros ==== |
| * AR8216 FastEthernet, 6 ports; found in [[toh/astoria/arv752dpw22 |Arcadyan ARV752DPW22]], [[toh/netgear/wnr2000 |Netgear WNR2000v1]], others | * AR8216 FastEthernet, 6 ports; found in [[toh/astoria/arv752dpw22 |Arcadyan ARV752DPW22]], [[toh/netgear/wnr2000 |Netgear WNR2000v1]], others |
| * AR8316 GigabitEthernet, e.g. in the [[toh/ubiquiti/routerstation.pro|RouterStation Pro]], [[toh/buffalo/WBMR-HP-G300H]], ... | * AR8316 GigabitEthernet, e.g. in the [[toh:ubiquiti:routerstation_pro|RouterStation Pro]], [[toh/buffalo/WBMR-HP-G300H]], ... |
| * [[http://www.qca.qualcomm.com/technology/technology.php?nav1=48&product=99|AR8228 + AR8229]] FastEthernet: 7-Ports, 5x 100BASE-TX-PHYs | * [[http://www.qca.qualcomm.com/technology/technology.php?nav1=48&product=99|AR8228 + AR8229]] FastEthernet: 7-Ports, 5x 100BASE-TX-PHYs |
| * [[http://www.qca.qualcomm.com/technology/technology.php?nav1=48&product=100|AR8236]] FastEthernet: 6-Ports, 5 x 100BASE-TX-PHYs | * [[http://www.qca.qualcomm.com/technology/technology.php?nav1=48&product=100|AR8236]] FastEthernet: 6-Ports, 5 x 100BASE-TX-PHYs |
| |
| ==== Features ==== | ==== Features ==== |
| * some Switches contain a functionality called **//"Hardware NAT"//**; support for this features has not yet been included into OpenWrt. Since the [[docs:techref:hardware:cpu]]s used in CPE Routers are relatively slow, expect 2 to 4 times performance gain if you were to use Hardware NAT, e.g. without hardware NAT some router could achieve 400Mbit/s at full CPU load, with hardware NAT it could achieve 900Mbit/s at full CPU load. OpenWrt developer is supposed to have said, that implementing HW-NAT support would be unacceptably hacky to accomplish. | * Some switches contain a functionality called **//"Hardware NAT"//**; support for this features has not yet been included into OpenWrt. Since the [[docs:techref:hardware:cpu]]s used in CPE Routers are relatively slow, expect 2 to 4 times performance gain if you were to use Hardware NAT, e.g. without hardware NAT some router could achieve 400Mbit/s at full CPU load, with hardware NAT it could achieve 900Mbit/s at full CPU load. OpenWrt developer is supposed to have said, that implementing HW-NAT support would be unacceptably hacky to accomplish. |