SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
The CPSW is in VLAn Aware mode when the CPSW Control register vlan_aware bit is set. In VLAN aware mode port 0 transmit packets may or may not be VLAN encapsulated depending on the CPSW Control register TX_VLAN_ENCAP bit. The header packet VLAN is generated as described in later sections of this specification. VLAN encapsulated packets are specified by a set VLAN_ENCAP bit in the packet buffer descriptor. The VLAN encapsulation header is included in the packet length and has the below format:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| HDR_PKT_PRIORITY | HDR_PKT_CFI | HDR_PKT_VID | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FLOW | PKT_TYPE | RESERVED | |||||||||||||
| Bit | Field | Description |
|---|---|---|
| 31-29 | HDR_PKT_PRIORITY | Header Packet VLAN priority (7 is highest priority) |
| 28 | HDR_PKT_CFI | Header Packet VLAN CFI bit |
| 27-16 | HDR_PKT_VID | Header Packet VLAN ID |
| 15-10 | FLOW | FLOW - A nonzero value indicates that the ALE matched a classifier with the FLOW (threadval) |
| 9-8 | PKT_TYPE |
Packet Type - Indicates whether the packet is a VLAN tagged, priority tagged, or non-tagged packet. 00h - VLAN tagged packet 01h - Reserved 10h - priority tagged packet 11h - non-tagged packet |
| 7-0 | RESERVED | Reserved |