EA8300 WIP:
root@OpenWrt:~# swconfig dev switch0 help
switch0: 90000.mdio(QCA AR40xx), ports: 6 (cpu @ 0), vlans: 128
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): reset_mibs (Reset all MIB counters)
Attribute 3 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 4 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 5 (int): mirror_monitor_port (Mirror monitor port)
Attribute 6 (int): mirror_source_port (Mirror source port)
Attribute 7 (int): linkdown (Link down all the PHYs)
Attribute 8 (none): apply (Activate changes in the hardware)
Attribute 9 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (none): reset_mib (Reset single port MIB counters)
Attribute 2 (string): mib (Get port's MIB counters)
Attribute 3 (int): pvid (Primary VLAN ID)
Attribute 4 (unknown): link (Get port link information)
Global attributes:
enable_vlan: 1
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
linkdown: ???
Port 0:
[...]
pvid: 1
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
[...]
pvid: 1
link: port:1 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 2:
[...]
Port 5:
[...]
pvid: 2
link: port:5 link:down
VLAN 1:
vid: 1
ports: 0 1 2 3 4
VLAN 2:
vid: 2
ports: 0t 5
root@OpenWrt:~# cat /etc/board.json
{
"model": {
"id": "linksys,ea8300",
"name": "Linksys EA8300 (Dallas)"
},
"network": {
"lan": {
"ifname": "eth0",
"protocol": "static"
},
"wan": {
"ifname": "eth1",
"protocol": "dhcp"
}
},
"switch": {
"switch0": {
"enable": true,
"reset": true,
"ports": [
{
"num": 0,
"device": "eth0",
"need_tag": false,
"want_untag": true
},
{
"num": 1,
"role": "lan"
},
{
"num": 2,
"role": "lan"
},
{
"num": 3,
"role": "lan"
},
{
"num": 4,
"role": "lan"
},
{
"num": 6,
"device": "eth1",
"need_tag": false,
"want_untag": true
},
{
"num": 5,
"role": "wan"
}
],
"roles": [
{
"role": "lan",
"ports": "1 2 3 4 0",
"device": "eth0"
},
{
"role": "wan",
"ports": "5 6",
"device": "eth1"
}
]
}
}
}
Edit:
If I move my only "live" Ethernet cable to the "Internet" port, I get
[43445.205962] ess_edma c080000.edma: eth1: GMAC Link is up with phy_speed=1000
[43445.206395] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
If I reboot in that configuration (cable live on "Internet" port only) and look at the counters, port:5 is up, and the traffic counters seems to be increasing on port:0. Not examined in great detail, such as checking the numbers (as I've only got serial connectivity).