+ The protocol
+ is used by GSW120, GSW140, GSW141, GSW145 chips and has a history with products from Infineon, Intel and MaxLinear.
+ The protocol information is based on the MaxLinear Data Sheet Revision 1.4.
+
Switch tag structure
+
+ The gsw1xx EDSA tagged frames contain a proprietary tag inserted between the source address field and the
+ EtherType/length field in the Ethernet header.
+ The EDSA tag is 8 octets. It contains a programmable EtherType value
+ and a standard DSA tag.
+ Ingress and Egress have different formats. If byte 6&7 is not
+ zero it is a egress packet.
+
+ Format of (Ethertyped) Ingress tagged frames:
+
+ +0 +----+----+----+----+----+----+----+----+ +-
+ | Prog. DSA Ether Type [15:8] | | (8-byte) EDSA Tag
+ +1 +----+----+----+----+----+----+----+----+ | Contains a programmable Ether type.
+ | Prog. DSA Ether Type [7:0] | | +
+ +1 +----+----+----+----+----+----+----+----+ | | (6-byte) Special Tag Content
+ |PME[7] TCE[6] TSE[5] FNL[4] TTC[3:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | TEPML [7:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | TEPMH [7:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | Res[7:5] IE[4] SP[3:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | Res [7:0] all zero | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | Res [7:0] all zero | | |
+ +1 +----+----+----+----+----+----+----+----+ +- +-
+
+ Format of (Ethertyped) Egress tagged frames:
+
+
+ +0 +----+----+----+----+----+----+----+----+ +-
+ | Prog. DSA Ether Type [15:8] | | (8-byte) EDSA Tag
+ +1 +----+----+----+----+----+----+----+----+ | Contains a programmable Ether type.
+ | Prog. DSA Ether Type [7:0] | | +
+ +1 +----+----+----+----+----+----+----+----+ | | (6-byte) Special Tag Content
+ | TC[7:4] IPN [3:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | PPPOE[7] IPV[6] IPO[5:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | DLPML [7:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | DLPMR [7:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | MI[7] KL2UM[6] PLHB[5:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ | |
+ | PLLB [7:0] | | |
+ +1 +----+----+----+----+----+----+----+----+ +- +-
+
+
+
+
Bit field abbreviations
+
+- PME: Port map enable
+- IPN: Ingress port number
+- TCE: Traffic class enable
+- TSE: Time stamp enable
+- FNL: Force no learning
+- TC: Traffic class
+- IPV: IPv4 packet
+- IPO: IP offset
+- SP: Source port
+- IE: Interrupt enable
+- PPPOE: ppp-over-ethernet
+- DLPML: Destination logical port map low bits.
+- DLPMR: Destination logical port map high (reserved)
+- MI: Mirror indication
+- KL2UM Known l2 unicast/multicast mac.
+- PLHB: Packet Length High Bits
+- PLLB: Packet Length Low Bits
+- TEPML: Target egress port maps low bits
+- TEPMH: Target egress port maps high bits (reserved)
+- Res: Reserved
+
+
+
Notes
+ Port mapping is a switch internal function for multi-cast and vlan
+ routing and need custom firmware rules to be active.
+
+ Precise Time Stamping indication according to IEEE 1588v2.
+