xref: /OK3568_Linux_fs/u-boot/doc/README.t1040-l2switch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThis file contains information for VSC9953, a Vitesse L2 Switch IP
2*4882a593Smuzhiyunwhich is integrated in the T1040/T1020 Freescale SoCs.
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunAbout Device:
5*4882a593Smuzhiyun=============
6*4882a593SmuzhiyunVSC9953 is an 8-port Gigabit Ethernet switch supports the following features:
7*4882a593Smuzhiyun	-	8192 MAC addresses
8*4882a593Smuzhiyun	-	Static Address provisioning
9*4882a593Smuzhiyun	-	Dynamic learning of MAC addresses and aging
10*4882a593Smuzhiyun	-	4096 VLANs
11*4882a593Smuzhiyun	-	Independent and shared VLAN learning (IVL, SVL)
12*4882a593Smuzhiyun	-	Policing with storm control and MC/BC protection
13*4882a593Smuzhiyun	-	IPv4 and IPv6 multicast
14*4882a593Smuzhiyun	-	Jumbo frames (9.6 KB)
15*4882a593Smuzhiyun	-	Access Control List
16*4882a593Smuzhiyun	-	VLAN editing, translation and remarking
17*4882a593Smuzhiyun	-	RMON counters per port
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunSwitch interfaces:
20*4882a593Smuzhiyun	-	8 Gigabit switch ports (ports 0 to 7) are external and are connected to external PHYs
21*4882a593Smuzhiyun	-	2 switch ports (ports 8 and 9) of 2.5 G are connected (fixed links)
22*4882a593Smuzhiyun		to FMan ports (FM1@DTSEC1 and FM1@DTSEC2)
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunCommands Overview:
25*4882a593Smuzhiyun=============
26*4882a593SmuzhiyunCommands supported
27*4882a593Smuzhiyun	- enable/disable a port or show its configuration (speed, duplexity, status, etc.)
28*4882a593Smuzhiyun	- port statistics
29*4882a593Smuzhiyun	- MAC learning
30*4882a593Smuzhiyun	- add/remove FDB entries
31*4882a593Smuzhiyun	- Port-based VLAN
32*4882a593Smuzhiyun	- Private/Shared VLAN learning
33*4882a593Smuzhiyun	- VLAN ingress filtering
34*4882a593Smuzhiyun	- Port LAG
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunCommands syntax
37*4882a593Smuzhiyunethsw [port <port_no>] { enable | disable | show } - enable/disable a port; show a port's configuration
38*4882a593Smuzhiyunethsw [port <port_no>] statistics { [help] | [clear] } - show an l2 switch port's statistics
39*4882a593Smuzhiyunethsw [port <port_no>] learning { [help] | show | auto | disable } - enable/disable/show learning configuration on a port
40*4882a593Smuzhiyunethsw [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;
41*4882a593Smuzhiyun											  if [vlan <vid>] is missing, VID 1 will be used
42*4882a593Smuzhiyunethsw [port <port_no>] pvid { [help] | show | <pvid> } - set/show PVID (ingress and egress VLAN tagging) for a port
43*4882a593Smuzhiyunethsw [port <port_no>] vlan { [help] | show | add <vid> | del <vid> } - add a VLAN to a port (VLAN members)
44*4882a593Smuzhiyunethsw [port <port_no>] untagged { [help] | show | all | none | pvid } - set egress tagging mode for a port
45*4882a593Smuzhiyunethsw [port <port_no>] egress tag { [help] | show | pvid | classified } - configure VID source for egress tag.
46*4882a593Smuzhiyun									  Tag's VID could be the frame's classified VID or the PVID of the port
47*4882a593Smuzhiyunethsw vlan fdb { [help] | show | shared | private } - make VLAN learning shared or private
48*4882a593Smuzhiyunethsw [port <port_no>] ingress filtering { [help] | show | enable | disable } - enable/disable VLAN ingress filtering on port
49*4882a593Smuzhiyunethsw [port <port_no>] aggr { [help] | show | <lag_group_no> } - get/set LAG group for a port
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun=> ethsw show
52*4882a593Smuzhiyun    Port   Status     Link    Speed   Duplex
53*4882a593Smuzhiyun       0  enabled     down       10     half
54*4882a593Smuzhiyun       1  enabled     down       10     half
55*4882a593Smuzhiyun       2  enabled     down       10     half
56*4882a593Smuzhiyun       3  enabled       up     1000     full
57*4882a593Smuzhiyun       4 disabled     down        -     half
58*4882a593Smuzhiyun       5 disabled     down        -     half
59*4882a593Smuzhiyun       6 disabled     down        -     half
60*4882a593Smuzhiyun       7 disabled     down        -     half
61*4882a593Smuzhiyun       8  enabled       up     2500     full
62*4882a593Smuzhiyun       9  enabled       up     2500     full
63*4882a593Smuzhiyun=>
64