xref: /openbmc/u-boot/doc/README.t1040-l2switch (revision 82d72a1b9967cff4908f22c57536c3660f794401)
16706b115SCodrin CiubotariuThis file contains information for VSC9953, a Vitesse L2 Switch IP
26706b115SCodrin Ciubotariuwhich is integrated in the T1040/T1020 Freescale SoCs.
36706b115SCodrin Ciubotariu
46706b115SCodrin CiubotariuAbout Device:
56706b115SCodrin Ciubotariu=============
66706b115SCodrin CiubotariuVSC9953 is an 8-port Gigabit Ethernet switch supports the following features:
76706b115SCodrin Ciubotariu	-	8192 MAC addresses
86706b115SCodrin Ciubotariu	-	Static Address provisioning
96706b115SCodrin Ciubotariu	-	Dynamic learning of MAC addresses and aging
106706b115SCodrin Ciubotariu	-	4096 VLANs
116706b115SCodrin Ciubotariu	-	Independent and shared VLAN learning (IVL, SVL)
126706b115SCodrin Ciubotariu	-	Policing with storm control and MC/BC protection
136706b115SCodrin Ciubotariu	-	IPv4 and IPv6 multicast
146706b115SCodrin Ciubotariu	-	Jumbo frames (9.6 KB)
156706b115SCodrin Ciubotariu	-	Access Control List
166706b115SCodrin Ciubotariu	-	VLAN editing, translation and remarking
176706b115SCodrin Ciubotariu	-	RMON counters per port
186706b115SCodrin Ciubotariu
196706b115SCodrin CiubotariuSwitch interfaces:
206706b115SCodrin Ciubotariu	-	8 Gigabit switch ports (ports 0 to 7) are external and are connected to external PHYs
216706b115SCodrin Ciubotariu	-	2 switch ports (ports 8 and 9) of 2.5 G are connected (fixed links)
226706b115SCodrin Ciubotariu		to FMan ports (FM1@DTSEC1 and FM1@DTSEC2)
236706b115SCodrin Ciubotariu
246706b115SCodrin CiubotariuCommands Overview:
256706b115SCodrin Ciubotariu=============
266706b115SCodrin CiubotariuCommands supported
273507cf7fSCodrin Ciubotariu	- enable/disable a port or show its configuration (speed, duplexity, status, etc.)
283507cf7fSCodrin Ciubotariu	- port statistics
293507cf7fSCodrin Ciubotariu	- MAC learning
303507cf7fSCodrin Ciubotariu	- add/remove FDB entries
313507cf7fSCodrin Ciubotariu	- Port-based VLAN
323507cf7fSCodrin Ciubotariu	- Private/Shared VLAN learning
333507cf7fSCodrin Ciubotariu	- VLAN ingress filtering
34*aae0e689SCodrin Ciubotariu	- Port LAG
356706b115SCodrin Ciubotariu
366706b115SCodrin CiubotariuCommands syntax
373507cf7fSCodrin Ciubotariuethsw [port <port_no>] { enable | disable | show } - enable/disable a port; show a port's configuration
383507cf7fSCodrin Ciubotariuethsw [port <port_no>] statistics { [help] | [clear] } - show an l2 switch port's statistics
393507cf7fSCodrin Ciubotariuethsw [port <port_no>] learning { [help] | show | auto | disable } - enable/disable/show learning configuration on a port
403507cf7fSCodrin Ciubotariuethsw [port <port_no>] [vlan <vid>] fdb { [help] | show | flush | { add | del } <mac> } - add/delete a mac entry in FDB; use show to see FDB entries;
413507cf7fSCodrin Ciubotariu											  if [vlan <vid>] is missing, VID 1 will be used
423507cf7fSCodrin Ciubotariuethsw [port <port_no>] pvid { [help] | show | <pvid> } - set/show PVID (ingress and egress VLAN tagging) for a port
433507cf7fSCodrin Ciubotariuethsw [port <port_no>] vlan { [help] | show | add <vid> | del <vid> } - add a VLAN to a port (VLAN members)
443507cf7fSCodrin Ciubotariuethsw [port <port_no>] untagged { [help] | show | all | none | pvid } - set egress tagging mode for a port
453507cf7fSCodrin Ciubotariuethsw [port <port_no>] egress tag { [help] | show | pvid | classified } - configure VID source for egress tag.
463507cf7fSCodrin Ciubotariu									  Tag's VID could be the frame's classified VID or the PVID of the port
473507cf7fSCodrin Ciubotariuethsw vlan fdb { [help] | show | shared | private } - make VLAN learning shared or private
483507cf7fSCodrin Ciubotariuethsw [port <port_no>] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port
49*aae0e689SCodrin Ciubotariuethsw [port <port_no>] aggr { [help] | show | <lag_group_no> } - get/set LAG group for a port
506706b115SCodrin Ciubotariu
513507cf7fSCodrin Ciubotariu=> ethsw show
526706b115SCodrin Ciubotariu    Port   Status     Link    Speed   Duplex
536706b115SCodrin Ciubotariu       0  enabled     down       10     half
546706b115SCodrin Ciubotariu       1  enabled     down       10     half
556706b115SCodrin Ciubotariu       2  enabled     down       10     half
566706b115SCodrin Ciubotariu       3  enabled       up     1000     full
576706b115SCodrin Ciubotariu       4 disabled     down        -     half
586706b115SCodrin Ciubotariu       5 disabled     down        -     half
596706b115SCodrin Ciubotariu       6 disabled     down        -     half
606706b115SCodrin Ciubotariu       7 disabled     down        -     half
616706b115SCodrin Ciubotariu       8  enabled       up     2500     full
626706b115SCodrin Ciubotariu       9  enabled       up     2500     full
636706b115SCodrin Ciubotariu=>
64