Hi, DaumantasG.
Thanks for the fast and comprehensive answer.
swconfig dev switch0 port 4 help
gives
switch0: 90000.mdio(QCA AR40xx), ports: 6 (cpu @ 0), vlans: 128
--switch
Attribute 1 (int): soft_reset (Switch soft reset with delay (seconds))
Attribute 2 (int): enable_vlan (Enable VLAN mode)
Attribute 3 (none): reset_mibs (Reset all MIB counters)
Attribute 4 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 5 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 6 (int): mirror_monitor_port (Mirror monitor port)
Attribute 7 (int): mirror_source_port (Mirror source port)
Attribute 8 (none): flush_arl (Flush ARL table)
Attribute 9 (string): dump_arl (Dump ARL table with mac and port map)
Attribute 10 (int): linkdown (Link down all the PHYs)
Attribute 11 (int): preference (Set fiber/copper combo preference)
Attribute 12 (none): apply (Activate changes in the hardware)
Attribute 13 (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)