VLAN General Information - 7.2 English

AXI 1G/2.5G Ethernet Subsystem Product Guide (PG138)

Document ID
PG138
Release Date
2023-11-15
Version
7.2 English

Virtual Local Area Network (VLAN) frames are used to segregate Ethernet traffic within a larger physical LAN. VLAN frames are created by inserting a 4-byte VLAN TAG field in an Ethernet frame where the 2-byte Type/Length field would normally occur which extends the overall frame by four bytes. The VLAN TAG field is further broken down into additional fields as shown in the following figure.

Figure 1. VLAN Frame Showing VLAN Tag Field AXI Ethernet Page-1 Sheet.2 Sheet.3 Sheet.4 Sheet.5 Sheet.7 Sheet.9 6 bytes 6bytes Sheet.10 Sheet.11 Type /Len Type/Len Sheet.13 FCS FCS Sheet.16 Data Data Sheet.17 TPID TPID Sheet.18 Sheet.19 Sheet.20 Sheet.21 Dest Addr DestAddr Sheet.22 Sheet.23 Sheet.24 SrceAddr SrceAddr Sheet.25 VLAN TAG 4 bytes VLAN TAG 4 bytes Sheet.26 Sheet.28 FCS FCS Sheet.29 Sheet.30 8100 9100 9200 88a8 81009100920088a8 Sheet.31 VID VID Sheet.32 Sheet.33 Sheet.34 Priority Priority Sheet.35 CFI CFI Sheet.36 Data Data Sheet.37 46 - 1500 bytes normal 46 - 9198 bytes jumbo 46 - 1500 bytes normal 46 - 9198 bytes jumbo Sheet.38 Sheet.39 Sheet.40 16 bits 16bits Sheet.41 3 bits 3bits Sheet.42 1 bit 1bit Sheet.43 12 bits 12bits Sheet.44 Sheet.45 Sheet.1 Dest Addr DestAddr Sheet.6 SrceAddr SrceAddr Sheet.8 Type /Len Type/Len Sheet.12 6 bytes 6bytes Sheet.15 2 bytes 2bytes Sheet.14 4 bytes 4bytes Sheet.27 X14087 X14087

The TEMAC core provides basic VLAN support that can be enabled or disabled independent of Extended VLAN Support. This basic support recognizes VLAN frames that have a TPID value of 0x8100. When basic VLAN function is enabled, the TEMAC core allows good VLAN frames with this TPID value to be processed for validation and address filtering rather than being dropped. However, some applications require using a TPID value other than 0x8100, or have multiple VLAN tags within one frame (referred to as double tagging, triple tagging). Additionally, some common operations are performed on VLAN frames that can be offloaded from software to hardware to reduce processor utilization. Some of these tasks, translation, stripping, and auto tagging, are available when the extended VLAN support is included in the TEMAC core at build-time by setting the C_TXVLAN_* and C_RXVLAN_* parameters.

The extended VLAN functions are available individually and independently between the transmit and receive paths. To use the extended VLAN functions, the circuitry must be included at build time by setting the appropriate parameters and the functions must be enabled at runtime by setting the New Functions enable bit (bit 11) of the Reset and Address Filter Register.